Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to compile glibc 2.4-r4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
PhanLord
Apprentice
Apprentice


Joined: 19 Nov 2002
Posts: 175

PostPosted: Sun Oct 01, 2006 12:12 am    Post subject: Unable to compile glibc 2.4-r4 Reply with quote

Im trying to update glibc to glic-2.4-r4 from r3
and im getting this in ./configure step

checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile

this is in config.log
configure:2759: checking for C compiler version
configure:2762: i686-pc-linux-gnu-gcc --version </dev/null >&5
gcc-config error: i686-pc-linux-gnu-gcc wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile.
configure:2765: $? = 1
configure:2767: i686-pc-linux-gnu-gcc -v </dev/null >&5
gcc-config error: i686-pc-linux-gnu-gcc wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile.
configure:2770: $? = 1
configure:2772: i686-pc-linux-gnu-gcc -V </dev/null >&5
gcc-config error: i686-pc-linux-gnu-gcc wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile.
configure:2775: $? = 1
configure:2779: checking for suffix of object files
configure:2800: i686-pc-linux-gnu-gcc -c -march=athlon64 -pipe -O2 conftest.c >&5
gcc-config error: i686-pc-linux-gnu-gcc wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile.
configure:2803: $? = 1

emerge --info
Portage 2.1.2_pre2 (default-linux/amd64/2005.0, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo x86_64)
=================================================================
System uname: 2.6.18-gentoo x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.12.5
Last Sync: Sat, 30 Sep 2006 22:30:08 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.3.5, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: 0.4.2-r1
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/tomcat5 /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://mirror.tucdemonic.org/gentoo/ ftp://mirrors.tds.net/gentoo http://adelie.polymtl.ca/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en_US en"
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/portage /usr/local/overlays/xgl-coffee /usr/portage/local/layman/sunrise /usr/portage/local/layman/hanno-xgl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acl acpi alsa apache2 avahi avi bash-completion berkdb bitmap-fonts branding bzip2 cairo canvas cdb cdda cddb cdparanoia cdr cli crypt cups curl daap dba dbus divx4linux dlloader dri dts dv dvb dvd dvdr dvdread eds elibc_glibc emboss encode exif faad fame ffmpeg firefox flac foomaticdb fortran freetype gd gdbm gif gimpprint glitz glut gmail gmailtimestamps gnome gnutls gphoto2 gstreamer gstreamer010 gtk gtk1 gtk2 gtkhtml hal howl howl-compat httpd icq id3 imagemagick imap imlib input_devices_keyboard input_devices_mouse ipod ipv6 isdnlog java joystick jp2k jpeg jpeg2k kde kdeenablefinal kernel_linux kqemu lame libg++ linguas_en linguas_en_US lirc live lzo lzw lzw-tiff mad matroska mikmod mime mjpeg mng mod modplug mono mozdevelop mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mplayer msn musicbrainz nas ncurses net network nls no_wxgtk1 noxmms nptl nptlonly nsplugin nvidia nvtv odbc ogg oggvorbis opengl openntpd oscar pam pcre pdf pdflib pear perl player png postgres ppds pppd ptpi python qmax qt qt3 qt4 quicktime rar rdesktop readline reflection rtc ruby samba scanner screen sdl server session shout skins smime speex spell spl sqlite sqllite ssl stream subtitles svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 vcd video_cards_nv video_cards_nvidia video_cards_vesa vlm vorbis vorbisi widescreen wmf wxwindows xanim xine xinerama xml xml2 xorg xosd xpm xv xvid xvmc yahoo zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,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)

uname -a
Linux amon 2.6.18-gentoo #1 Fri Sep 29 19:21:17 EDT 2006 x86_64 AMD Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
ShadowHawkBV
Guru
Guru


Joined: 27 Mar 2004
Posts: 352

PostPosted: Sun Oct 01, 2006 1:29 am    Post subject: Reply with quote

I'd suggest trying
Code:

gcc-config -l


It should appear something like this:

Code:
 [1] x86_64-pc-linux-gnu-3.4.5
 [2] x86_64-pc-linux-gnu-3.4.5-hardened
 [3] x86_64-pc-linux-gnu-3.4.5-hardenednopie
 [4] x86_64-pc-linux-gnu-3.4.5-hardenednopiessp
 [5] x86_64-pc-linux-gnu-3.4.5-hardenednossp
 [6] x86_64-pc-linux-gnu-4.1.1 *


If the asterix isn't where you want it to be (or is missing all-together) enter
Code:
gcc-config  x86_64-pc-linux-gnu-4.1.1


From the looks of the error messages about the wrappers, it almost looks like it's trying to use an x86 compiler to make your glibc. That could be a problem.
_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Intel i7-1065G7
Intel i7-8565U
Intel Atom Cherry Trail
AMD Phenom(tm) II X4 955
Pure 64bit frustration :-)
Back to top
View user's profile Send private message
adlaiff6
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2006
Posts: 83
Location: new york

