Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C compiler cannot create executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
spetznaz
n00b
n00b


Joined: 07 Dec 2003
Posts: 34
Location: Risør, Norway

PostPosted: Thu Mar 31, 2005 1:47 am    Post subject: C compiler cannot create executables Reply with quote

Feilen oppsto etter at jeg fulgte guiden for og oppdatere systemet til 2005.0 http://www.gentoo.org/proj/en/base/amd64/2005.0-upgrade-amd64.xml#doc_chap2 (script metoden)
Jeg fikk ingen feilmeldinger under oppgaderingen. Før jeg oppdaterte systemet hadde jeg fikset bugen som ikke lot meg oppdatere gcc. Denne feilen fikset jeg ved og følge rådene i til bug #86123

Rådet var som følger:
Quote:

rm -f /usr/lib32
ln -s ../../emul/linux/x86/usr/lib /usr/lib32
FEATURES=-sandbox emerge gcc


Dette fikset bugen jeg hadde med og ikke få oppdatert GCC. Og GCC fungerte greit. Det var etter at jeg oppdaterte til 2005.0 problemene med "C compiler cannot create executables" oppsto.

Ting jeg har testet:

1) fix_libtool_files.sh 3.4.2
2) gcc-config 1
3) Editere /etc/ld.so.conf slik at alle gcc stiene peker mot 3.4.3-20050110
4) Dobbelt og trippelt skjekket at /etc/make.conf ikke inneholder feil (jeg har ikke sett så nøye på use flagene, men det bør ikke ha noe og si).
5) Testet og kompillere uten noen CFLAGS og CXXFLAGS.
6) libtool_files.sh 3.4.3-20050110

Ja jeg er klar over Bug #73435 Den er markert som fixed, men jeg kan ikke se noen hint der som løster mine problemer.

System info:
Quote:

spetznaz@Mjolne ~ $ gcc-config -l
[1] x86_64-pc-linux-gnu-3.4.2
[2] x86_64-pc-linux-gnu-3.4.2-hardened
[3] x86_64-pc-linux-gnu-3.4.2-hardenednossp
[4] x86_64-pc-linux-gnu-3.4.3-20050110 *
[5] x86_64-pc-linux-gnu-3.4.3-20050110-hardened
[6] x86_64-pc-linux-gnu-3.4.3-20050110-hardenednopie
[7] x86_64-pc-linux-gnu-3.4.3-20050110-hardenednossp

Quote:

spetznaz@Mjolne ~ $ emerge --info
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.2 0050125-r1, 2.6.11-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.10
Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 29 2005, 02:30:26)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disab led]
dev-lang/python: 2.3.5
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.9.5, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3
sys-devel/binutils: 2.15.92.0.2-r7
sys-devel/libtool: 1.5.14
virtual/os-headers: 2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -pipe -frename-registers -fweb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share /config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar e/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe -frename-registers -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://mirror.pudas.net/ gentoo ftp://trumpetti.atm.tut.fi/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 acpi alsa amd64 avi berkdb bidi bitmap-fonts cdr crypt dba directfb dvd d vdr dvdread encode fam fbcon ffmpeg flac font-server fortran freetype gd ggi gif gimp gpm gtk gtk2 imlib ipv6 jp2 jpeg kde libcaca lzw lzw-tiff mad motif mp3 mp eg mysql ncurses nls ogg oggvorbis opengl oss pam perl png python qt readline sd l spell ssl svg tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userloca les wxwindows xml2 xmms xpm xrandr xv xvid zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS


Error report
jeg får samme type feil melding uansett hvordan program jeg prøver og emerge. Her er irssi som et eksempel
Quote:

>>> Source unpacked.
* econf: updating irssi-0.8.10-rc5/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating irssi-0.8.10-rc5/config.sub with /usr/share/gnuconfig/config.sub
./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 --libdir=/usr/lib64 --with-glib2 --without-servertest --with-proxy --with-ncurses --enable-nls --with-perl --enable-ipv6 --without-socks --with-openssl-include=/usr --with-openssl-libs=/usr
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5/config.log

