GDB TLS testing

Mark Millard marklmi at yahoo.com
Wed Jan 23 02:32:23 UTC 2019



On 2019-Jan-22, at 17:06, Mark Millard <marklmi at yahoo.com> wrote:



> On 2019-Jan-22, at 16:28, Mark Millard <marklmi at yahoo.com> wrote:
> 
> 
> 
>> On 2019-Jan-22, at 15:52, Mark Millard <marklmi at yahoo.com> wrote:
>> 
>> 
>> 
>>> On 2019-Jan-22, at 15:07, John Baldwin <jhb at freebsd.org> wrote:
>>> 
>>>> On 1/22/19 2:56 PM, Mark Millard wrote:
>>>>> 
>>>>> . . .
>>>>> 
>>>>> So I'm trying:
>>>>> 
>>>>> # env CFLAGS="-g -O2 -I/usr/local/include" ./configure
>>>>> . . .
>>>>> # rm */config.cache
>>>>> # make
>>>> 
>>>> Eh, try gmake instead of make.  I'm pretty sure the GDB repository requires
>>>> GNU make.
>>> 
>>> Well, I started over from scratch (empty tree other than .git) and using gmake
>>> got to a use of ATTRIBUTE_UNUSED that failed for lack of such a macro
>>> definition:
>> 
>> Bad wording of my thought: I was not trying to say that it was certain that
>> there was no definition. It was more like the usage/content being appropriate
>> to also being supported by clang.
>> 
>>> cc -c -g -O2 -I/usr/local/include -DDEFAULT_INLINE=PSIM_INLINE_LOCALS  -DWITH_HOST_BYTE_ORDER=BIG_ENDIAN -DWITH_SMP=5          -DHAVE_TERMIOS_STRUCTURE -DHAVE_DEVZERO    -I. -I. -I./../../include -I../../bfd -I./../../bfd -I../../gdb -I./../../gdb  -I./../../gdb/config  -DHAVE_COMMON_FPU -I../common -I./../common hw_htab.c
>>> In file included from hw_htab.c:27:
>>> /usr/local/include/bfd.h:1665:38: error: expected ')'
>>> bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr,
>>>                                    ^
> 
> Actually: the wrong bfd.h because -I/usr/local/include is too early
> and overrides the local -I usage and binutils is installed:
> 
> # find / -name bfd.h -print | less
> /usr/local/include/bfd.h
> /usr/src/gnu/usr.bin/binutils/libbfd/bfd.h
> /root/c_tests/ppc64_tls_git/bfd/bfd.h
> 
> # pkg which /usr/local/include/bfd.h
> /usr/local/include/bfd.h was installed by package binutils-2.30_6,1
> 
> The 2 files do not seem to be equivalent.
> 
> 
>>> . . .
>>> 20 errors generated.
>>> gmake[3]: *** [Makefile:158: hw_htab.o] Error 1
>>> gmake[3]: Leaving directory '/root/c_tests/ppc64_tls_git/sim/ppc'
>>> gmake[2]: *** [Makefile:129: all] Error 1
>>> gmake[2]: Leaving directory '/root/c_tests/ppc64_tls_git/sim'
>>> gmake[1]: *** [Makefile:9532: all-sim] Error 2
>>> gmake[1]: Leaving directory '/root/c_tests/ppc64_tls_git'
>>> gmake: *** [Makefile:849: all] Error 2
>>> 
>>> 
>>> 
>>> (Again: cc here is system clang.)

So I'm trying:

# git clean -f
# rm */config.cache */*/config.cache
# env CPATH=/usr/local/include ./configure
. . .
# env CPATH=/usr/local/include gmake
. . .

in order to try to add paths after the command line -I paths.

. . . This looks like it built. I've not used the build yet.


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ppc mailing list