PostPosted: Sun Oct 01, 2006 8:34 pm    Post subject: Reply with quote

I'm getting the same problem (I think...glibc-2.4-r4 just doesn't compile; I haven't looked at the error yet). I just changed my USE flags to include glibc-compat20 and glibc-omitfp, and it failed, so I removed the compat20 flag and I'm trying again.

Hmm. I think that got me the farthest so far. Here is what I think is the relevant part of the error. At the end it looks like it's compiling an x86 version, but I have amd64 (and I think it identifies as x86_64 for whatever reason). How do I fix that, if that's the problem?

Code:
../sysdeps/generic/initfini.c:1: error: CPU you selected does not support x86-64 instruction set
../sysdeps/generic/initfini.c:1: error: CPU you selected does not support x86-64 instruction set
make[2]: *** [/var/tmp/portage/glibc-2.4-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/initfini.s] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
../nptl/sysdeps/i386/i686/../tls.h:65:3: #error "TLS support is required."
In file included from ../time/time.h:43,
                 from ../include/time.h:5,
                 from ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:23,
                 from ../nptl/descr.h:30,
                 from ../nptl/sysdeps/i386/i686/../tls.h:105,
                 from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
../bits/time.h:34:1: warning: "CLOCKS_PER_SEC" redefined
In file included from /usr/include/asm/param.h:8,
                 from /usr/include/linux/param.h:4,
                 from ../sysdeps/unix/sysv/linux/sys/param.h:24,
                 from ../sysdeps/i386/i686/hp-timing.h:25,
                 from ../nptl/descr.h:28,
                 from ../nptl/sysdeps/i386/i686/../tls.h:105,
                 from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
/usr/include/asm-x86_64/param.h:20:1: warning: this is the location of the previous definition
In file included from ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:23,
                 from ../nptl/descr.h:30,
                 from ../nptl/sysdeps/i386/i686/../tls.h:105,
                 from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
../include/time.h:102: warning: `stdcall' attribute ignored
In file included from ../inet/netinet/in.h:24,
                 from ../include/netinet/in.h:3,
                 from ../resolv/resolv.h:57,
                 from ../include/resolv.h:12,
                 from ../nptl/descr.h:39,
                 from ../nptl/sysdeps/i386/i686/../tls.h:105,
                 from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
../include/sys/socket.h:21: warning: `stdcall' attribute ignored
make[2]: *** [/var/tmp/portage/glibc-2.4-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/tcb-offsets.h] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r4/work/glibc-2.4/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r4/work/glibc-2.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.4-r4 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  glibc-2.4-r4.ebuild, line 1156:   Called src_compile
  glibc-2.4-r4.ebuild, line 1167:   Called toolchain-glibc_src_compile
  glibc-2.4-r4.ebuild, line 255:   Called die

!!! make for x86 failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


Last edited by adlaiff6 on Sun Oct 01, 2006 8:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
PoueT
n00b
n00b


Joined: 19 Sep 2004
Posts: 45
Location: Amiens || Paris

PostPosted: Sun Oct 01, 2006 8:39 pm    Post subject: Reply with quote

for me it says :
Code:
../sysdeps/generic/initfini.c:1: error: CPU you selected does not support x86-64  instruction set
../sysdeps/generic/initfini.c:1: error: CPU you selected does not support x86-64  instruction set
make[2]: *** [/var/tmp/portage/glibc-2.4-r4/work/build-x86-x86_64-pc-linux-gnu-n ptl/csu/initfini.s] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
../nptl/sysdeps/i386/i686/../tls.h:65:3: error: #error "TLS support is required. "
In file included from ../time/time.h:43,
                 from ../include/time.h:5,
                 from ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:23,
                 from ../nptl/descr.h:30,
                 from ../nptl/sysdeps/i386/i686/../tls.h:105,
                 from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
../bits/time.h:34:1: warning: "CLOCKS_PER_SEC" redefined
In file included from /usr/include/asm/param.h:8,
                 from /usr/include/linux/param.h:4,
                 from ../sysdeps/unix/sysv/linux/sys/param.h:24,
                 from ../sysdeps/i386/i686/hp-timing.h:25,
                 from ../nptl/descr.h:28,
                 from ../nptl/sysdeps/i386/i686/../tls.h:105,
                 from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
/usr/include/asm-x86_64/param.h:20:1: warning: this is the location of the previ ous definition
In file included from ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:23,
                 from ../nptl/descr.h:30,
                 from ../nptl/sysdeps/i386/i686/../tls.h:105,
                 from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
