Skip to contentSkip to conversation

nptl build failures (so close!)

parisc-linux Carlos O'Donell 2 participants 3 messages Jul 26, 2005 – Jul 27, 2005

lore
Share & tools
lore
#0 lore raw

Randolph, Dave,

Any thoughts?

../sysdeps/generic/strtol_l.c: In function '____strtol_l_internal':
../sysdeps/generic/strtol_l.c:483: warning: cast discards qualifiers from pointer target type ../sysdeps/generic/strtol_l.c:497: error: 'ERANGE' undeclared (first use in this function) ../sysdeps/generic/strtol_l.c:497: error: (Each undeclared identifier is reported only once ../sysdeps/generic/strtol_l.c:497: error: for each function it appears in.) ../sysdeps/generic/strtol_l.c:517: warning: cast discards qualifiers from pointer target type ../sysdeps/generic/strtol_l.c:520: warning: cast discards qualifiers from pointer target type make[2]: *** [/mnt/flaire/src/tls-toolchain-hppa/build/glibc-nptl/stdlib/strtol_l.o] Error 1 make[2]: Leaving directory `/mnt/flaire/src/tls-toolchain-hppa/src/glibc/stdlib' make[1]: *** [stdlib/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/flaire/src/tls-toolchain-hppa/src/glibc'
make: *** [all] Error 2

I tried to debug a weird header file include problem in the nptl headers last night, but to no avail. It looks like gcc was reordering the includes and "lll_lock_t" wasn't included. This time around "ERANGE" is missing, but if I trace the headers by hand it should have been included.

This looks like an einvironment problem. No other arches seem to define anything magical to make this work.

I had a similar problem in nptl/descr.h where lowlevellock.h wasn't being included until after descr.h was entirely processed. Which made no sense at all.

c.

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#1 lore raw
Quoted 4 lines

I tried to debug a weird header file include problem in the nptl headers last night, but to no avail. It looks like gcc was reordering the includes and "lll_lock_t" wasn't included. This time around "ERANGE" is missing, but if I trace the headers by hand it should have been included.

Have you looked at the -E output? Also, add -dM to see macro defines.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#2 lore raw
Quoted 6 lines · John David Anglin
Quoted 4 lines

I tried to debug a weird header file include problem in the nptl headers last night, but to no avail. It looks like gcc was reordering the includes and "lll_lock_t" wasn't included. This time around "ERANGE" is missing, but if I trace the headers by hand it should have been included.

Have you looked at the -E output? Also, add -dM to see macro defines.

Ah thanks, I always forget about the -dM to see those cursed macros that are probably my issue.

The TLS headers are tricky to say the least and more confusing due to the defines that enable and disable various "Standards."

I'm sure GCC has it's fair share of these problems.

c.

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux