Compiling of dev-libs/uclibc fails: strip -x -R .note -R .comment sbrk.o gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os -fno-stack-protector-all -fstack-protector -fno-builtin -nostdinc -D_LIBC -I../../../../include -I. -I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include -DNDEBUG -fPIC -c ssp.c -o ssp.o In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:53:1: warning: "SOCK_STREAM" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:45:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:54:1: warning: "SOCK_DGRAM" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:48:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:55:1: warning: "SOCK_RAW" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:50:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:56:1: warning: "SOCK_RDM" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:52:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:57:1: warning: "SOCK_SEQPACKET" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:55:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:58:1: warning: "SOCK_PACKET" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:59:1: warning: this is the location of the previous definition In file included from ../../../../include/linux/list.h:5, from ../../../../include/linux/sysctl.h:23, from ../../../../include/sys/sysctl.h:28, from ssp.c:33: ../../../../include/linux/prefetch.h: In function `prefetch_range': ../../../../include/linux/prefetch.h:63: warning: implicit declaration of function `__cast__' ../../../../include/linux/prefetch.h:63: error: syntax error before "char" ../../../../include/linux/prefetch.h:65: error: syntax error before "char" ../../../../include/linux/prefetch.h:65: error: syntax error before ')' token ssp.c: In function `__guard_setup': ssp.c:81: warning: implicit declaration of function `__libc_open' ssp.c:84: warning: implicit declaration of function `__libc_read' ssp.c:85: warning: implicit declaration of function `__libc_close' ssp.c: In function `__stack_smash_handler': ssp.c:140: warning: implicit declaration of function `__libc_write' ssp.c:148: warning: implicit declaration of function `__libc_sendto' ssp.c:157: warning: implicit declaration of function `__libc_sigaction' ../../../../include/linux/prefetch.h: In function `prefetch_range': ../../../../include/linux/prefetch.h:65: warning: statement with no effect make[4]: *** [ssp.o] Error 1 make[4]: Leaving directory `/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc/sysdeps/linux/common' make[3]: *** [common] Error 2 make[3]: Leaving directory `/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc/sysdeps/linux' make[2]: *** [_dir_linux] Error 2 make[2]: Leaving directory `/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc/sysdeps' make[1]: *** [_dir_sysdeps] Error 2 make[1]: Leaving directory `/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc' make: *** [_dir_libc] Error 2 !!! ERROR: dev-libs/uclibc-0.9.26-r7 failed. !!! Function src_compile, Line 208, Exitcode 2 !!! could not make emerge info: Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.2-r12, 2.6.7) ================================================================= System uname: 2.6.7 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /opt/mpd/conf /opt/opera/share/opera/config /usr/X11R6/lib/X11/xkb /usr/X11R6/lib/X11/xkb/rules /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/local/apache/conf /usr/share/config /usr/share/cups/model /usr/share/ogle/oglerc /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/src/portage-distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox userpriv" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo// http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo// ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo// http://trumpetti.atm.tut.fi/gentoo// ftp://trumpetti.atm.tut.fi/gentoo// http://gentoo.mirror.sdv.fr/ http://gentoo.math.bme.hu/ ftp://ftp.rxd.hu/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources// http://ftp.easynet.nl/mirror/gentoo// ftp://ftp.easynet.nl/mirror/gentoo// http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://gentoo.tiscali.nl/gentoo/ ftp://ftp.tiscali.nl/pub/mirror/gentoo/ http://mirror.switch.ch/mirror/gentoo// ftp://mirror.switch.ch/mirror/gentoo// ftp://ftp.solnet.ch/mirror/Gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acl alsa apm arts avi berkdb bitmap-fonts canna cdr cjk crypt cups curl directfb dvd emacs encode esd f77 flac foomaticdb gdbm ggi gif gimpprint gnome gpm gtk gtk2 guile imagemagick imlib java jpeg kde ldap lesstiff libg++ libwww mad mikmod mmx mng motif mozilla mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex theora tiff truetype unicode wmf wxwidgets wxwindows x86 xml2 xmms xprint xv zlib"
damnit. Ok.. I'll have to fix this one. Let me add some people to the CC: here.
rsync and try again now. (same version)
Created attachment 41710 [details] /var/tmp/portage/uclibc-0.9.26-r7/temp/uclibc-0.9.26-ssp-gcc34-after-frandom.patch-8951.out Calculating dependencies ...done! >>> emerge (1 of 1) dev-libs/uclibc-0.9.26-r7 to / >>> md5 src_uri ;-) uClibc-0.9.26.tar.bz2 >>> md5 src_uri ;-) uClibc-0.9.26-cvs-update-20040808.patch.bz2 >>> md5 src_uri ;-) uClibc-0.9.26-patches-1.1.tar.bz2 >>> Unpacking source... >>> Unpacking uClibc-0.9.26.tar.bz2 to /var/tmp/portage/uclibc-0.9.26-r7/work >>> Unpacking uClibc-0.9.26-cvs-update-20040808.patch.bz2 to /var/tmp/portage/uclibc-0.9.26-r7/work >>> Unpacking uClibc-0.9.26-patches-1.1.tar.bz2 to /var/tmp/portage/uclibc-0.9.26-r7/work * Applying uClibc-0.9.26-cvs-update-20040808.patch.bz2... [ ok ] * Applying uclibc-0.9.26-ssp-gcc34-after-frandom.patch... * Failed Patch: uclibc-0.9.26-ssp-gcc34-after-frandom.patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/uclibc-0.9.26-r7/temp/uclibc-0.9.26-ssp-gcc34-after-frandom.patch-8951.out !!! ERROR: dev-libs/uclibc-0.9.26-r7 failed. !!! Function epatch, Line 402, Exitcode 0 !!! Failed Patch: uclibc-0.9.26-ssp-gcc34-after-frandom.patch! /var/tmp/portage/uclibc-0.9.26-r7/temp/uclibc-0.9.26-ssp-gcc34-after-frandom.patch-8951.out is attached. I can
Created attachment 41710 [details] /var/tmp/portage/uclibc-0.9.26-r7/temp/uclibc-0.9.26-ssp-gcc34-after-frandom.patch-8951.out Calculating dependencies ...done! >>> emerge (1 of 1) dev-libs/uclibc-0.9.26-r7 to / >>> md5 src_uri ;-) uClibc-0.9.26.tar.bz2 >>> md5 src_uri ;-) uClibc-0.9.26-cvs-update-20040808.patch.bz2 >>> md5 src_uri ;-) uClibc-0.9.26-patches-1.1.tar.bz2 >>> Unpacking source... >>> Unpacking uClibc-0.9.26.tar.bz2 to /var/tmp/portage/uclibc-0.9.26-r7/work >>> Unpacking uClibc-0.9.26-cvs-update-20040808.patch.bz2 to /var/tmp/portage/uclibc-0.9.26-r7/work >>> Unpacking uClibc-0.9.26-patches-1.1.tar.bz2 to /var/tmp/portage/uclibc-0.9.26-r7/work * Applying uClibc-0.9.26-cvs-update-20040808.patch.bz2... [ ok ] * Applying uclibc-0.9.26-ssp-gcc34-after-frandom.patch... * Failed Patch: uclibc-0.9.26-ssp-gcc34-after-frandom.patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/uclibc-0.9.26-r7/temp/uclibc-0.9.26-ssp-gcc34-after-frandom.patch-8951.out !!! ERROR: dev-libs/uclibc-0.9.26-r7 failed. !!! Function epatch, Line 402, Exitcode 0 !!! Failed Patch: uclibc-0.9.26-ssp-gcc34-after-frandom.patch! /var/tmp/portage/uclibc-0.9.26-r7/temp/uclibc-0.9.26-ssp-gcc34-after-frandom.patch-8951.out is attached. I can´t find ssp.c.rej so I won´t include this file. If you need it please mention how to get this file (it seems to get deleted or something
Created attachment 41711 [details] rejects I manually tried patch -p0</usr/portage/dev-libs/uclibc/files/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch patching file ./libc/sysdeps/linux/common/ssp.c Hunk #1 FAILED at 44. 1 out of 1 hunk FAILED -- saving rejects to file ./libc/sysdeps/linux/common/ssp.c.rej And now i also can include the saved rejects.
Oh joy.. Gotta love these "after" patches.
rsync and try again now. (same version) I reverted the ssp.c back to -r1.1
Created attachment 41793 [details] log file /var/log/portage/2729-uclibc-0.9.26-r7.log it still doesn
Created attachment 41793 [details] log file /var/log/portage/2729-uclibc-0.9.26-r7.log it still doesn´t compile a full logfile is attached strip -x -R .note -R .comment sbrk.o gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os -funit-at-a-time -fno-stack-protector-all -fstack-protector -fno-builtin -nostdinc -D_LIBC -I../../../../include -I. -I/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include -DNDEBUG -fPIC -c ssp.c -o ssp.o In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:53:1: warning: "SOCK_STREAM" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:45:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:54:1: warning: "SOCK_DGRAM" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:48:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:55:1: warning: "SOCK_RAW" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:50:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:56:1: warning: "SOCK_RDM" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:52:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:57:1: warning: "SOCK_SEQPACKET" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:55:1: warning: this is the location of the previous definition In file included from ../../../../include/bits/socket.h:305, from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/asm/socket.h:58:1: warning: "SOCK_PACKET" redefined In file included from ../../../../include/sys/socket.h:35, from ssp.c:29: ../../../../include/bits/socket.h:59:1: warning: this is the location of the previous definition ssp.c:48:1: warning: "__attribute_used__" redefined In file included from ../../../../include/features.h:303, from ../../../../include/stdio.h:28, from ssp.c:23: ../../../../include/sys/cdefs.h:191:1: warning: this is the location of the previous definition In file included from ../../../../include/linux/list.h:5, from ../../../../include/linux/sysctl.h:23, from ../../../../include/sys/sysctl.h:28, from ssp.c:33: ../../../../include/linux/prefetch.h: In function `prefetch_range': ../../../../include/linux/prefetch.h:63: warning: implicit declaration of function `__cast__' ../../../../include/linux/prefetch.h:63: error: parse error before "char" ../../../../include/linux/prefetch.h:65: error: parse error before "char" ../../../../include/linux/prefetch.h:65: error: parse error before ')' token make[4]: *** [ssp.o] Error 1 make[4]: Leaving directory `/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc/sysdeps/linux/common' make[3]: *** [common] Error 2 make[3]: Leaving directory `/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc/sysdeps/linux' make[2]: *** [_dir_linux] Error 2 make[2]: Leaving directory `/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc/sysdeps' make[1]: *** [_dir_sysdeps] Error 2 make[1]: Leaving directory `/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc' make: *** [_dir_libc] Fehler 2 !!! ERROR: dev-libs/uclibc-0.9.26-r7 failed. !!! Function src_compile, Line 207, Exitcode 2 !!! could not make
-I/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include any reason you're using 3.4.0 ? ive never had a prob with 0.9.26-r7 and 3.3.4 or 3.4.1/3.4.2 ...
update your portage profile to default-x86-2004.2 then try to build uclibc I have tested and it builds fine with gcc 3.4.2 you have to have uclibc built before you can switch to the uclibc profile just so you know.
You can never switch to a uClibc profile from a glibc one. Things will get mis compiled. You either start from a uclibc based profile or you don't. Anyway this should of been solved in -r8