Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138988 - sys-fs/device-mapper-1.02.07 failed because of /lib/libc.so
Summary: sys-fs/device-mapper-1.02.07 failed because of /lib/libc.so
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 170218 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-03 04:53 UTC by Andreas Höhmann
Modified: 2007-03-10 14:41 UTC (History)
3 users (show)

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


Attachments
emerge --info (info,3.03 KB, text/plain)
2006-09-20 12:33 UTC, Dan Armak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Höhmann 2006-07-03 04:53:12 UTC
make[1]: Leaving directory `/var/tmp/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup'
make[1]: Entering directory `/var/tmp/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup'
i686-pc-linux-gnu-gcc -c -I. -I../include -DHAVE_CONFIG_H -DDM_IOCTLS -march=pentium-m -pipe -O2 -fomit-frame-poin ter -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -march=pentium-m -pipe -O2 - fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winlin e -O2 -march=pentium-m -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions= 64 -mmmx -msse2 -msse -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-dec larations -Wnested-externs -Winline -O2 dmsetup.c -o dmsetup.o
i686-pc-linux-gnu-gcc -o dmsetup dmsetup.o  -L../lib/ioctl \
      -L../lib/ioctl -L/lib -ldevmapper
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o: In function `_start':
init.c:(.text+0xc): undefined reference to `__libc_csu_fini'
init.c:(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld gab 1 als Ende-Status zur
Comment 1 Andreas Höhmann 2006-07-03 04:53:12 UTC
make[1]: Leaving directory `/var/tmp/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup'
make[1]: Entering directory `/var/tmp/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup'
i686-pc-linux-gnu-gcc -c -I. -I../include -DHAVE_CONFIG_H -DDM_IOCTLS -march=pentium-m -pipe -O2 -fomit-frame-poin ter -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -march=pentium-m -pipe -O2 - fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winlin e -O2 -march=pentium-m -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions= 64 -mmmx -msse2 -msse -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-dec larations -Wnested-externs -Winline -O2 dmsetup.c -o dmsetup.o
i686-pc-linux-gnu-gcc -o dmsetup dmsetup.o  -L../lib/ioctl \
      -L../lib/ioctl -L/lib -ldevmapper
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o: In function `_start':
init.c:(.text+0xc): undefined reference to `__libc_csu_fini'
init.c:(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld gab 1 als Ende-Status zurück
make[1]: *** [dmsetup] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup'
make: *** [dmsetup] Fehler 2

!!! ERROR: sys-fs/device-mapper-1.02.07 failed


troll ~ # emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo i686)
=================================================================
System uname: 2.6.17-gentoo i686 Intel(R) Pentium(R) M processor 1300MHz
Gentoo Base System version 1.12.1
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium-m -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/g-cpan"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X accessibility acpi alsa apache2 apm avi bash-completion berkdb bitmap-fonts bitmapfonts bootsplash cli crypt cups dbus dri dvdr eds emboss encode esd festival firefox foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib isdnlog jikes jpeg kdexdeltas kerberos libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl ogg opengl pam pcre pdflib perl png pppd python quicktime readline reflection sdl session speech spell spl sse sse2 ssl tcpd truetype truetype-fonts truetypefonts type1-fonts type1fonts udev unicode vorbis xinerama xml xmms xorg xv zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Andreas Höhmann 2006-07-03 04:56:52 UTC
Sorry! Here is the english errormessage

make[1]: Leaving directory `/var/tmp/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup'
make[1]: Entering directory `/var/tmp/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup'
i686-pc-linux-gnu-gcc -c -I. -I../include -DHAVE_CONFIG_H -DDM_IOCTLS -march=pentium-m -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -march=pentium-m -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -O2 -march=pentium-m -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -O2 dmsetup.c -o dmsetup.o
i686-pc-linux-gnu-gcc -o dmsetup dmsetup.o  -L../lib/ioctl \
      -L../lib/ioctl -L/lib -ldevmapper
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o: In function `_start':
init.c:(.text+0xc): undefined reference to `__libc_csu_fini'
init.c:(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1
make[1]: Leaving directory `/var/tmp/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup'
make: *** [dmsetup] Error 2

!!! ERROR: sys-fs/device-mapper-1.02.07 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  device-mapper-1.02.07.ebuild, line 23:   Called die
Comment 3 SpanKY gentoo-dev 2006-07-03 12:22:46 UTC
something is screwed up on your machine, glibc provides that symbol
Comment 4 SpanKY gentoo-dev 2006-07-03 12:23:33 UTC
post the output of:
readelf -s /usr/lib/libc.a | grep csu_init
readelf -s /usr/lib/libc_nonshared.a | grep csu_init
Comment 5 Andreas Höhmann 2006-07-03 13:28:28 UTC
troll tmp # readelf -s /usr/lib/libc.a | grep csu_init
     7: 00000000   149 FUNC    GLOBAL DEFAULT    1 __libc_csu_init
troll tmp # readelf -s /usr/lib/libc_nonshared.a | grep csu_init
     8: 00000000   110 FUNC    GLOBAL DEFAULT    1 __libc_csu_init
Comment 6 SpanKY gentoo-dev 2006-07-03 13:44:52 UTC
and what does /usr/lib/libc.so look like ?
Comment 7 Andreas Höhmann 2006-07-03 13:51:08 UTC
cat /usr/lib/libc.so

/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux.so.2 ) )

????
Comment 8 Andreas Höhmann 2006-08-21 14:32:48 UTC
any news?
Comment 9 bunkacid 2006-09-06 15:42:09 UTC
Hi,
I am in the middle of an emerge --emptytree after upgrading to gcc-4.1.1 and I came across this same issue.  The build error was exactly the same.  Some other information was requested from the original poster, so I added the output of my own.  Hopefully this should help.

# compile error
i686-pc-linux-gnu-gcc -o dmsetup dmsetup.o  -L../lib/ioctl \       -L../lib/ioctl -L/lib -ldevmapper /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o: In function `_start': init.c:(.text+0xc): undefined reference to `__libc_csu_fini' init.c:(.text+0x11): undefined reference to `__libc_csu_init' collect2: ld returned 1 exit status make[1]: *** [dmsetup] Error 1 make[1]: Leaving directory `/var/tmp/portage/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup' make: *** [dmsetup] Error 2 

## readelf output 
px@pmobilex ~ $ readelf -s /usr/lib/libc.a |grep csu_init
     6: 00000000   129 FUNC    GLOBAL DEFAULT    1 __libc_csu_init
px@pmobilex ~ $ readelf -s /usr/lib/libc_nonshared.a | grep csu_init
     7: 00000000   101 FUNC    GLOBAL DEFAULT    1 __libc_csu_init

# my contents of libc.so
# cat /usr/lib/libc.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux.so.2 ) )


# /lib/libc.so
GNU C Library development release version 2.4, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9).
Compiled on a Linux 2.6.17 system on 2006-09-02.
Available extensions:
        The C stubs add-on version 2.1.2.
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        GNU libio by Per Bothner
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Native POSIX Threads Library by Ulrich Drepper et al
        Support for some architectures added on, not maintained in glibc core.
        BIND-8.2.3-T5B
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


# emerge --info
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.12.4
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=16 -falign-jumps=16 -falign-loops=16 -falign-labels=1 -fprefetch-loop-arrays -maccumulate-outgoing-args -funroll-all-loops -freorder-blocks -fcaller-saves -fno-loop-optimize -fno-signaling-nans"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=16 -falign-jumps=16 -falign-loops=16 -falign-labels=1 -fprefetch-loop-arrays -maccumulate-outgoing-args -funroll-all-loops -freorder-blocks -fcaller-saves -fno-loop-optimize -fno-signaling-nans"
DISTDIR="/usr/portage/.distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig buildpkg candy ccache digest distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://gentoo.ccccom.com http://gentoo.netnitco.net http://mirrors.acm.cs.rpi.edu/gentoo/  http://mirror.datapipe.net/gentoo http://www.gigaload.org/gentoo.org/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=180 --exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/overlays/ns1-main.alternative /usr/portage/overlays/initng-portage.alternative"
SYNC="rsync://portageproxy/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups dlloader dri dts eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jikes jpeg kde kdeenablefinal libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xinerama xml xmms xorg xv zlib elibc_glibc initng_plugins_also userland_GNU video_cards_nvidia video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-09-08 01:14:09 UTC
(In reply to comment #8)
> CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-addr
> -falign-functions=16 -falign-jumps=16 -falign-loops=16 -falign-labels=1
> -fprefetch-loop-arrays -maccumulate-outgoing-args -funroll-all-loops
> -freorder-blocks -fcaller-saves -fno-loop-optimize -fno-signaling-nans"

> CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-addr
> -falign-functions=16 -falign-jumps=16 -falign-loops=16 -falign-labels=1
> -fprefetch-loop-arrays -maccumulate-outgoing-args -funroll-all-loops
> -freorder-blocks -fcaller-saves -fno-loop-optimize -fno-signaling-nans"

You must be kidding, right? Don't clutter this bug until you've re-emerged your system w/ *sane* C[XX]FLAGS.
Comment 11 Andreas Höhmann 2006-09-17 08:21:55 UTC
what's with my cflags ... they working for the "most" (99%) packages. I "fixed" the device-mapper-error by disabled "crypt"-use-flag for hal ... but this is no solution. currently i found another packages with this libc-error (or whatever is going wrong here??)...

sci-mathematics/pari-2.1.7-r1:

...
i686-pc-linux-gnu-gcc -o gp-dyn -O3 -DGCC_INLINE -Wall -Wno-implicit -fomit-frame-pointer   -Xlinker -export-dynamic gp.o gp_init.o gp_rl.o highlvl.o whatnow.o plot.o plotport.o   -L/var/tmp/portage/pari-2.1.7-r1/work/pari-2.1.7/Olinux-i686 -L/lib -lreadline -lncurses -L./ -lpari -L/usr/lib -lX11  -ldl -lm
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o: In function `_start':
init.c:(.text+0xc): undefined reference to `__libc_csu_fini'
init.c:(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
make: *** [gp-dyn] Error 1

what can i try to rebuild my system? please give me a hint!
notice: the last change of my cc-flags months ago ... so this should not the problem?!
Comment 12 bunkacid 2006-09-17 14:38:45 UTC
(In reply to comment #10)
> what's with my cflags ... 

The comment was about my cflags.  I have since recompiled my entire world with I think are "sane" options.  Please tell me if I am wrong.

CFLAGS="-march=pentium4 -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse"

After changing CFLAGS I recompile the "toolchain" twice using the following command.  (Some will need to add libstdc++ after libtool.)
time sudo emerge --oneshot --ask --verbose gcc-config glibc binutils gcc libtool

I then did; emerge --emptytree world
Everything else was fine, and I again had to skip over device-mapper.

# build error
i686-pc-linux-gnu-gcc -c -I. -I../include -DHAVE_CONFIG_H -DDM_IOCTLS -march=pentium4 -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -march=pentium4 -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -O2 -march=pentium4 -pipe -O2 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions=64 -mmmx -msse2 -msse -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -O2 dmsetup.c -o dmsetup.o
i686-pc-linux-gnu-gcc -o dmsetup dmsetup.o  -L../lib/ioctl \
      -L../lib/ioctl -L/lib -ldevmapper
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o: In function `_start':
init.c:(.text+0xc): undefined reference to `__libc_csu_fini'
init.c:(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1
make[1]: Leaving directory `/var/tmp/portage/portage/device-mapper-1.02.07/work/device-mapper.1.02.07/dmsetup'
make: *** [dmsetup] Error 2

Comment 13 bunkacid 2006-09-18 01:56:17 UTC
(In reply to comment #11)
> I then did; emerge --emptytree world
> Everything else was fine, and I again had to skip over device-mapper.
> 

After syncing my portage tree earlier and updating my system again, I came across another similar issue, while compiling cmake-2.4.3.

Linking CXX executable ../bin/ccmake
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o: In function `_start':
init.c:(.text+0xc): undefined reference to `__libc_csu_fini'
init.c:(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
make[2]: *** [bin/ccmake] Error 1
make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
make: *** [all] Error 2


Something bigger is going wrong maybe?  Should I also post a bug to cmake for this too?
Comment 14 Andreas Höhmann 2006-09-19 00:01:32 UTC
i switched to gcc-4.1.1 and emerge -e system (without problems!)

... BUT ... sci-mathematics/pari-2.1.7-r1 still faile to compile!

i686-pc-linux-gnu-gcc -o gp-dyn -O3 -DGCC_INLINE -Wall -Wno-implicit -fomit-frame-pointer   -Xlinker -export-dynamic gp.o gp_init.o gp_rl.o highlvl.o whatnow.o plot.o plotport.o   -L/var/tmp/portage/pari-2.1.7-r1/work/pari-2.1.7/Olinux-i686 -L/lib -lreadline -lncurses -L./ -lpari -L/usr/lib -lX11  -ldl -lm
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o: In function `_start':
init.c:(.text+0xc): undefined reference to `__libc_csu_fini'
init.c:(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
make: *** [gp-dyn] Error 1

!!! ERROR: sci-mathematics/pari-2.1.7-r1 failed.

troll etc # i686-pc-linux-gnu-gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --enable-languages=c,c++,java,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r1)
Comment 15 Andreas Höhmann 2006-09-19 00:10:36 UTC
If i use theses CFLAGS="-O2 -march=pentium-m -pipe" then pari can compile
shared lib ...

 * Building shared library...
i686-pc-linux-gnu-gcc  -E -I. ../src/kernel/ix86/l0asm.c | sed -e '/^#/d' -e '/^ *#line/d' -e 's/%  */%/g' > level0.s
cat ../src/kernel/ix86/level0.h ../src/kernel/none/level1.h > pariinl.h
...

BUT then the error happend during building the executable ...
 * Building executables...
i686-pc-linux-gnu-gcc -c -O2 -march=pentium-m -pipe -DGCC_INLINE -I. -I../src/headers -I../src/language -I/usr/include -o gp.o ../src/gp/gp.c
i686-pc-linux-gnu-gcc -c -O2 -march=pentium-m -pipe -DGCC_INLINE -I. -I../src/headers -I../src/graph -o gp_init.o ../src/gp/gp_init.c
i686-pc-linux-gnu-gcc -c -O2 -march=pentium-m -pipe -DGCC_INLINE -I. -I../src/headers -I../src/language -I/usr/include -o gp_rl.o ../src/gp/gp_rl.c
i686-pc-linux-gnu-gcc -c -O2 -march=pentium-m -pipe -DGCC_INLINE -I. -I../src/headers  -o highlvl.o ../src/gp/highlvl.c
i686-pc-linux-gnu-gcc -c -O2 -march=pentium-m -pipe -DGCC_INLINE -I. -I../src/headers  -o whatnow.o ../src/gp/whatnow.c
i686-pc-linux-gnu-gcc -c -O2 -march=pentium-m -pipe -DGCC_INLINE -I. -I../src/headers -I/usr/include -o plot.o ../src/graph/plotX.c
i686-pc-linux-gnu-gcc -c -O2 -march=pentium-m -pipe -DGCC_INLINE -I. -I../src/headers -I../src/graph -o plotport.o ../src/graph/plotport.c
rm -f gp-dyn
i686-pc-linux-gnu-gcc -o gp-dyn -O3 -DGCC_INLINE -Wall -Wno-implicit -fomit-frame-pointer   -Xlinker -export-dynamic gp.o gp_init.o gp_rl.o highlvl.o whatnow.o plot.o plotport.o   -L/var/tmp/portage/pari-2.1.7-r1/work/pari-2.1.7/Olinux-i686 -L/lib -lreadline -lncurses -L./ -lpari -L/usr/lib -lX11  -ldl -lm
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o: In function `_start':
init.c:(.text+0xc): undefined reference to `__libc_csu_fini'
init.c:(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
make: *** [gp-dyn] Error 1

if is use theses CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe -mmmx -msse2 -msse"

the the bulding of shared lib failed too!

Seems that some CFLAGS break some packages????!

i dont have the time at the moment to try each flags-combination ;)
Comment 16 Dan Armak 2006-09-20 12:32:27 UTC
I have the same error compiling device-mapper on amd64. I have CFLAGS="-march=athlon64 -O2 -pipe" and always did, except that I used to have -ggdb and later removed it and recompiled world. The error occurred when I still had -ggdb, too.

# emerge device-mapper
[...]
x86_64-pc-linux-gnu-gcc -o dmsetup dmsetup.o  -L../lib/ioctl \
              -L../lib/ioctl -L/lib -ldevmapper
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1

And "LDFLAGS=-lc_nonshared emerge device-mapper" works.
Comment 17 Dan Armak 2006-09-20 12:33:03 UTC
Created attachment 97572 [details]
emerge --info
Comment 18 bunkacid 2006-09-20 17:14:11 UTC
(In reply to comment #15)
> And "LDFLAGS=-lc_nonshared emerge device-mapper" works.

Thanks for the idea, but it doesn't work for me.  Same exact error.

Comment 19 SpanKY gentoo-dev 2006-09-20 20:12:06 UTC
what does this show:
cat /usr/lib/libc.so
Comment 20 Dan Armak 2006-09-20 23:43:13 UTC
claw / # cat /usr/lib/libc.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a  AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
Comment 21 SpanKY gentoo-dev 2006-09-20 23:50:21 UTC
which is why this bug doesnt make sense ... doing '-lc' should be pulling in -lc_nonshared automatically

hmm, what does `ls /lib*/libc.*` look like ?
Comment 22 Dan Armak 2006-09-21 01:24:56 UTC
claw / # ls -l /lib*/libc.*
lrwxrwxrwx 1 root root  9 Mar  3  2006 /lib/libc.so -> libc.so.6
lrwxrwxrwx 1 root root 11 Jun  2 17:24 /lib/libc.so.6 -> libc-2.4.so
lrwxrwxrwx 1 root root 11 Jun  2 17:24 /lib32/libc.so.6 -> libc-2.4.so
lrwxrwxrwx 1 root root  9 Mar  3  2006 /lib64/libc.so -> libc.so.6
lrwxrwxrwx 1 root root 11 Jun  2 17:24 /lib64/libc.so.6 -> libc-2.4.so
Comment 23 SpanKY gentoo-dev 2006-09-21 01:39:17 UTC
well that's obviously your problem

/lib*/libc.so should not exist

find out who created them:
qfile /lib*/libc.so
Comment 24 Dan Armak 2006-09-21 02:18:49 UTC
'qfile /lib*/libc.so' finds nothing. I don't know why they were there.
I removed them and emerge device-mapper works. I'll remerge glibc to see what happens.
Comment 25 bunkacid 2006-09-21 03:46:43 UTC
(In reply to comment #22)
> well that's obviously your problem
> 
> /lib*/libc.so should not exist
> 
> find out who created them:
> qfile /lib*/libc.so
> 
qfile reported no owner, I removed /lib/libc.so
device-mapper now compiles fine.

Thanks a lot for your help!
Comment 26 SpanKY gentoo-dev 2006-09-21 06:43:52 UTC
well lemme know if you ever track down who installed that and we can kick em
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2007-03-10 08:38:43 UTC
*** Bug 170218 has been marked as a duplicate of this bug. ***
Comment 28 andrew lorien 2007-03-10 14:41:16 UTC
Hey I know it's a long time ago, but here's my answer to the "who installed that" question:

>ll /* | grep "Aug 14"
lrwxrwxrwx 1 root root    4 Aug 14  2006 Mail -> mail
lrwxrwxrwx 1 root root    4 Aug 14  2006 lastb -> last
lrwxrwxrwx 1 root root    4 Aug 14  2006 mailx -> mail
lrwxrwxrwx 1 root root    2 Aug 14  2006 red -> ed
lrwxrwxrwx 1 root root 1 Aug 14  2006 boot -> .
lrwxrwxrwx  1 root root      36 Aug 14  2006 localtime -> /usr/share/zoneinfo/Australia/Sydney
lrwxrwxrwx  1 root root      50 Aug 14  2006 make.profile.OLD -> ../usr/portage/profiles/default-linux/amd64/2005.0
lrwxrwxrwx 1 root root   15 Aug 14  2006 libdl.so -> /lib/libdl.so.2
lrwxrwxrwx 1 root root   21 Aug 14  2006 fbres -> /lib/splash/bin/fbres
lrwxrwxrwx 1 root root    8 Aug 14  2006 pidof -> killall5
lrwxrwxrwx   1 root root     9 Aug 14  2006 doc -> share/doc
lrwxrwxrwx   1 root root    10 Aug 14  2006 info -> share/info
lrwxrwxrwx   1 root root     5 Aug 14  2006 lib -> lib64
lrwxrwxrwx   1 root root     9 Aug 14  2006 man -> share/man
lrwxrwxrwx   1 root root    10 Aug 14  2006 tmp -> ../var/tmp
lrwxrwxrwx  1 root root   15 Aug 14  2006 mail -> /var/spool/mail

which makes me think that it might have been the day i started from scratch... 
maybe it helps, maybe it's old news, but thanks bug-wranglers for finding me the solution yet again.