!!! ERROR: net-irc/irssi-0.8.10_rc5-r1 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


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

It was created by configure, 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 --libdir=/usr/lib64 --with-glib2 --without-servertest --with-proxy --with-ncurses --enable-nls --with-perl --enable-ipv6 --without-socks --with-openssl-include=/usr --with-openssl-libs=/usr

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

hostname = Mjolne
uname -m = x86_64
uname -r = 2.6.11-gentoo-r4
uname -s = Linux
uname -v = #1 Wed Mar 23 19:42:54 CET 2005

/usr/bin/uname -p = AMD Athlon(tm) 64 Processor 3000+
/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-20050110
PATH: /opt/ati/bin
PATH: /usr/X11R6/bin
PATH: /usr/qt/3/bin
PATH: /usr/kde/3.4/sbin
PATH: /usr/kde/3.4/bin
PATH: /opt/vmware/bin


## ----------- ## ## Core tests. ## ## ----------- ## configure:1576: checking for a BSD-compatible install configure:1631: result: /bin/install -c configure:1642: checking whether build environment is sane
configure:1685: result: yes
configure:1700: checking whether make sets $(MAKE)
configure:1720: result: yes
configure:1752: checking for working aclocal-1.4
configure:1759: result: found
configure:1767: checking for working autoconf
configure:1774: result: found
configure:1782: checking for working automake-1.4
configure:1789: result: found configure:1797: checking for working autoheader
configure:1804: result: found
configure:1812: checking for working makeinfo
configure:1819: result: found
configure:1829: checking whether to enable maintainer-specific portions of Makefiles
configure:1838: result: no
configure:1861: checking for x86_64-pc-linux-gnu-gcc
configure:1877: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:1887: result: x86_64-pc-linux-gnu-gcc
configure:2169: checking for C compiler version
configure:2172: x86_64-pc-linux-gnu-gcc --version </dev/null >&5
x86_64-pc-linux-gnu-gcc (GCC) 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110-r1, ssp-3.4.3.20050110-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:2175: $? = 0
configure:2177: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/specs Configured with: /var/tmp/portage/gcc-3.4.3.20050110-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-20050110 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3-20050110 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3-20050110/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3-20050110/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/g++-v3 --host=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-20050110 (Gentoo Linux 3.4.3.20050110-r1, ssp-3.4.3.20050110-0, pie-8.7.7)
configure:2180: $? = 0
configure:2182: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
x86_64-pc-linux-gnu-gcc: `-V' must come at the start of the command line
configure:2185: $? = 1
configure:2208: checking for C compiler default output file name
configure:2211: x86_64-pc-linux-gnu-gcc -march=k8 -O3 -pipe -frename-registers -fweb conftest.c >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2214: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "irssi"
| #define VERSION "0.8.10-rc5"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2253: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=k8 -O3 -pipe -frename-registers -fweb'
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 -O3 -pipe -frename-registers -fweb'
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=
ac_cv_env_build_alias_value=
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_path_install='/bin/install -c'
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='aclocal-1.4'
AR=''
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.4'
BUILD_IRSSIBOT_FALSE=''
BUILD_IRSSIBOT_TRUE=''
BUILD_IRSSIPROXY_FALSE=''
BUILD_IRSSIPROXY_TRUE=''
BUILD_PLUGINS_FALSE=''
BUILD_PLUGINS_TRUE=''
BUILD_TEXTUI_FALSE=''
BUILD_TEXTUI_TRUE=''
CC='x86_64-pc-linux-gnu-gcc'
CFLAGS='-march=k8 -O3 -pipe -frename-registers -fweb'
CHAT_MODULES=''
COMMON_LIBS=''
COMMON_NOUI_LIBS=''
CPP=''
CPPFLAGS=''
CURSES_INCLUDEDIR=''
CURSES_LIBS=''
CXX=''
CXXCPP=''
CXXFLAGS='-march=k8 -O3 -pipe -frename-registers -fweb'
DEFS=''
DYNALOADER_A=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GLIB_CFLAGS=''
GLIB_CONFIG=''
GLIB_GENMARSHAL=''
GLIB_LIBS=''
GLIB_MKENUMS=''
GOBJECT_QUERY=''
HAVE_PERL_FALSE=''
HAVE_PERL_TRUE=''
HAVE_STATIC_PERL_FALSE=''
HAVE_STATIC_PERL_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBPERL_A=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo'
NEED_TPARM_FALSE=''
NEED_TPARM_TRUE=''
OBJEXT=''
PACKAGE='irssi'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL_CFLAGS=''
PERL_EXTRA_OPTS=''
PERL_FE_LINK_LIBS=''
PERL_LDFLAGS=''
PERL_LIBTOOL=''
PERL_LINK_FLAGS=''
PERL_LINK_LIBS=''
PERL_MM_PARAMS=''
PERL_STATIC_LIBS=''
PERL_USE_LIB=''
PKG_CONFIG=''
PROG_LIBS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
SSL_CFLAGS=''
SSL_LIBS=''
STRIP=''
TEXTUI_LIBS=''
USE_CURSES_FALSE=''
USE_CURSES_TRUE=''
VERSION='0.8.10-rc5'
VERSION_DATE=''
VERSION_TIME=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='/usr/share'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='/usr/share/info'
irc_MODULES=''
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
perl_module_fe_lib=''
perl_module_lib=''
perl_static_fe_lib=''
perl_static_lib=''
perlpath=''
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sedpath=''
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

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

#define PACKAGE "irssi"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.8.10-rc5"

configure: exit 77


Last edited by spetznaz on Sun Apr 03, 2005 10:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Thu Mar 31, 2005 11:03 am    Post subject: Reply with quote

hmm ser ut til at denne er problemet:
Code:

20050110/../../../../x86_64-pc-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory


men det er ikke meget hjælp... crt1.o siger meg ikke meget.

præve på bugs.gentoo.org eller google ;)
_________________
linux: #232767
Back to top
View user's profile Send private message
Kloeri
Retired Dev
Retired Dev


Joined: 02 Sep 2002
Posts: 144

PostPosted: Fri Apr 01, 2005 11:53 am    Post subject: Reply with quote

Prøv at køre
Code:
fix_libtool_files.sh 3.4.3-20050110


Det burde løse problemet.
Back to top
View user's profile Send private message
spetznaz
n00b
n00b


Joined: 07 Dec 2003
Posts: 34
Location: Risør, Norway

PostPosted: Sun Apr 03, 2005 10:28 pm    Post subject: Reply with quote

Dessverre så gir det meg akkurat samme resultat som alt annet jeg har prøvd :(

Finnes det noen måte jeg kan fjerne gcc på, for og så installere det på nytt. eller tror dere ikke det heller ville funke?
Back to top
View user's profile Send private message
cato`
Guru
Guru


Joined: 03 Jun 2002
Posts: 430
Location: Norway, Trondheim

PostPosted: Mon Apr 04, 2005 3:30 pm    Post subject: Reply with quote

Galt:
bare putt en ny stage-tarball inn i systemet og emerge synd && emerge system for så å fortsett med hva du vil

Rett:
Se bug #85490

Edit 5. April
_________________
Don't mess with the Penguin.
Back to top
View user's profile Send private message
spetznaz
n00b
n00b


Joined: 07 Dec 2003
Posts: 34
Location: Risør, Norway

PostPosted: Sat Apr 23, 2005 11:44 pm    Post subject: Reply with quote

cato` wrote:
Galt:
bare putt en ny stage-tarball inn i systemet og emerge synd && emerge system for så å fortsett med hva du vil

Rett:
Se bug #85490

Edit 5. April


Hadde jeg hvist hvor jeg fant deg hadde jeg gitt deg en blowjob! takker 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian 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