Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50078 - glib-2.4.1 fails to compile
Summary: glib-2.4.1 fails to compile
Status: RESOLVED DUPLICATE of bug 49363
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-05 00:57 UTC by Andrei Ivanov
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments
ld --help (ld.txt,10.67 KB, text/plain)
2004-05-05 10:19 UTC, Andrei Ivanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Ivanov 2004-05-05 00:57:13 UTC
From config.log:

configure:2642: gcc -march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-fun
ctions=4 -mfpmath=sse   conftest.c  >&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--as-needed'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:2645: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "glib"
| #define PACKAGE_TARNAME "glib"
| #define PACKAGE_VERSION "2.4.1"
| #define PACKAGE_STRING "glib 2.4.1"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glib"
| #define GLIB_MAJOR_VERSION 2
| #define GLIB_MINOR_VERSION 4
| #define GLIB_MICRO_VERSION 1
| #define GLIB_INTERFACE_AGE 1
| #define GLIB_BINARY_AGE 401
| #define G_COMPILED_WITH_DEBUGGING "minimum"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2684: error: C compiler cannot create executables


Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.lug.ro/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl adns apache2 berkdb crypt curl fam flash gd gdbm gif gpm imap innodb java jpeg ldap libg++ libwww maildir mcal memlimit ncurses nls noauthcram nptl oss pam pdflib pg-hier pg-intdatetime pg-vacuumdelay pic png python readline samba slang slp spell sse ssl tcpd tiff truetype x86 xml xml2 zlib"
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2004-05-05 07:52:05 UTC
What is your sys-devel/binutils version?
Comment 2 Andrei Ivanov 2004-05-05 09:38:08 UTC
sys-devel/binutils-2.14.90.0.8-r1
Comment 3 Andrei Ivanov 2004-05-05 09:42:58 UTC
Hmm... it seems I can't compile anything anymore after the binutils downgrade:

# <solar@gentoo.org> (04 May 2004)
# remasking again due to bad gcc/binutils mixes

What should I do ?
Comment 4 Andrej Kacian (RETIRED) gentoo-dev 2004-05-05 09:58:48 UTC
Do `ld --help` to see if your ld supports the --as-needed option.

My package versions, if it helps (not experiencing this problem):
*  sys-devel/binutils
      Latest version available: 2.14.90.0.8-r1
      Latest version installed: 2.14.90.0.8-r1
      Size of downloaded files: 10,777 kB
      Homepage:    http://sources.redhat.com/binutils/
      Description: Tools necessary to build programs

*  sys-libs/glibc
      Latest version available: 2.3.3_pre20040207
      Latest version installed: 2.3.3_pre20040207
      Size of downloaded files: 15,180 kB
      Homepage:    http://www.gnu.org/software/libc/libc.html
      Description: GNU libc6 (also called glibc2) C library

*  sys-devel/gcc
      Latest version available: 3.3.3
      Latest version installed: 3.3.3
      Size of downloaded files: 23,063 kB
      Homepage:    http://www.gnu.org/software/gcc/gcc.html
      Description: The GNU Compiler Collection. Includes C/C++ and java compile
Comment 5 Andrei Ivanov 2004-05-05 10:19:28 UTC
Created attachment 30783 [details]
ld --help
Comment 6 Andrei Ivanov 2004-05-05 10:20:59 UTC
As you can see from the `emerge info` output, I have the same packages as you...
Comment 7 Andrej Kacian (RETIRED) gentoo-dev 2004-05-05 10:24:46 UTC
Strange, --as-needed does not seem to be supported by your ld. Check that you are using correct ld (`which ld`, should print out "/usr/bin/ld") and do `ld --version`. Mine shows:

$ ld --version
GNU ld version 2.15.90.0.3 20040415
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
Comment 8 Andrei Ivanov 2004-05-05 10:25:46 UTC
It seems this is the bug that has bitten me:

http://bugs.gentoo.org/show_bug.cgi?id=49363
Comment 9 foser (RETIRED) gentoo-dev 2004-05-05 14:42:02 UTC
good catch, duping

*** This bug has been marked as a duplicate of 49363 ***