On Tue, Aug 9, 2011 at 6:03 PM, Jonathan Nieder <jrnieder@gmail.com> wrote: > retitle 637218 libc6-dev: moving headers to /usr/include/<triplet> breaks external multiarch unaware applications > quit > > Hi Sedat, > > Sedat Dilek wrote: > >> When building gcc-4.7 snapshot, I get again this "gnu/stubs-32.h" error. > [...] >> $ l /usr/include/i386-linux-gnu/gnu/stubs* >> -rw-r--r-- 1 root root 624 9. Aug 15:20 /usr/include/i386-linux-gnu/gnu/stubs-32.h > [...] >> # cd /usr/include/gnu >> # ln -sf ../i386-linux-gnu/gnu/stubs-32.h ./ >> # LC_ALL=C l stubs*.h >> lrwxrwxrwx 1 root root 32 Aug 9 17:16 stubs-32.h -> ../i386-linux-gnu/gnu/stubs-32.h >> -rw-r--r-- 1 root root 604 Aug 9 15:45 stubs-64.h >> -rw-r--r-- 1 root root 315 Aug 9 15:41 stubs.h >> >> This lets the build continue, until crt*.o breakage... > > They are one and the same problem. At its heart, I think it's a > libtool bug (already fixed). > What means "libtool bug (already fixed)" and where is/was it fixed - upstream? In Debian package? > Does something like the trick at > http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=80;bug=629819 work? Unfortunately, NO. My workaround which works here for the crt*.o issue: # cd /usr/lib/ # for i in i386-linux-gnu/crt1.o i386-linux-gnu/crti.o i386-linux-gnu/crtn.o ; do ln -sf $i ./ ; done > Any hints for relibtoolizing gcc? > > Thanks, > Jonathan > My old and new build-scripts are attached. In v2 I embedded your workaround and removed all my workarounds (gnu/stubs-32.h and crt*.o) before starting the build. CONCLUSION: I need both of my workarounds! # l /usr/include/gnu/stubs-32.h lrwxrwxrwx 1 root root 32 9. Aug 18:57 /usr/include/gnu/stubs-32.h -> ../i386-linux-gnu/gnu/stubs-32.h # l /usr/lib/crt*.o lrwxrwxrwx 1 root root 21 9. Aug 19:10 /usr/lib/crt1.o -> i386-linux-gnu/crt1.o lrwxrwxrwx 1 root root 21 9. Aug 19:10 /usr/lib/crti.o -> i386-linux-gnu/crti.o lrwxrwxrwx 1 root root 21 9. Aug 19:10 /usr/lib/crtn.o -> i386-linux-gnu/crtn.o - Sedat -
Attachment:
build_gcc-snapshot.sh
Description: Bourne shell script
Attachment:
build_gcc-snapshot_v2.sh
Description: Bourne shell script
Attachment:
make.log.xz
Description: Binary data
Attachment:
make.log_continue.xz
Description: Binary data
Attachment:
make.log_continue-2.xz
Description: Binary data