../include/time.h:102: warning: 'stdcall' attribute ignored
In file included from ../inet/netinet/in.h:24,
                 from ../include/netinet/in.h:3,
                 from ../resolv/resolv.h:57,
                 from ../include/resolv.h:12,
                 from ../nptl/descr.h:39,
                 from ../nptl/sysdeps/i386/i686/../tls.h:105,
                 from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
../include/sys/socket.h:21: warning: 'stdcall' attribute ignored
make[2]: *** [/var/tmp/portage/glibc-2.4-r4/work/build-x86-x86_64-pc-linux-gnu-n ptl/tcb-offsets.h] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r4/work/glibc-2.4/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r4/work/glibc-2.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.4-r4 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  glibc-2.4-r4.ebuild, line 1156:   Called src_compile
  glibc-2.4-r4.ebuild, line 1167:   Called toolchain-glibc_src_compile
  glibc-2.4-r4.ebuild, line 255:   Called die

!!! make for x86 failed
!!! If you need support, post the topmost build error, and the call stack if rel evant.

_________________
have you mooed today ?
Back to top
View user's profile Send private message
adlaiff6
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2006
Posts: 83
Location: new york

PostPosted: Sun Oct 01, 2006 8:40 pm    Post subject: Reply with quote

Well it seems we each have the same problem.
Back to top
View user's profile Send private message
garik
n00b
n00b


Joined: 12 Apr 2005
Posts: 30
Location: Tajikistan

PostPosted: Mon Oct 02, 2006 3:52 am    Post subject: Reply with quote

SOLVED after change gcc to gcc-4.1.1

I have the same problem

checking version of /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld... 2.16.1, ok
checking for pwd... /bin/pwd
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking version of i686-pc-linux-gnu-gcc... 3.3.5, bad
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... gmsgfmt
checking version of gmsgfmt... 0.12.1, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.8, ok
checking for sed... sed
checking version of sed... 4.1.5, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: gcc
*** Check the INSTALL file for required versions.

!!! ERROR: sys-libs/glibc-2.4-r3 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
glibc-2.4-r3.ebuild, line 1192: Called toolchain-glibc_src_compile
glibc-2.4-r3.ebuild, line 253: Called glibc_do_configure 'nptl'
glibc-2.4-r3.ebuild, line 943: Called die

!!! failed to configure glibc
!!! If you need support, post the topmost build error, and the call stack if relevant.
Back to top
View user's profile Send private message
reynolds531
Apprentice
Apprentice


Joined: 23 Apr 2005
Posts: 260
Location: Rochester, NY

PostPosted: Mon Oct 02, 2006 5:07 am    Post subject: Reply with quote

ShadowHawkBV wrote:
I'd suggest trying
Code:

gcc-config -l


It should appear something like this:

Code:
 [1] x86_64-pc-linux-gnu-3.4.5
 [2] x86_64-pc-linux-gnu-3.4.5-hardened
 [3] x86_64-pc-linux-gnu-3.4.5-hardenednopie
 [4] x86_64-pc-linux-gnu-3.4.5-hardenednopiessp
 [5] x86_64-pc-linux-gnu-3.4.5-hardenednossp
 [6] x86_64-pc-linux-gnu-4.1.1 *


If the asterix isn't where you want it to be (or is missing all-together) enter
Code:
gcc-config  x86_64-pc-linux-gnu-4.1.1



What I found is that even if gcc-config shows the correct version of gcc selected, you still have to force it to reselect that version. After I entered "gcc-config -f 1" I was able to compile glibc without a problem. See also this thread.
Back to top
View user's profile Send private message
Duki
n00b
n00b


Joined: 20 Nov 2005
Posts: 24
Location: Germany

PostPosted: Mon Oct 02, 2006 9:13 am    Post subject: Reply with quote

Solved it for me (gcc-config -f)

Edit: I mean the
Code:
make[2]: *** [/var/tmp/portage/glibc-2.4-r4/work/build-x86-x86_64-pc-linux-gnu-n ptl/tcb-offsets.h] Error 1

error, not any other. If you scroll up, your output should show "TLS support is required".
_________________
"Not everything that counts can be counted, and not everything that can be counted counts." - Albert Einstein
Back to top
View user's profile Send private message
PhanLord
Apprentice
Apprentice


Joined: 19 Nov 2002
Posts: 175

PostPosted: Mon Oct 02, 2006 4:22 pm    Post subject: Reply with quote

my issue was solved by using eselect and selecting compiler for i686 and amd64.
(maybe me having eselect-compipler package installed has reated this issue for me)
Back to top
View user's profile Send private message
adlaiff6
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2006
Posts: 83
Location: new york

PostPosted: Mon Oct 02, 2006 4:27 pm    Post subject: Reply with quote

Duki wrote:
Solved it for me (gcc-config -f)
Me too, thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum