Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED]Problem emerging gcc

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
sarmadzhiev
n00b
n00b
Posts: 45
Joined: Fri Apr 29, 2005 3:54 pm

[SOLVED]Problem emerging gcc

  • Quote

Post by sarmadzhiev » Fri Mar 17, 2006 5:51 am

Hi
I am having problem emerging many programs
Here example with gcc

Code: Select all

*** This configuration is not supported in the following subdirectories:
     target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
    (Any other directories should still work fine.)
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib64/libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib64/libc.so:5: syntax error
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -march=k8 -O2 -pipe   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

!!! ERROR: sys-devel/gcc-3.4.5 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile
  ebuild.sh, line 1272:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1478:   Called gcc_do_configure

!!! failed to run configure
!!! If you need support, post the topmost build error, and the call stack if relevant.
or glibc (I think here is the source)

Code: Select all


checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

!!! ERROR: sys-libs/glibc-2.4 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile
  glibc-2.4.ebuild, line 1247:   Called src_compile
  glibc-2.4.ebuild, line 1258:   Called toolchain-glibc_src_compile
  glibc-2.4.ebuild, line 256:   Called glibc_do_configure 'nptl'

!!! failed to configure glibc
!!! If you need support, post the topmost build error, and the call stack if relevant.

It seems CC is not set to working compiler.

Any help is appriciate

here the make.conf

Code: Select all

ACCEPT_KEYWORDS="~amd64"
CFLAGS="-march=k8 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfprems strict"
#GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo ftp://ftp.du.se/pub/os/gentoo http://trumpetti.atm.tut.fi/gentoo"
MAKEOPTS="-j2"
PKGDIR="usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
#PORTDIR_OVERLAY="/usr/local/portage"
#PORTDIR_OVERLAY="/usr/local/portage-xgl"
PORTDIR_OVERLAY="/usr/local/xgl-coffee /usr/local/nik-overlay"
INPUT_DEVICES="keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -evdev -fpit -hyperpen -jamstudio -joystic$
VIDEO_CARDS="-i128 -mga -savage -apm -ark ati -chips -cirrus -cyrix -dummy -fbdev -fglrx% -glint -i740 -i810 -imstt -neomagic -newport -nsc nv nvidia -rad$
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
LINGUAS="bg us"
USE="3dfx 3dnow a52 asf amd64 X alsa arts audiofile avi acpi aac -apm apache2 berkdb bg bitmap-fonts bzip2 bzlib cairo cddb cdparanoia cdr cdrom compiz composite crypt cups curl dbus do divx4linux dri dv dvd dvdread  dvb dvdr eds emboss elibc_glibc encode expat fam fame ffmpeg foomaticdb fortran ftp gif glitz glut gnome gpm gstreamer gtk gtk2 hal icq idn imagemagick imlib -ipv6 -ithreads ivtv java javascript jpeg kde kdeenablefinal kernel_linux lcd lcms lzw lzw-tiff mad mime mmx mng mp3 mpeg multislot mysql nas ncurses nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre php pdflib perl pic pmount png python qt quicktime rdesktop real readline samba scanner sdk sdl soap spell sse ssl subtitles sun svg tcltk tcpd tiff threads truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales vorbis v4l v4l2 vcd wine win32codecs xcomposite xine xml2 xinerama xorg xpm xprint xv xvid xvmc zeroconf zlib"
If I try to emerge gcc 4.1.0 (hard masked)
failing saying
"checking for C compiler default output file name... configure: error: C compiler cannot create executables"

config.log is

Code: Select all

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MPFR configure 2.2.0, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-shared --enable-static --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu

## --------- ##
## Platform. ##
## --------- ##

hostname = desktop
uname -m = x86_64
uname -r = 2.6.16-rc5
uname -s = Linux
uname -v = #1 SMP Thu Mar 2 08:06:34 PST 2006

