Unable to update packages...
I'm using the emerge –update --deep world -av to update all packages in verbose mode (just so I can see what's being updated first), but it stops the entire updating process after the first build error (as you can see below, there are 5 packages on the list, but it stops after the build error on the first).
>>> emerge (1 of 5) app-arch/bzip2-1.0.2-r5 to /
>>> md5 src_uri ;-) bzip2-1.0.2.tar.gz
>>> Unpacking source...
>>> Unpacking bzip2-1.0.2.tar.gz to /var/tmp/portage/bzip2-1.0.2-r5/work
* Applying bzip2-1.0.2-NULL-ptr-check.patch ... [ ok ]
* Applying bzip2-1.0.2-makefile-CFLAGS.patch ... [ ok ]
* Applying bzip2-1.0.2-saneso.patch ... [ ok ]
* Applying bzip2-1.0.2-progress.patch ... [ ok ]
>>> Source unpacked.
i686-pc-linux-gnu-gcc -O2 -mcpu=i686 -pipe -fpic -fPIC -Wall -Winline -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -c blocksort.c
i686-pc-linux-gnu-gcc -O2 -mcpu=i686 -pipe -fpic -fPIC -Wall -Winline -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -c huffman.c
cc1: /usr/local/include: Not a directory
cc1: /usr/local/include: Not a directory
blocksort.c: In function `fallbackQSort3':
blocksort.c:83: warning: inlining failed in call to `fallbackSimpleSort'
blocksort.c:162: warning: called from here
make: *** [huffman.o] Error 1
make: *** Waiting for unfinished jobs....
blocksort.c: In function `mainSimpleSort':
blocksort.c:400: warning: inlining failed in call to `mainGtU'
blocksort.c:561: warning: called from here
blocksort.c:400: warning: inlining failed in call to `mainGtU'
blocksort.c:575: warning: called from here
blocksort.c:400: warning: inlining failed in call to `mainGtU'
blocksort.c:589: warning: called from here
make: *** [blocksort.o] Error 1
!!! ERROR: app-arch/bzip2-1.0.2-r5 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! Make failed libbz2
!!! If you need support, post the topmost build error, NOT this status message.
After trying the second on the list manually, I get this:
>>> emerge (1 of 1) app-crypt/mhash-0.9.2 to /
>>> md5 src_uri ;-) mhash-0.9.2.tar.gz
>>> Unpacking source...
>>> Unpacking mhash-0.9.2.tar.gz to /var/tmp/portage/mhash-0.9.2/work
* Applying uClibc/libtool patches ...
>>> Source unpacked.
* econf: updating mhash-0.9.2/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating mhash-0.9.2/config.guess with /usr/share/gnuconfig/config.guess
./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-static --enable-shared
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 build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
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 config.log to your bug report:
!!! /var/tmp/portage/mhash-0.9.2/work/mhash-0.9.2/config.log
!!! ERROR: app-crypt/mhash-0.9.2 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.
6 Replies
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=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=
/var/lib --enable-static --enable-shared
## --------- ##
## Platform. ##
## --------- ##
hostname = server1.betadome.net
uname -m = i686
uname -r = 2.4.29-linode39-1um
uname -s = Linux
uname -v = #1 Wed Jan 19 12:22:14 EST 2005
/usr/bin/uname -p = UML
/bin/uname -X = unknown
/bin/arch = i686
/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: /usr/local/bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.3.5
PATH: /usr/X11R6/bin
PATH: /opt/blackdown-jdk-1.4.2.01/bin
PATH: /opt/blackdown-jdk-1.4.2.01/jre/bin
PATH: /usr/qt/3/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1551: checking build system type
configure:1569: result: i686-pc-linux-gnu
configure:1577: checking host system type
configure:1591: result: i686-pc-linux-gnu
configure:1599: checking target system type
configure:1613: result: i686-pc-linux-gnu
configure:1644: checking for a BSD-compatible install
configure:1699: result: /bin/install -c
configure:1710: checking whether build environment is sane
configure:1753: result: yes
configure:1818: checking for gawk
configure:1834: found /bin/gawk
configure:1844: result: gawk
configure:1854: checking whether make sets $(MAKE)
configure:1874: result: yes
configure:1950: checking for i686-pc-linux-gnu-strip
configure:1979: result: no
configure:1988: checking for strip
configure:2004: found /usr/bin/strip
configure:2015: result: strip
configure:2048: checking whether to enable maintainer-specific portions of Makefiles
configure:2057: result: no
configure:2276: checking for i686-pc-linux-gnu-gcc
configure:2292: found /usr/bin/i686-pc-linux-gnu-gcc
configure:2302: result: i686-pc-linux-gnu-gcc
configure:2584: checking for C compiler version
configure:2587: i686-pc-linux-gnu-gcc --version &5
i686-pc-linux-gnu-gcc (GCC) 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
Copyright (C) 2003 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:2590: $? = 0
configure:2592: i686-pc-linux-gnu-gcc -v &5
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc
-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686
-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v
3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-che
cking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-libgcj --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
configure:2595: $? = 0
configure:2597: i686-pc-linux-gnu-gcc -V &5
i686-pc-linux-gnu-gcc: `-V' option must have argument
configure:2600: $? = 1
configure:2623: checking for C compiler default output file name
configure:2626: i686-pc-linux-gnu-gcc -O2 -mcpu=i686 -pipe conftest.c >&5
cc1: /usr/local/include: Not a directory
configure:2629: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mhash"
| #define VERSION "0.9.2"
| #define ENABLE_MD5 1
| #define ENABLE_SHA1 1
| #define ENABLE_MD4 1
| #define ENABLE_MD2 1
| #define ENABLE_TIGER 1
| #define ENABLE_HAVAL 1
| #define ENABLE_CRC32 1
| #define ENABLE_ADLER32 1
| #define ENABLE_RIPEMD 1
| #define ENABLE_GOST 1
| #define ENABLE_SHA256_SHA224 1
| #define ENABLE_SHA512_SHA384 1
| #define ENABLE_SNEFRU 1
| #define ENABLE_WHIRLPOOL 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2668: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -mcpu=i686 -pipe'
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 -mcpu=i686 -pipe'
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=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_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=i686-pc-linux-gnu-gcc
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /var/tmp/portage/mhash-0.9.2/work/mhash-0.9.2/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/mhash-0.9.2/work/mhash-0.9.2/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /var/tmp/portage/mhash-0.9.2/work/mhash-0.9.2/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/mhash-0.9.2/work/mhash-0.9.2/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/mhash-0.9.2/work/mhash-0.9.2/missing --run automake-1.9'
AWK='gawk'
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-O2 -mcpu=i686 -pipe'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O2 -mcpu=i686 -pipe'
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=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /var/tmp/portage/mhash-0.9.2/work/mhash-0.9.2/missing --run makeinfo'
MHASH_VERSION='0.9.2'
OBJDUMP=''
OBJEXT=''
PACKAGE='mhash'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='0.9.2'
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='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='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/var/tmp/portage/mhash-0.9.2/work/mhash-0.9.2/install-sh'
libdir='${exec_prefix}/lib'
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='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define ENABLE_ADLER32 1
#define ENABLE_CRC32 1
#define ENABLE_GOST 1
#define ENABLE_HAVAL 1
#define ENABLE_MD2 1
#define ENABLE_MD4 1
#define ENABLE_MD5 1
#define ENABLE_RIPEMD 1
#define ENABLE_SHA1 1
#define ENABLE_SHA256_SHA224 1
#define ENABLE_SHA512_SHA384 1
#define ENABLE_SNEFRU 1
#define ENABLE_TIGER 1
#define ENABLE_WHIRLPOOL 1
#define PACKAGE "mhash"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.9.2"
configure: exit 77
I just emerged bzip2-1.0.2-r5 OK on my system - I got the same inlining failure errors but it built OK.
What versions of gcc and glibc are you running?
glibc: 2.3.4.20040808-r1
The information in Gentoo portage should be updated, I synced it a minute or two before attempting the update. When attempting to update, it shows 5 packages available for updates, which are the following:
[ebuild U ] app-arch/bzip2-1.0.2-r5 [1.0.2-r4] -build -debug -static 0 kB
[ebuild U ] app-crypt/mhash-0.9.2 [0.9.1] 0 kB
[ebuild U ] net-mail/mailbase-0.00-r8 [0.00-r6] +pam 0 kB
[ebuild U ] app-editors/vim-core-6.3-r4 [6.3-r3] -acl -debug -livecd +ncurses +nls (-selinux) 0 kB
[ebuild U ] app-editors/vim-6.3-r4 [6.3-r2] -acl -cscope -debug +gpm -minimal +ncurses +nls +perl +python -ruby (-selinux) -vim-with-x 0 kB
cc1: /usr/local/include: Not a directory
That dir doesn't have to exist, but make sure there isn't a file called /usr/local/include. If there is, consider rm'ing it or mv'ing it out of the way.
I'm running Gentoo on my Linode, tho with a 2.6 kernel. But same stuff and revs – binutils, bzip2, gcc, etc.
What version of binutils are you running? I think a nasty bug slipped in at -r3 that caused some weirdness in building stuff. It's fine at -r1 and fixed in -r4.
I'm guessing you're at -r1 for binutils; if so, that's good.
Finally, I saw on a friend's Gentoo box yesterday where builds would fail because his system's battery was dead so on boot, the clock reverted to 2001. Result was, being off by 4 years threw stuff depending on timestamp checks to point of breaking. After the clock was corrected with NTP, builds worked ok.
So check 'date' to make sure the date and time is 'close enough' (within a few minutes of the actual time). I can't imagine this being an actual issue with Linodes, but doesn't hurt to double check.
@NeonNero:
gcc: 3.3.5-r1
glibc: 2.3.4.20040808-r1
Hmm. Same as me, so that's not the problem.
@tronic:
Noticed in your output:
cc1: /usr/local/include: Not a directory
That dir doesn't have to exist, but make sure there isn't a file called /usr/local/include. If there is, consider rm'ing it or mv'ing it out of the way.
Yep, you're right… "include" appears to be a text file in the /usr/local directory, the only text file in that exact path, by the way. Here's the first few lines of that file:
/* *************************************************************
RWhois Software
Copyright (c) 1994 Scott Williamson and Mark Kosters
Copyright (c) 1996-2000 Network Solutions, Inc.
See the file LICENSE for conditions of use and distribution.
**************************************************************** */
Looks like it had something to do with installing the rwhois client software I downloaded from rwhois.net the other day. It wasn't in Gentoo portage, so I had to download the source and compile it myself.
Moving it out of the way seemed to clear things up, though.
@tronic:
I'm running Gentoo on my Linode, tho with a 2.6 kernel. But same stuff and revs – binutils, bzip2, gcc, etc.
What version of binutils are you running? I think a nasty bug slipped in at -r3 that caused some weirdness in building stuff. It's fine at -r1 and fixed in -r4.
I'm guessing you're at -r1 for binutils; if so, that's good.
Looks like that wasn't the case.
* sys-devel/binutils
Latest version available: 2.15.92.0.2-r1
Latest version installed: 2.15.92.0.2-r1
@tronic:
Finally, I saw on a friend's Gentoo box yesterday where builds would fail because his system's battery was dead so on boot, the clock reverted to 2001. Result was, being off by 4 years threw stuff depending on timestamp checks to point of breaking. After the clock was corrected with NTP, builds worked ok.
So check 'date' to make sure the date and time is 'close enough' (within a few minutes of the actual time). I can't imagine this being an actual issue with Linodes, but doesn't hurt to double check.
The system date is more or less close to my own system clock at home, the latter being automatically synced with a time server every hour.
Conclusion:
I moved the file located at /usr/local/include out of the way, re-ran emerge with the same parameter, and now it's finally installing without the annoying halting error. Yay!
Thanks for all the help, guys! Looks like I have to stick around in the "beginner" end of the Linux pool for a little while longer…