Forums

Skip to content

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

configure: error: cannot run C compiled programs. [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
cetbaalix
n00b
n00b
Posts: 48
Joined: Thu Jul 19, 2007 8:08 pm
Contact:
Contact cetbaalix
Website

configure: error: cannot run C compiled programs. [SOLVED]

  • Quote

Post by cetbaalix » Mon Mar 09, 2009 7:10 am

I was running a emerge -av --update --deep world were suddenly my konsole window (running KDE) disappeared next Firefox exited and finally I saw only my KDE background picture left. I've restarted my notebook and saw some messages about libbluetooth could not be found. KDE still runs fine and all other programms but I can't compile any program anymore :-( I've tried different apps to emerge but none worked. Just as an example emerge cpio:

Code: Select all

uhura ~ # emerge -av cpio   

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-arch/cpio-2.9-r2  USE="nls" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-arch/cpio-2.9-r2
 * cpio-2.9.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                              [ ok ]
>>> Unpacking source...                                                                                                   
>>> Unpacking cpio-2.9.tar.bz2 to /var/tmp/portage/app-arch/cpio-2.9-r2/work                                              
 * Applying cpio-2.9-CVE-2007-4476.patch ...                                                                         [ ok ]
 * Applying cpio-2.9-gnu-inline.patch ...                                                                            [ ok ]
 * Applying cpio-2.9-restore-perms-owners.patch ...                                                                  [ ok ]
>>> Source unpacked in /var/tmp/portage/app-arch/cpio-2.9-r2/work                                                          
>>> Compiling source in /var/tmp/portage/app-arch/cpio-2.9-r2/work/cpio-2.9 ...                                            
 * econf: updating cpio-2.9/build-aux/config.guess with /usr/share/gnuconfig/config.guess                                  
 * econf: updating cpio-2.9/build-aux/config.sub with /usr/share/gnuconfig/config.sub                                      
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-nls --bindir=/bin --with-rmt=/usr/sbin/rmt --build=i686-pc-linux-gnu    
checking for a BSD-compatible install... /usr/bin/install -c                                                               
checking whether build environment is sane... yes                                                                          
checking for gawk... gawk                                                                                                  
checking whether make sets $(MAKE)... yes                                                                                  
checking for style of include used by make... GNU                                                                          
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc                                                                
checking for C compiler default output file name... a.out                                                                  
checking whether the C compiler works... configure: error: cannot run C compiled programs.                                 
If you meant to cross compile, use `--host'.                                                                               
See `config.log' for more details.                                                                                         

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-arch/cpio-2.9-r2/work/cpio-2.9/config.log
 *                                                                
 * ERROR: app-arch/cpio-2.9-r2 failed.                            
 * Call stack:                                                    
 *               ebuild.sh, line   49:  Called src_compile        
 *             environment, line 2100:  Called econf '--enable-nls' '--bindir=/bin' '--with-rmt=/usr/sbin/rmt'
 *               ebuild.sh, line  543:  Called die                                                            
 * The specific snippet of code:                                                                              
 *                      die "econf failed"                                                                    
 *  The die message:                                                                                          
 *   econf failed                                                                                             
 *                                                                                                            
 * If you need support, post the topmost build error, and the call stack if relevant.                         
 * A complete build log is located at '/var/tmp/portage/app-arch/cpio-2.9-r2/temp/build.log'.                 
 * The ebuild environment file is located at '/var/tmp/portage/app-arch/cpio-2.9-r2/temp/environment'.
config.log:

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 GNU cpio configure 2.9, which was
generated by GNU Autoconf 2.60.  Invocation command line was

  $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-nls --bindir=/bin --with-rmt=/usr/sbin/rmt --build=i686-pc-linux-gnu

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

hostname = uhura
uname -m = i686
uname -r = 2.6.28-gentoo-r2
uname -s = Linux
uname -v = #1 SMP Tue Feb 17 21:13:36 CET 2009

/usr/bin/uname -p = Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
/bin/uname -X     = unknown

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

PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.1.2
PATH: /usr/qt/3/bin
PATH: /opt/vmware/server/console/bin


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

configure:2074: checking for a BSD-compatible install
configure:2130: result: /usr/bin/install -c
configure:2141: checking whether build environment is sane
configure:2184: result: yes
configure:2249: checking for gawk
configure:2265: found /bin/gawk
configure:2276: result: gawk
configure:2287: checking whether make sets $(MAKE)
configure:2308: result: yes
configure:2515: checking for style of include used by make
configure:2543: result: GNU
configure:2576: checking for i686-pc-linux-gnu-gcc
configure:2592: found /usr/bin/i686-pc-linux-gnu-gcc
configure:2603: result: i686-pc-linux-gnu-gcc
configure:2881: checking for C compiler version
configure:2888: i686-pc-linux-gnu-gcc --version >&5
i686-pc-linux-gnu-gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.3)
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.

configure:2891: $? = 0
configure:2898: i686-pc-linux-gnu-gcc -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/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 --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-java-awt=gtk --with-arch=i686 --enable-languages=c,c++,java,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.3)
configure:2901: $? = 0
configure:2908: i686-pc-linux-gnu-gcc -V >&5
i686-pc-linux-gnu-gcc: '-V' option must have argument
configure:2911: $? = 1
configure:2934: checking for C compiler default output file name
configure:2961: i686-pc-linux-gnu-gcc -O2 -march=nocona -pipe  -Wl,-O1 conftest.c  >&5
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000080480c0
configure:2964: $? = 0
configure:3010: result: a.out
configure:3015: checking whether the C compiler works
configure:3025: ./a.out
[33;01mQA: Static ELF[0m ./a.out
./configure: line 3026: 21120 Segmentation fault      ./$ac_file
configure:3028: $? = 139
configure:3037: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
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='-O2 -march=nocona -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DEFAULT_RMT_DIR_set=
ac_cv_env_DEFAULT_RMT_DIR_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=i686-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /var/tmp/portage/app-arch/cpio-2.9-r2/work/cpio-2.9/build-aux/missing --run aclocal-1.9'
ALLOCA=''
ALLOCA_H=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/app-arch/cpio-2.9-r2/work/cpio-2.9/build-aux/missing --run tar'
AUTOCONF='${SHELL} /var/tmp/portage/app-arch/cpio-2.9-r2/work/cpio-2.9/build-aux/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/app-arch/cpio-2.9-r2/work/cpio-2.9/build-aux/missing --run autoheader'
AUTOM4TE=''
AUTOMAKE='${SHELL} /var/tmp/portage/app-arch/cpio-2.9-r2/work/cpio-2.9/build-aux/missing --run automake-1.9'
AWK='gawk'
BITSIZEOF_PTRDIFF_T=''
BITSIZEOF_SIG_ATOMIC_T=''
BITSIZEOF_SIZE_T=''
BITSIZEOF_WCHAR_T=''
BITSIZEOF_WINT_T=''
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-O2 -march=nocona -pipe'
CPIO_MT_PROG=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFAULT_RMT_COMMAND=''
DEFAULT_RMT_DIR=''
DEFS=''
DEPDIR='.deps'
DIRENT_H=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EOVERFLOW=''
EXEEXT=''
FCNTL_H=''
FLOAT_H=''
FNMATCH_H=''
GETOPT_H=''
GL_COND_LIBTOOL_FALSE=''
GL_COND_LIBTOOL_TRUE=''
GMSGFMT=''
GMSGFMT_015=''
GNULIB_CHOWN=''
GNULIB_DUP2=''
GNULIB_FCHDIR=''
GNULIB_FFLUSH=''
GNULIB_FPRINTF_POSIX=''
GNULIB_FSEEK=''
GNULIB_FSEEKO=''
GNULIB_FTELL=''
GNULIB_FTELLO=''
GNULIB_FTRUNCATE=''
GNULIB_GETCWD=''
GNULIB_GETLOGIN_R=''
GNULIB_GETSUBOPT=''
GNULIB_IMAXABS=''
GNULIB_IMAXDIV=''
GNULIB_LCHOWN=''
GNULIB_LSEEK=''
GNULIB_MBSCASECMP=''
GNULIB_MBSCASESTR=''
GNULIB_MBSCHR=''
GNULIB_MBSCSPN=''
GNULIB_MBSLEN=''
GNULIB_MBSNCASECMP=''
GNULIB_MBSNLEN=''
GNULIB_MBSPBRK=''
GNULIB_MBSPCASECMP=''
GNULIB_MBSRCHR=''
GNULIB_MBSSEP=''
GNULIB_MBSSPN=''
GNULIB_MBSSTR=''
GNULIB_MBSTOK_R=''
GNULIB_MEMMEM=''
GNULIB_MEMPCPY=''
GNULIB_MEMRCHR=''
GNULIB_MKDTEMP=''
GNULIB_MKSTEMP=''
GNULIB_PRINTF_POSIX=''
GNULIB_READLINK=''
GNULIB_SLEEP=''
GNULIB_SNPRINTF=''
GNULIB_SPRINTF_POSIX=''
GNULIB_STPCPY=''
GNULIB_STPNCPY=''
GNULIB_STRCASESTR=''
GNULIB_STRCHRNUL=''
GNULIB_STRDUP=''
GNULIB_STRNDUP=''
GNULIB_STRNLEN=''
GNULIB_STRPBRK=''
GNULIB_STRSEP=''
GNULIB_STRTOIMAX=''
GNULIB_STRTOK_R=''
GNULIB_STRTOUMAX=''
GNULIB_VASPRINTF=''
GNULIB_VFPRINTF_POSIX=''
GNULIB_VPRINTF_POSIX=''
GNULIB_VSNPRINTF=''
GNULIB_VSPRINTF_POSIX=''
GREP=''
HAVE_DECL_GETLOGIN_R=''
HAVE_DECL_IMAXABS=''
HAVE_DECL_IMAXDIV=''
HAVE_DECL_MEMMEM=''
HAVE_DECL_MEMRCHR=''
HAVE_DECL_MKDIR=''
HAVE_DECL_SNPRINTF=''
HAVE_DECL_STRDUP=''
HAVE_DECL_STRNCASECMP=''
HAVE_DECL_STRNDUP=''
HAVE_DECL_STRNLEN=''
HAVE_DECL_STRTOIMAX=''
HAVE_DECL_STRTOK_R=''
HAVE_DECL_STRTOUMAX=''
HAVE_DECL_VSNPRINTF=''
HAVE_DUP2=''
HAVE_FSEEKO=''
HAVE_FTELLO=''
HAVE_FTRUNCATE=''
HAVE_GETSUBOPT=''
HAVE_INTTYPES_H=''
HAVE_IO_H=''
HAVE_ISWCNTRL=''
HAVE_LONG_LONG_INT=''
HAVE_LSTAT=''
HAVE_MEMPCPY=''
HAVE_MKDTEMP=''
HAVE_READLINK=''
HAVE_SIGNED_SIG_ATOMIC_T=''
HAVE_SIGNED_WCHAR_T=''
HAVE_SIGNED_WINT_T=''
HAVE_SLEEP=''
HAVE_STDINT_H=''
HAVE_STPCPY=''
HAVE_STPNCPY=''
HAVE_STRCASECMP=''
HAVE_STRCASESTR=''
HAVE_STRCHRNUL=''
HAVE_STRNDUP=''
HAVE_STRPBRK=''
HAVE_STRSEP=''
HAVE_STRUCT_TIMEVAL=''
HAVE_SYSEXITS_H=''
HAVE_SYS_BITYPES_H=''
HAVE_SYS_INTTYPES_H=''
HAVE_SYS_TIME_H=''
HAVE_SYS_TYPES_H=''
HAVE_UNISTD_H=''
HAVE_UNSIGNED_LONG_LONG_INT=''
HAVE_VASPRINTF=''
HAVE_WCHAR_H=''
HAVE_WCTYPE_H=''
HAVE_WINT_T=''
HAVE__BOOL=''
INCLUDE_NEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
INTTYPES_H=''
LDFLAGS='-Wl,-O1'
LIBCPIO_LIBDEPS=''
LIBCPIO_LTLIBDEPS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LIB_CLOCK_GETTIME=''
LIB_SETSOCKOPT=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/app-arch/cpio-2.9-r2/work/cpio-2.9/build-aux/missing --run makeinfo'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NEXT_DIRENT_H=''
NEXT_FCNTL_H=''
NEXT_FLOAT_H=''
NEXT_INTTYPES_H=''
NEXT_STDINT_H=''
NEXT_STDIO_H=''
NEXT_STDLIB_H=''
NEXT_STRING_H=''
NEXT_SYSEXITS_H=''
NEXT_SYS_STAT_H=''
NEXT_SYS_TIME_H=''
NEXT_TIME_H=''
NEXT_UNISTD_H=''
NEXT_WCHAR_H=''
NEXT_WCTYPE_H=''
OBJEXT=''
PACKAGE='cpio'
PACKAGE_BUGREPORT='bug-cpio@gnu.org'
PACKAGE_NAME='GNU cpio'
PACKAGE_STRING='GNU cpio 2.9'
PACKAGE_TARNAME='cpio'
PACKAGE_VERSION='2.9'
PATH_SEPARATOR=':'
POSUB=''
PRIPTR_PREFIX=''
PRI_MACROS_BROKEN=''
PTRDIFF_T_SUFFIX=''
PU_RMT_PROG=''
RANLIB=''
REPLACE_CHOWN=''
REPLACE_FCHDIR=''
REPLACE_FFLUSH=''
REPLACE_FPRINTF=''
REPLACE_FSEEK=''
REPLACE_FSEEKO=''
REPLACE_FTELL=''
REPLACE_FTELLO=''
REPLACE_GETCWD=''
REPLACE_GETTIMEOFDAY=''
REPLACE_LCHOWN=''
REPLACE_LOCALTIME_R=''
REPLACE_LSEEK=''
REPLACE_MKSTEMP=''
REPLACE_NANOSLEEP=''
REPLACE_PRINTF=''
REPLACE_SNPRINTF=''
REPLACE_SPRINTF=''
REPLACE_STRPTIME=''
REPLACE_TIMEGM=''
REPLACE_VASPRINTF=''
REPLACE_VFPRINTF=''
REPLACE_VPRINTF=''
REPLACE_VSNPRINTF=''
REPLACE_VSPRINTF=''
SET_MAKE=''
SHELL='/bin/sh'
SIG_ATOMIC_T_SUFFIX=''
SIZE_T_SUFFIX=''
STDBOOL_H=''
STDINT_H=''
STRIP=''
SYSEXITS_H=''
SYS_STAT_H=''
SYS_TIME_H=''
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=''
TIME_H_DEFINES_STRUCT_TIMESPEC=''
USE_NLS=''
VERSION='2.9'
WCHAR_H=''
WCHAR_T_SUFFIX=''
WCTYPE_H=''
WINT_T_SUFFIX=''
XGETTEXT=''
XGETTEXT_015=''
YACC=''
YFLAGS=''
ac_ct_CC=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu=''
build_os=''
build_vendor=''
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gl_LIBOBJS=''
gl_LTLIBOBJS=''
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/var/tmp/portage/app-arch/cpio-2.9-r2/work/cpio-2.9/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

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

#define PACKAGE_NAME "GNU cpio"
#define PACKAGE_TARNAME "cpio"
#define PACKAGE_VERSION "2.9"
#define PACKAGE_STRING "GNU cpio 2.9"
#define PACKAGE_BUGREPORT "bug-cpio@gnu.org"
#define PACKAGE "cpio"
#define VERSION "2.9"
#define _GNU_SOURCE 1

configure: exit 1
Additionally I see segfaults in /var/log/messages after the command above:

Code: Select all

Mar  9 07:45:21 uhura [ 1178.299487] a.out[20470]: segfault at 1 ip 00000001 sp bff67914 error 14 in a.out[8048000+1000]
First I realised that the gcc-config showed a gcc version I've never installed:

Code: Select all

uhura ~ # gcc-config -l
 [1] i686-pc-linux-gnu-3.4.6
I fixed that and now it shows:

Code: Select all

uhura ~ # gcc-config -l
 [1] i686-pc-linux-gnu-4.1.2
But didn't help. More strange are the messages when emerging powertop:

Code: Select all

uhura ~ # emerge -av powertop 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-power/powertop-1.9  USE="unicode" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-power/powertop-1.9
 * powertop-1.9.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                              [ ok ]
>>> Unpacking source...                                                                                                   
>>> Unpacking powertop-1.9.tar.gz to /var/tmp/portage/sys-power/powertop-1.9/work                                         
>>> Source unpacked in /var/tmp/portage/sys-power/powertop-1.9/work                                                       
>>> Compiling source in /var/tmp/portage/sys-power/powertop-1.9/work/powertop-1.9 ...                                     
make -j3                                                                                                                  
i686-pc-linux-gnu-gcc -O2 -march=nocona -pipe   -c -o powertop.o powertop.c                                               
i686-pc-linux-gnu-gcc -O2 -march=nocona -pipe   -c -o config.o config.c                                                   
In file included from powertop.c:39:                                                                                      
powertop.h:101: error: expected declaration specifiers or '...' before 'time_t'                                           
powertop.c:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'start_usage'                               
powertop.c:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'last_usage'                                
powertop.c:59: error: expected specifier-qualifier-list before 'uint64_t'                                                 
powertop.c:78: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'last_bat_time'                             
powertop.c:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prev_bat_time'                             
powertop.c: In function 'push_line':                                                                                      
powertop.c:87: error: 'NULL' undeclared (first use in this function)                                                      
powertop.c:87: error: (Each undeclared identifier is reported only once                                                   
powertop.c:87: error: for each function it appears in.)                                                                   
powertop.c:94: warning: assignment makes pointer from integer without a cast                                              
powertop.c:95: warning: incompatible implicit declaration of built-in function 'strdup'                                   
powertop.c: In function 'clear_lines':                                                                                    
powertop.c:107: error: 'NULL' undeclared (first use in this function)                                                     
powertop.c: In function 'count_lines':                                                                                    
powertop.c:112: error: 'uint64_t' undeclared (first use in this function)                                                 
powertop.c:112: error: expected ';' before 'q'                                                                            
powertop.c:115: error: 'q' undeclared (first use in this function)                                                        
powertop.c: At top level:                                                                                                 
powertop.c:119: error: expected declaration specifiers or '...' before 'uint64_t'                                         
powertop.c: In function 'update_irq':                                                                                     
powertop.c:129: error: 'uint64_t' undeclared (first use in this function)                                                 
powertop.c:129: error: expected ';' before 'oldcount'                                                                     
powertop.c:130: error: 'oldcount' undeclared (first use in this function)                                                 
powertop.c:130: error: 'struct irqdata' has no member named 'count'                                                       
powertop.c:131: error: 'struct irqdata' has no member named 'count'                                                       
powertop.c:131: error: 'count' undeclared (first use in this function)                                                    
powertop.c:139: error: 'struct irqdata' has no member named 'count'                                                       
powertop.c:141: warning: incompatible implicit declaration of built-in function 'strcpy'                                  
powertop.c:141: error: 'struct irqdata' has no member named 'description'                                                 
powertop.c:143: error: 'struct irqdata' has no member named 'description'                                                 
powertop.c:143: warning: incompatible implicit declaration of built-in function 'gettext'                                 
powertop.c: In function 'do_proc_irq':                                                                                    
powertop.c:149: error: 'FILE' undeclared (first use in this function)                                                     
powertop.c:149: error: 'file' undeclared (first use in this function)                                                     
powertop.c:153: error: 'uint64_t' undeclared (first use in this function)                                                 
powertop.c:153: error: expected ';' before 'delta'                                                                        
powertop.c:164: error: expected ';' before 'count'                                                                        
powertop.c:166: warning: incompatible implicit declaration of built-in function 'memset'                                  
powertop.c:167: error: 'NULL' undeclared (first use in this function)                                                     
powertop.c:169: warning: incompatible implicit declaration of built-in function 'strchr'                                  
powertop.c:196: warning: incompatible implicit declaration of built-in function 'strlen'                                  
powertop.c:198: error: 'count' undeclared (first use in this function)                                                    
powertop.c:216: error: 'delta' undeclared (first use in this function)                                                    
powertop.c:216: error: too many arguments to function 'update_irq'                                                        
powertop.c:222: warning: incompatible implicit declaration of built-in function 'sprintf'                                 
powertop.c:222: warning: incompatible implicit declaration of built-in function 'gettext'                                 
powertop.c:227: warning: incompatible implicit declaration of built-in function 'sprintf'                                 
powertop.c:227: warning: incompatible implicit declaration of built-in function 'gettext'                                 
powertop.c: At top level:                                                                                                 
powertop.c:239: error: expected ')' before '*' token                                                                      
powertop.c: In function 'stop_timerstats':                                                                                
powertop.c:291: error: 'FILE' undeclared (first use in this function)                                                     
powertop.c:291: error: 'file' undeclared (first use in this function)                                                     
powertop.c:297: warning: incompatible implicit declaration of built-in function 'fprintf'                                 
powertop.c: In function 'start_timerstats':                                                                               
powertop.c:302: error: 'FILE' undeclared (first use in this function)                                                     
powertop.c:302: error: 'file' undeclared (first use in this function)                                                     
powertop.c:308: warning: incompatible implicit declaration of built-in function 'fprintf'                                 
powertop.c: In function 'print_battery':                                                                                  
powertop.c:325: error: 'DIR' undeclared (first use in this function)                                                      
powertop.c:325: error: 'dir' undeclared (first use in this function)                                                      
powertop.c:327: error: 'FILE' undeclared (first use in this function)                                                     
powertop.c:327: error: 'file' undeclared (first use in this function)                                                     
powertop.c:337: warning: assignment makes pointer from integer without a cast                                             
powertop.c:346: warning: incompatible implicit declaration of built-in function 'strlen'                                  
powertop.c:346: error: dereferencing pointer to incomplete type                                                           
powertop.c:349: warning: incompatible implicit declaration of built-in function 'sprintf'                                 
powertop.c:349: error: dereferencing pointer to incomplete type                                                           
powertop.c:353: warning: incompatible implicit declaration of built-in function 'memset'                                  
powertop.c:354: error: 'NULL' undeclared (first use in this function)                                                     
powertop.c:356: warning: incompatible implicit declaration of built-in function 'strstr'                                  
powertop.c:362: warning: incompatible implicit declaration of built-in function 'strchr'                                  
powertop.c:394: error: 'last_bat_time' undeclared (first use in this function)                                            
powertop.c:396: error: 'prev_bat_time' undeclared (first use in this function)                                            
powertop.c:406: error: too many arguments to function 'show_acpi_power_line'                                              
powertop.c: In function 'usage':                                                                                          
powertop.c:413: warning: incompatible implicit declaration of built-in function 'printf'                                  
powertop.c:413: warning: incompatible implicit declaration of built-in function 'gettext'                                 
powertop.c:417: warning: incompatible implicit declaration of built-in function 'exit'                                    
powertop.c: In function 'main':                                                                                           
powertop.c:424: error: 'FILE' undeclared (first use in this function)                                                     
powertop.c:424: error: 'file' undeclared (first use in this function)                                                     
powertop.c:424: error: 'NULL' undeclared (first use in this function)                                                     
powertop.c:425: error: 'uint64_t' undeclared (first use in this function)                                                 
powertop.c:425: error: expected ';' before 'cur_usage'                                                                    
powertop.c:428: error: 'LC_ALL' undeclared (first use in this function)                                                   
powertop.c:433: error: array type has incomplete element type                                                             
powertop.c:449: error: 'optarg' undeclared (first use in this function)                                                   
powertop.c:463: error: 'start_usage' undeclared (first use in this function)                                              
powertop.c:463: error: 'start_duration' undeclared (first use in this function)                                           
powertop.c:466: warning: incompatible implicit declaration of built-in function 'memcpy'                                  
powertop.c:466: error: 'last_usage' undeclared (first use in this function)                                               
powertop.c:467: error: 'last_duration' undeclared (first use in this function)                                            
powertop.c:474: warning: incompatible implicit declaration of built-in function 'memset'                                  
powertop.c:474: error: 'cur_usage' undeclared (first use in this function)                                                
powertop.c:475: error: 'cur_duration' undeclared (first use in this function)                                             
powertop.c:476: warning: incompatible implicit declaration of built-in function 'printf'                                  
powertop.c:478: warning: incompatible implicit declaration of built-in function 'gettext'                                 
powertop.c:484: error: 'int64_t' undeclared (first use in this function)                                                  
powertop.c:484: error: expected ';' before 'totalticks'                                                                   
powertop.c:485: error: expected ';' before 'totalevents'                                                                  
powertop.c:486: error: 'fd_set' undeclared (first use in this function)                                                   
powertop.c:486: error: expected ';' before 'rfds'                                                                         
powertop.c:487: error: storage size of 'tv' isn't known                                                                   
powertop.c:495: error: 'rfds' undeclared (first use in this function)                                                     
powertop.c:513: error: 'totalticks' undeclared (first use in this function)                                               
powertop.c:514: error: 'totalevents' undeclared (first use in this function)                                              
powertop.c:533: warning: incompatible implicit declaration of built-in function 'sprintf'                                 
powertop.c:536: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)                                     
powertop.c:539: warning: incompatible implicit declaration of built-in function 'sprintf'                                 
powertop.c:578: warning: incompatible implicit declaration of built-in function 'strstr'                                  
powertop.c:581: warning: incompatible implicit declaration of built-in function 'strchr'                                  
powertop.c:627: warning: incompatible implicit declaration of built-in function 'sprintf'                                 
powertop.c:633: warning: incompatible implicit declaration of built-in function 'strstr'                                  
powertop.c:673: error: 'stdin' undeclared (first use in this function)                                                    
powertop.c:675: warning: incompatible implicit declaration of built-in function 'exit'                                    
powertop.c:675: error: 'EXIT_SUCCESS' undeclared (first use in this function)                                             
powertop.c:701: error: 'F_OK' undeclared (first use in this function)                                                     
In file included from config.c:33:                                                                                        
powertop.h:101: error: expected declaration specifiers or '...' before 'time_t'                                           
config.c: In function 'read_kernel_config':                                                                               
config.c:41: error: 'FILE' undeclared (first use in this function)                                                        
config.c:41: error: (Each undeclared identifier is reported only once                                                     
config.c:41: error: for each function it appears in.)                                                                     
config.c:41: error: 'file' undeclared (first use in this function)                                                        
config.c:46: error: 'R_OK' undeclared (first use in this function)                                                        
config.c:50: error: 'NULL' undeclared (first use in this function)                                                        
config.c:52: warning: incompatible implicit declaration of built-in function 'strcpy'                                     
config.c:65: warning: incompatible implicit declaration of built-in function 'strchr'                                     
config.c:68: warning: incompatible implicit declaration of built-in function 'sprintf'                                    
config.c:80: warning: incompatible implicit declaration of built-in function 'strcpy'                                     
config.c: In function 'suggest_kernel_config':                                                                            
config.c:98: warning: incompatible implicit declaration of built-in function 'sprintf'                                    
config.c:102: warning: incompatible implicit declaration of built-in function 'strstr'                                    
config.c:110: error: 'NULL' undeclared (first use in this function)                                                       
config.c:111: error: 'stdout' undeclared (first use in this function)                                                     
powertop.c:775: warning: incompatible implicit declaration of built-in function 'exit'                                    
powertop.c:782: error: 'stdout' undeclared (first use in this function)                                                   
i686-pc-linux-gnu-gcc -O2 -march=nocona -pipe   -c -o process.o process.c                                                 
make: *** [powertop.o] Error 1                                                                                            
make: *** Waiting for unfinished jobs....                                                                                 
make: *** [config.o] Error 1                                                                                              
In file included from process.c:35:                                                                                       
powertop.h:101: error: expected declaration specifiers or '...' before 'time_t'                                           
process.c: In function 'fancy_kill':                                                                                      
process.c:41: error: 'FILE' undeclared (first use in this function)                                                       
process.c:41: error: (Each undeclared identifier is reported only once                                                    
process.c:41: error: for each function it appears in.)                                                                    
process.c:41: error: 'file' undeclared (first use in this function)                                                       
process.c:51: warning: incompatible implicit declaration of built-in function 'memset'                                    
process.c:52: error: 'NULL' undeclared (first use in this function)                                                       
process.c:54: warning: incompatible implicit declaration of built-in function 'strstr'                                    
process.c:62: error: 'SIGTERM' undeclared (first use in this function)                                                    
process.c: In function 'do_kill':                                                                                         
process.c:72: warning: incompatible implicit declaration of built-in function 'sprintf'                                   
process.c: In function 'suggest_process_death':                                                                           
process.c:82: warning: incompatible implicit declaration of built-in function 'strstr'                                    
process.c:84: warning: incompatible implicit declaration of built-in function 'sprintf'                                   
process.c:84: warning: incompatible implicit declaration of built-in function 'gettext'                                   
process.c:85: warning: incompatible implicit declaration of built-in function 'strcpy'                                    
process.c:91: error: 'stdout' undeclared (first use in this function)                                                     
make: *** [process.o] Error 1                                                                                             
 *                                                                                                                        
 * ERROR: sys-power/powertop-1.9 failed.                                                                                  
 * Call stack:                                                                                                            
 *               ebuild.sh, line   49:  Called src_compile                                                                
 *             environment, line 2097:  Called die                                                                        
 * The specific snippet of code:                                                                                          
 *       emake || die                                                                                                     
 *  The die message:                                                                                                      
 *   (no error message)                                                                                                   
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-power/powertop-1.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-power/powertop-1.9/temp/environment'.
 *

Here is my emerge --info output:

Code: Select all

uhura ~ # emerge --info                                                                                       
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r2 i686)          
=================================================================                                             
System uname: Linux-2.6.28-gentoo-r2-i686-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.0            
Timestamp of tree: Mon, 09 Mar 2009 06:15:01 +0000                                                            
app-shells/bash:     3.2_p39                                                                                  
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                                                      
dev-lang/python:     2.4.4-r13, 2.5.2-r7                                                                      
dev-python/pycrypto: 2.0.1-r6                                                                                 
dev-util/cmake:      2.6.3                                                                                    
sys-apps/baselayout: 1.12.11.1                                                                                
sys-apps/sandbox:    1.4                                                                                      
sys-devel/autoconf:  2.13, 2.63                                                                               
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                
sys-devel/binutils:  2.18-r3                                                                                  
sys-devel/gcc-config: 1.4.0-r4                                                                                
sys-devel/libtool:   1.5.26                                                                                   
virtual/os-headers:  2.6.27-r2                                                                                
ACCEPT_KEYWORDS="x86"                                                                                         
CBUILD="i686-pc-linux-gnu"                                                                                    
CFLAGS="-O2 -march=nocona -pipe"                                                                              
CHOST="i686-pc-linux-gnu"                                                                                     
CONFIG_PROTECT="/etc /usr/share/config /var/bind"                                                             
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                                                                       
CXXFLAGS="-O2 -march=nocona -pipe"                                                                                         
DISTDIR="/usr/portage/distfiles"                                                                                           
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"             
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ " 
LDFLAGS="-Wl,-O1"                                                                                                          
LINGUAS="en de"                                                                                                            
MAKEOPTS="-j3"                                                                                                             
PKGDIR="/usr/portage/packages"                                                                                             
PORTAGE_CONFIGROOT="/"                                                                                                     
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa apache2 arts bash-completion berkdb bluetooth bzip2 cairo cdparanoia cdr clamav cli cracklib crypt cups curl dbus dri dv dvb dvd dvdr dvdread eds encode esd ethereal evo exif expat faad fam ffmpeg firefox flac fortran gcj gd gdbm gif glitz gnome gnutls gpm gstreamer gtk hal iconv ieee1394 imagemagick ipv6 isdnlog jpeg kde kerberos libg++ lirc lm_sensors mad matroska mbox midi mikmod mjpeg mono mp3 mpeg mudflap nas ncurses nls nptl nptlonly ogg opengl openmp oss pam pcmcia pcre pdf perl png posix postgres pppd python qt3 qt3support quicktime readline reflection ruby samba sasl scanner sdl session spell spl sse2 ssl streamzap svg sysfs tcpd theora tidy tiff truetype unicode usb v4l vcd vorbis wifi win32codecs wmf wxwindows x86 xine xinerama xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_ownerauthz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="i810 vesa vga v4l fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Well seems that I've to boot from a live CD and install "something". But what "something"? gcc seem's that it still runs but it looks like that it is missing something. Even if I boot from CD and chroot how can I get gcc make work again?