/usr/bin/uname -p = AMD Athlon(tm) 64 Processor 3400+
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3
PATH: /opt/ati/bin
PATH: /opt/blackdown-jdk-1.4.2.03/bin
PATH: /opt/blackdown-jdk-1.4.2.03/jre/bin
PATH: /usr/bin
PATH: /usr/kde/3.5/sbin
PATH: /usr/kde/3.5/bin
PATH: /usr/qt/3/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1600: checking for a BSD-compatible install
configure:1655: result: /bin/install -c
configure:1666: checking whether build environment is sane
configure:1709: result: yes
configure:1774: checking for gawk
configure:1790: found /bin/gawk
configure:1800: result: gawk
configure:1810: checking whether make sets $(MAKE)
configure:1830: result: yes
configure:1996: checking build system type
configure:2014: result: x86_64-pc-linux-gnu
configure:2022: checking host system type
configure:2036: result: x86_64-pc-linux-gnu
configure:2167: checking for x86_64-pc-linux-gnu-gcc
configure:2183: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:2193: result: x86_64-pc-linux-gnu-gcc
configure:2475: checking for C compiler version
configure:2478: x86_64-pc-linux-gnu-gcc --version </dev/null >&5
x86_64-pc-linux-gnu-gcc (GCC) 3.4.3 20041125 (Gentoo 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
Copyright (C) 2004 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.

configure:2481: $? = 0
configure:2483: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/specs
Configured with: /var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3 --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-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.3 20041125 (Gentoo 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
configure:2486: $? = 0
configure:2488: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
x86_64-pc-linux-gnu-gcc: `-V' option must have argument
configure:2491: $? = 1
configure:2514: checking for C compiler default output file name
configure:2517: x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe -msse3   conftest.c  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib64/libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib64/libc.so:5: syntax error
collect2: ld returned 1 exit status
configure:2520: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "2.2.0"
| #define PACKAGE_STRING "MPFR 2.2.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2559: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_build_alias=x86_64-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=k8 -O2 -pipe -msse3'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=k8 -O2 -pipe -msse3'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_host_alias=x86_64-pc-linux-gnu
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /var/tmp/portage/mpfr-2.2.0_p8/work/mpfr-2.2.0/missing --run aclocal-1.9'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/mpfr-2.2.0_p8/work/mpfr-2.2.0/missing --run tar'
ANSI2KNR=''
AR=''
AS=''
AUTOCONF='${SHELL} /var/tmp/portage/mpfr-2.2.0_p8/work/mpfr-2.2.0/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/mpfr-2.2.0_p8/work/mpfr-2.2.0/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/mpfr-2.2.0_p8/work/mpfr-2.2.0/missing --run automake-1.9'
AWK='gawk'
CC='x86_64-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-march=k8 -O2 -pipe -msse3'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-march=k8 -O2 -pipe -msse3'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/mpfr-2.2.0_p8/work/mpfr-2.2.0/missing --run makeinfo'
MPFR_LIBM=''
OBJDUMP=''
OBJEXT=''
PACKAGE='mpfr'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='MPFR'
PACKAGE_STRING='MPFR 2.2.0'
PACKAGE_TARNAME='mpfr'
PACKAGE_VERSION='2.2.0'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
U=''
VERSION='2.2.0'
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_F77=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/var/tmp/portage/mpfr-2.2.0_p8/work/mpfr-2.2.0/install-sh'
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "MPFR"
#define PACKAGE_STRING "MPFR 2.2.0"
#define PACKAGE_TARNAME "mpfr"
#define PACKAGE_VERSION "2.2.0"

configure: exit 77
Last edited by sarmadzhiev on Tue May 09, 2006 2:14 am, edited 2 times in total.
Top
martin20450
Tux's lil' helper
Tux's lil' helper
Posts: 91
Joined: Fri Sep 30, 2005 7:18 pm

  • Quote

Post by martin20450 » Sun Mar 19, 2006 12:43 am

Add coreutils to your ~arch and re-emerge gblic - there's lots of posts in the forums on the problems you'll encounter when doing this, either that or delete your glibc ~arch from your package.keywords provided you haven't done an emerge -e world yet.
Top
sarmadzhiev
n00b
n00b
Posts: 45
Joined: Fri Apr 29, 2005 3:54 pm

  • Quote

Post by sarmadzhiev » Tue May 09, 2006 2:14 am

RE-emerging with emerge -e world did the job.
now it is working fine
Top
DrGreenthumb
n00b
n00b
Posts: 17
Joined: Thu Aug 21, 2003 5:20 pm
Location: Germany

  • Quote

Post by DrGreenthumb » Sat May 27, 2006 5:05 pm

I've got the same problem but i can't do an emerge -e world because it ends in the same error message.
Top
Halcy0n
Developer
Developer
User avatar
Posts: 1682
Joined: Wed Sep 17, 2003 5:09 am
Location: Freehold, NJ
Contact:
Contact Halcy0n
Website

  • Quote

Post by Halcy0n » Sat May 27, 2006 8:03 pm

DrGreenthumb wrote:I've got the same problem but i can't do an emerge -e world because it ends in the same error message.

Code: Select all

binutils-config -l
You are probably using 2.15.*, switch to 2.16.
Mark Loeser
http://www.halcy0n.com
Top
DrGreenthumb
n00b
n00b
Posts: 17
Joined: Thu Aug 21, 2003 5:20 pm
Location: Germany

  • Quote

Post by DrGreenthumb » Sun May 28, 2006 10:40 am

Thanks :)
That was the fault
Top
mudrii
l33t
l33t
Posts: 789
Joined: Thu Jun 26, 2003 12:27 am
Location: Singapore
Contact:
Contact mudrii
Website

  • Quote

Post by mudrii » Fri Jun 16, 2006 10:44 am

Same problem with glibc nothing helped

post http://forums.gentoo.org/viewtopic-p-33 ... ml#3385311
www.gentoo.ro
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic