Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67233 - dev-libs/uclibc-0.9.26-r7 doesn´t compile
Summary: dev-libs/uclibc-0.9.26-r7 doesn´t compile
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-12 07:52 UTC by Christian Korff
Modified: 2004-11-06 21:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/uclibc-0.9.26-r7/temp/uclibc-0.9.26-ssp-gcc34-after-frandom.patch-8951.out (uclibc-0.9.26-ssp-gcc34-after-frandom.patch-12975.out,2.63 KB, text/plain)
2004-10-13 05:22 UTC, Christian Korff
Details
rejects (ssp.c.rej,553 bytes, text/plain)
2004-10-13 05:27 UTC, Christian Korff
Details
log file /var/log/portage/2729-uclibc-0.9.26-r7.log (2729-uclibc-0.9.26-r7.log.bz2,16.96 KB, text/plain)
2004-10-14 01:59 UTC, Christian Korff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Korff 2004-10-12 07:52:27 UTC
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"
Comment 1 solar (RETIRED) gentoo-dev 2004-10-12 10:40:23 UTC
damnit.
Ok.. I'll have to fix this one. Let me add some people to the CC: here. 
Comment 2 solar (RETIRED) gentoo-dev 2004-10-12 14:06:56 UTC
rsync and try again now. (same version)
Comment 3 Christian Korff 2004-10-13 05:22:07 UTC
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
Comment 4 Christian Korff 2004-10-13 05:22:07 UTC
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
Comment 5 Christian Korff 2004-10-13 05:27:41 UTC
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.
Comment 6 solar (RETIRED) gentoo-dev 2004-10-13 07:34:44 UTC
Oh joy.. Gotta love these "after" patches.
Comment 7 solar (RETIRED) gentoo-dev 2004-10-13 07:41:41 UTC
rsync and try again now. (same version) I reverted the ssp.c back to -r1.1
Comment 8 Christian Korff 2004-10-14 01:59:51 UTC
Created attachment 41793 [details]
log file /var/log/portage/2729-uclibc-0.9.26-r7.log

it still doesn
Comment 9 Christian Korff 2004-10-14 01:59:51 UTC
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
Comment 10 SpanKY gentoo-dev 2004-11-05 20:48:44 UTC
-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 ...
Comment 11 Jory A. Pratt 2004-11-06 20:40:01 UTC
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.
Comment 12 solar (RETIRED) gentoo-dev 2004-11-06 21:21:57 UTC
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