Thanks for any hints!
Last edited by cetbaalix on Mon Mar 09, 2009 1:52 pm, edited 1 time in total.
Top
FizzyWidget
Veteran
Veteran
User avatar
Posts: 1135
Joined: Fri Nov 21, 2008 9:52 am
Location: 127.0.0.1

  • Quote

Post by FizzyWidget » Mon Mar 09, 2009 9:05 am

CFLAGS="-O2 -march=nocona -pipe"

is your problem, gcc is expecting a 64bit cpu with that, you need to change the -march= , what cpu do you actually have ?
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Top
cetbaalix
n00b
n00b
Posts: 48
Joined: Thu Jul 19, 2007 8:08 pm
Contact:
Contact cetbaalix
Website

  • Quote

Post by cetbaalix » Mon Mar 09, 2009 9:47 am

Thanks for your reply. Actually I've a 64bit cpu.

Code: Select all

 Intel(R) Core(TM)2 Duo CPU     T7300  @ 2.00GHz
I've only installed the 32bit version of Gentoo. I've used the CFLAGS since over a year now and haven't changed it since the first installation. But I've tried

Code: Select all

CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
now. When I now try to emerge glibc the following message appears:

Code: Select all

...
checking for unistd.h... yes                                                                                               
checking for long double... yes                                                                                            
checking size of long double... configure: error: cannot compute sizeof (long double)                                      
See `config.log' for more details.                                                                                         
 *                                                                                                                         
 * ERROR: sys-libs/glibc-2.8_p20080602-r1 failed.                                                                          
 * Call stack:                                                                                                             
 *               ebuild.sh, line   49:  Called src_compile                                                                 
 *             environment, line 3472:  Called eblit-run 'src_compile'                                                     
 *             environment, line 1086:  Called eblit-glibc-src_compile                                                     
 *       src_compile.eblit, line  187:  Called toolchain-glibc_src_compile                                                 
 *       src_compile.eblit, line  120:  Called glibc_do_configure 'nptl'                                                   
 *       src_compile.eblit, line   97:  Called die                                                                         
 * The specific snippet of code:                                                                                           
 *      "${S}"/configure ${myconf} || die "failed to configure glibc"                                                      
 *  The die message:                                                                                                       
 *   failed to configure glibc                                                                                             
 *                                                                                                                         
 * If you need support, post the topmost build error, and the call stack if relevant.                                      
 * A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.8_p20080602-r1/temp/build.log'.                   
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.8_p20080602-r1/temp/environment'.          
 *
I'm pretty sure now that it has something to do with glibc. This bug here http://bugs.gentoo.org/139995 describes a similar problem but how do I get glibc 32bit binaries? I've read somewhere to look for /usr/lib/crt* files:

uhura ~ # ls -la /usr/lib/crt*
-rw-r--r-- 1 root root 0 Mar 9 10:23 /usr/lib/crt1.o
-rw-r--r-- 1 root root 0 Mar 9 10:23 /usr/lib/crti.o
-rw-r--r-- 1 root root 0 Mar 9 10:23 /usr/lib/crtn.o

They're all zero bytes. The poster states that the "_start" symbol is defined in crt1.o. But if it is zero bytes it is pretty clear that it isn't defined there anymore ;-) I've tried to copy the crt* files from a Gentoo 2008.0 Live CD but this uses glibc 2.6.1 whereas I'm using 2.8.0 (which emerge .. world tried to install yesterday until my laptop crashed...).
Top
FizzyWidget
Veteran
Veteran
User avatar
Posts: 1135
Joined: Fri Nov 21, 2008 9:52 am
Location: 127.0.0.1

  • Quote

Post by FizzyWidget » Mon Mar 09, 2009 9:52 am

i would suggest using

before:

CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-O2 -march=nocona -pipe"

after:

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

and removing the CBUILD line (or comment it out)


then try emerge -e system && emerge -e world
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Top
cetbaalix
n00b
n00b
Posts: 48
Joined: Thu Jul 19, 2007 8:08 pm
Contact:
Contact cetbaalix
Website

  • Quote

Post by cetbaalix » Mon Mar 09, 2009 10:14 am

Many thanks for you fast responses. But didn't work. My make.conf lookes like this now:

Code: Select all

CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j2"

GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

USE="acl cups gdbm gpm libg++ nptl nptlonly unicode aac apache2 acpi alsa arts bash-completion bluetooth bmp bzip2 cdparanoia clamav curl cairo cdr crypt dbus dv dvb dvd dvdr dvdread eds encode esd ethereal exif expat evo faad fam firefox ffmpegflac gcj gd glitz gnutls gif gnome gpm gstreamer gtk hal ieee1394 imagemagick jpeg kde kerberos lirc lm_sensors mad mikmodmatroska mbox mp3 mjpeg mono mpeg multilib nas ncurses ogg opengl oss pcmcia pdf png posix postgres python qt3 qt3support quicktime readline ruby samba sasl scanner sdl spell sse2 ssl streamzap svg tcpd theora tidy tiff tiff truetype usb v4l vcdvorbis wifi win32codecs wmf wxwindows xine xinerama unicode X xml xmms xvid xv zlib"

LINGUAS="en de"

VIDEO_CARDS="i810 vesa vga v4l fbdev"

INPUT_DEVICES="keyboard mouse evdev"
source /usr/portage/local/layman/make.conf
Then I tried emerge -e system as you suggested. The first error I saw was

Code: Select all

>>> Installing sys-apps/portage-2.1.6.7
 * Cleaning orphaned Python bytecode from /usr/lib/portage/pym ..
/sbin/ldconfig: File /usr/lib/libpthread.so is empty, not checked.
 * Byte compiling python modules for python-2.5 .. ...
Interestingly it looks like a lot of libs in /usr/lib are zero sized whereas in /lib the sizes seems to be ok. So I've created a softlink from /lib/libpthread-2.8.so to /usr/lib/libpthread.so and started emerge -e system again. emerging portage worked but the next package broke:

Code: Select all

>>> Emerging (2 of 251) dev-util/pkgconfig-0.23
 * pkg-config-0.23.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                           [ ok ]
 * checking ebuild checksums ;-) ...                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                              [ ok ]
>>> Unpacking source...                                                                                                   
>>> Unpacking pkg-config-0.23.tar.gz to /var/tmp/portage/dev-util/pkgconfig-0.23/work                                     
>>> Source unpacked in /var/tmp/portage/dev-util/pkgconfig-0.23/work                                                      
>>> Compiling source in /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23 ...                                 
 * econf: updating pkg-config-0.23/config.guess with /usr/share/gnuconfig/config.guess                                    
 * econf: updating pkg-config-0.23/glib-1.2.10/config.guess with /usr/share/gnuconfig/config.guess                        
 * econf: updating pkg-config-0.23/glib-1.2.10/config.sub with /usr/share/gnuconfig/config.sub                            
 * econf: updating pkg-config-0.23/config.sub with /usr/share/gnuconfig/config.sub                                        
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu                                                        
checking for a BSD-compatible install... /usr/bin/install -c                                                               
checking whether build environment is sane... yes                                                                          
checking for gawk... gawk                                                                                                  
checking whether make sets $(MAKE)... yes                                                                                  
checking whether to enable maintainer-specific portions of Makefiles... no                                                 
checking build system type... i686-pc-linux-gnu                                                                            
checking host system type... i686-pc-linux-gnu                                                                             
checking for style of include used by make... GNU                                                                          
checking for i686-pc-linux-gnu-gcc... i686-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 following file when seeking support:
!!! /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/config.log
 *                                                                          
 * ERROR: dev-util/pkgconfig-0.23 failed.                                   
 * Call stack:                                                              
 *               ebuild.sh, line   49:  Called src_compile                  
 *             environment, line 2396:  Called econf                        
 *               ebuild.sh, line  543:  Called die                          
 * The specific snippet of code:                                            
 *                      die "econf failed"                                  
 *  The die message:                                                        
 *   econf failed                                                           
 *                                                                          
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-util/pkgconfig-0.23/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/pkgconfig-0.23/temp/environment'.
config.log:

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 configure, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu

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

hostname = uhura
uname -m = i686
uname -r = 2.6.28-gentoo-r2
uname -s = Linux
uname -v = #1 SMP Tue Feb 17 21:13:36 CET 2009

/usr/bin/uname -p = Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
/bin/uname -X     = unknown

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

PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.1.2
PATH: /usr/qt/3/bin
PATH: /opt/vmware/server/console/bin


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

configure:1981: checking for a BSD-compatible install
configure:2037: result: /usr/bin/install -c
configure:2048: checking whether build environment is sane
configure:2091: result: yes
configure:2124: checking for gawk
configure:2140: found /bin/gawk
configure:2151: result: gawk
configure:2162: checking whether make sets $(MAKE)
configure:2183: result: yes
configure:2363: checking whether to enable maintainer-specific portions of Makefiles
configure:2372: result: no
configure:2469: checking build system type
configure:2487: result: i686-pc-linux-gnu
configure:2509: checking host system type
configure:2524: result: i686-pc-linux-gnu
configure:2558: checking for style of include used by make
configure:2586: result: GNU
configure:2619: checking for i686-pc-linux-gnu-gcc
configure:2635: found /usr/bin/i686-pc-linux-gnu-gcc
configure:2646: result: i686-pc-linux-gnu-gcc
configure:2924: checking for C compiler version
configure:2931: i686-pc-linux-gnu-gcc --version >&5
i686-pc-linux-gnu-gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.3)
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.

configure:2934: $? = 0
configure:2941: i686-pc-linux-gnu-gcc -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/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 --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-java-awt=gtk --with-arch=i686 --enable-languages=c,c++,java,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.3)
configure:2944: $? = 0
configure:2951: i686-pc-linux-gnu-gcc -V >&5
i686-pc-linux-gnu-gcc: '-V' option must have argument
configure:2954: $? = 1
configure:2977: checking for C compiler default output file name
configure:3004: i686-pc-linux-gnu-gcc -O2 -march=prescott -pipe -fomit-frame-pointer  -Wl,-O1 conftest.c  >&5
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: failed to set dynamic section sizes: No such file or directory
collect2: ld returned 1 exit status
configure:3007: $? = 1
configure:3045: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "pkg-config"
| #define VERSION "0.23"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3052: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=prescott -pipe -fomit-frame-pointer'
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='-O2 -march=prescott -pipe -fomit-frame-pointer'
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=set
ac_cv_env_LDFLAGS_value=-Wl,-O1
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=i686-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run aclocal-1.7'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run tar'
AR=''
AUTOCONF='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run automake-1.7'
AWK='gawk'
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-O2 -march=prescott -pipe -fomit-frame-pointer'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O2 -march=prescott -pipe -fomit-frame-pointer'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GLIB_CFLAGS=''
GLIB_LIBS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-Wl,-O1'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run makeinfo'
OBJEXT=''
PACKAGE='pkg-config'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_INSTALLED_GLIB_FALSE=''
USE_INSTALLED_GLIB_TRUE=''
VERSION='0.23'
WARN_CFLAGS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
pc_path=''
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='/etc'
target_alias=''

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "pkg-config"
#define VERSION "0.23"

configure: exit 77
Top
FizzyWidget
Veteran
Veteran
User avatar
Posts: 1135
Joined: Fri Nov 21, 2008 9:52 am
Location: 127.0.0.1

  • Quote

Post by FizzyWidget » Mon Mar 09, 2009 10:20 am

try env-update

and

source /etc/profile

also change MAKEOPTS="-j2" to MAKEOPTS="-j3" - no real major change just seems to help, im new to gentoo myself (just search all the posts i have made ;)) trying to give back.

what i tend to do is place the versions of gcc and bintools i want to use in /etc/portage/package.keywords and then

emerge --oneshot binutils gcc virtual/libc
emerge -e system
emerge -e world

Hopefully someone who knows wha they are talking about will come along and solve your problem :)
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Top
cetbaalix
n00b
n00b
Posts: 48
Joined: Thu Jul 19, 2007 8:08 pm
Contact:
Contact cetbaalix
Website

  • Quote

Post by cetbaalix » Mon Mar 09, 2009 10:38 am

Many thanks but didn't work. I'll now start the live CD, get the latest autobuild stage 3 tarball, untar it, create a chroot, do a emerge --sync and emerge -e system, emerge -e world. I think this is the only way to get my gcc/glibc back. If that doesn't work I'll start from scratch and install a new system...
Top
FizzyWidget
Veteran
Veteran
User avatar
Posts: 1135
Joined: Fri Nov 21, 2008 9:52 am
Location: 127.0.0.1

  • Quote

Post by FizzyWidget » Mon Mar 09, 2009 11:01 am

:( sucks that - i should now i have been doing it for last few days where i have been messing with things i shouldnt have :)
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Top
cetbaalix
n00b
n00b
Posts: 48
Joined: Thu Jul 19, 2007 8:08 pm
Contact:
Contact cetbaalix
Website

  • Quote

Post by cetbaalix » Mon Mar 09, 2009 1:52 pm

So... Seem's that I solved the problem. MAKE A COPY OF /etc! Booted from live cd, configured and created the chroot, downloaded and extracted latest stage3 and portage tarball and

Code: Select all

emerge glibc sandbox gcc binutils
. Now replace /etc/conf.d/hostname, /etc/conf.d/net, /etc/passwd, /etc/shadow, /etc/groups and all files you modified from your backup and reboot. Up and running again I did a revdep-rebuild. Eventually a

Code: Select all

emerge -e system
is needed. Maybe this instructions helps somebody somewhere sometimes ;-)
Top
FizzyWidget
Veteran
Veteran
User avatar
Posts: 1135
Joined: Fri Nov 21, 2008 9:52 am
Location: 127.0.0.1

  • Quote

Post by FizzyWidget » Mon Mar 09, 2009 1:55 pm

i have written it down ;)
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Top
Post Reply

10 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