problems with gnu make and stdout with uclibc nptl

Natanael Copa natanael.copa at gmail.com
Wed Apr 7 14:32:29 UTC 2010


On Wed, Apr 7, 2010 at 3:30 PM, Natanael Copa <natanael.copa at gmail.com> wrote:
> Let me see if i can dig deeper with some manualy patching....

Ok, I have a rough estimate where the bug was introduced: between
3e8067a62725780222fa90f2945f1d5599a5cdd6 and
1a21daadde12abfbb148b0bf07b26fbb56aa410a

Last working commit was b133fe1cac9f99b63ea56daf92caa1423b1289d0 after
that things start to go bad.

The next commit, 3e8067a62725780222fa90f2945f1d5599a5cdd6 the
buildscript for ghostscript does not even start. I get /bin/sh: symbol
'getopt': can't resolve symbol in lib '/bin/sh'. The following 30
commits didnt even let me start building ghostscript, even if uclibc
got built. I got things like broken gcc from configure script and
similar. First commit after, that actually let me build ghostscript,
but ends up with this mysterious "Write error" was
1a21daadde12abfbb148b0bf07b26fbb56aa410a

That is 30 commits. I could not get any closer than that, sorry.

So bug was introduced in some of the commits below. any ideas?

1a21daadde12abfbb148b0bf07b26fbb56aa410a rpc: ifdef out
xdrrec_{get,put}long if int32 == long,  otherwise use xdrrec_{ge
t,put}int32 + trivial transform.  eliminate warnings. des: small
shrink + eliminate a warning
7c640bbb18a519ed003d5fa80bad96eb204ed693 add
libc_hidden_proto(__cmsg_nxthdr) for mips
d763ce093b09afacb87498c2db21d6ce3df72a4f fix improperly hidden fputc_unlocked
32167ca3b6a36c0922bea30b2c44e78ccd5290ae fix improperly hidden
fwprintf. make two data objects static.
7357e8836f7c742602f59cc8f2b97382634c59b8 shring sugnal-relared stuff a
bit. BTW why constant memset is not inlined by gc
c?
35ae1599438a15568818bf09b493d7b49039d452 reduce sigset_t size for 128
bytes to 64 bits:
d4cb8007c785edaaba9f707bc83d6a33f562a059 Make
__UCLIBC_HAVE_ASM_CFI_DIRECTIVES__ visible in case the arch supports
this
feature. SH4 will use this in some aseembly files for the NPTL
implementation. Add now safely on trunk.
28075836bdd3771e55f97ee66f4d5d53d6c0e8d9 - make isascii visible again
 TODO: *_l() should go
151b127c3a8678f491e0ec977eaa38e952b2e7bd This patch fixes locale-mbwc
test failures when __UCLIBC_HAS_LOCALE__ is disabl
ed and __UCLIBC_HAS_WCHAR__ is enabled. The only locale available when
__UCLIBC_HAS_LOCALE__ is disabled is the C locale
, the others locale are skipped.
f1358210f659767a87869e48de89299e84515ae9 - remove fstatfs() and
statfs() related headers upon request
20cff295659e9bd1bee2c316ee17a53cad693ea2 - revert 24148:24151
d8ea341e64250c2f4636c559562e8904037eda74 libc/string: need additional
work to remove libc_hidden_proto's properly
873228f50b0a83833e0f498010ffe3dcc75a9258 - hide locks
5fefc2d24a19675e9b7cce654ec06022de2738ba - remove some bloat that was
added in r23660 and subsequent r23698.   The sbrk
lock is only needed for LT.old
9d6d4ac6476107b42a9bdca8e794fdb309aeca28 - hide some time related relocs
841a3b472edefdade4435128d1b47b2dee25841e Make wcsxfrm visible also
when LOCALE support is disabled.
c9209d6f901c82cf0cd10d4ee17402cb7f9234ce - hide __libc_{f,}statfs.
Thanks to Peter S. Mazinger for mentioning this fact.
0b5983eaf4562a3e4b4a4136004a8349828eb6d9 - cosmetic tidy up of clean target
ba1303003dae2f44e5b342304925ec52b173e01e - cosmetic tidy up of clean target
4a7ac42c310546504f0453459348d0ed75e35873 - make sure isspace() is
exported.   Thanks to Skinkie for noticing.
e737aa03ea2db5e29fab981737a93e2ba65b5766 - Fix thumb2 PIE (Joseph S.
Myers)   This patch fixes position-independent exec
utables (PIEs) for Thumb-2.  In   Thumb assembly, instructions reading
pc give a value 4 greater than the   address of t
he instruction, rather than 8 greater as in ARM mode, so the   offset
to the GOT needs to have the right offset.  (The T
humb-1 code   already gets this right; it's the code shared by ARM and
Thumb-2 that   needs fixing.)
97807b8291e7e5f35a12ab0307d8e56377eb24f4 - fix args (untested)
cf29148c9a9387a4a173dd56c7ae0fdd4418fad7 signal ops: avoid calls
through PLT for __sigXXX ops linuxthreads.old/manager:
pointless style fixes, no code changes
1e950c61e51838680f35317669376e40d69bc6c6 libc-symbols: improve
comments and make macros a bit more readable. no code cha
nges
c33ce133b9da9236fffd19d72d6b4d2ca63bfa2a fix some unneeded PLT references
04b163798f550730faed41fa2cbe949cb00c07a2 fix "make utils" build
failure in ldconfig (undefined reference to 'getopt')
63b94a1fdf758f61a98cbadbc3621ec1fdc9b0ab fix "make install" with relative PREFIX
bbf84bb108beca2e014e93e76371b8fdb3336bf3 fix ioperm build problems
caused by libc_hidden_proto removal
ae49d141f41d0f641de63105e11a475e990cd4d0 fix apparent typo (unnoticed
for long time, probably  because it didn't affect
little endian arches)
3e8067a62725780222fa90f2945f1d5599a5cdd6 deal with TODOs left over
from libc_hidden_proto removal  (fixes build with loc
ale enabled)


-- 
Natanael Copa


More information about the uClibc mailing list