[gentoo-user] GCC/Build Problems

July 16th, 2012 - 08:10 am ET by Christopher Lemire | Report spam
I was doing a system upgrade. Following the instructions from

http://www.gentoo.org/doc/en/handbo...amp;chap=1

emerge --sync
emerge --update --deep world

So after that, everything was updated except build dependencies and
packages that had a use flag change on them, so I believe building one
of the build dependencies failed causing all the problems I am having.
I did:

emerge --update --deep --with-bdeps=y --newuse world




So I would often get the message

configure: error: C compiler cannot create executables
See `config.log' for more details




So, what I did is get another gcc compiler as a bin package, and set
it as my default with gcc-config.

I then tried to rebuild libtool. Again, I got the same message (in the
bold part):

bullshark@beastlinux ~ % sudo emerge -av --oneshot libtool
Password:

* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


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

Calculating dependencies... done!
[ebuild R ] sys-devel/libtool-2.4-r1 USE="-test -vanilla*" 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-devel/libtool-2.4-r1






* libtool-2.4.tar.xz RMD160 SHA1 SHA256 size ;-) ... [ ok ]



Unpacking source...
Unpacking ./libtool-2.4.tar to /var/tmp/portage/sys-devel/libtool-2.4-r1/work
Source unpacked in /var/tmp/portage/sys-devel/libtool-2.4-r1/work
Preparing source in /var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4 ...






* Applying libtool-1.5.20-use-linux-version-in-fbsd.patch ... [ ok ]
* Running eautoreconf in
'/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4/libltdl'
...
* Running true --install --copy --force --automake ... [ ok ]
* Running aclocal -I m4 ... [ ok ]
* Running autoconf ... [ ok ]
* Running autoheader ... [ ok ]
* Running automake --add-missing --copy --foreign ... [ ok ]
* Running eautoreconf in
'/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4' ...
* Running true --install --copy --force --automake ... [ ok ]
* Running aclocal -I libltdl/m4 ... [ ok ]
* Running autoconf ... [ ok ]
* Running autoheader ... [ ok ]
* Running automake --add-missing --copy ... [ ok ]



Source prepared.
Configuring source in /var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4 ...






* econf: updating libtool-2.4/libltdl/config/config.sub with
/usr/share/gnuconfig/config.sub
* econf: updating libtool-2.4/libltdl/config/config.guess with
/usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=i686-pc-linux-gnu
adir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
## -- ##
## Configuring libtool 2.4 ##
## -- ##

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: autobuild project... GNU Libtool
configure: autobuild revision... 2.4 ()
configure: autobuild hostname... beastlinux
configure: autobuild mode... default
configure: autobuild timestamp... 20120715T164750Z
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
[b]checking whether the C compiler works... no
configure: error: in
`/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4':
configure: error: C compiler cannot create executables
See `config.log' for more details[/b]

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4/config.log
* ERROR: sys-devel/libtool-2.4-r1 failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 85: Called src_configure
* environment, line 2807: Called default
* phase-functions.sh, line 798: Called _eapi2_src_configure
* phase-helpers.sh, line 567: Called econf
* phase-helpers.sh, line 467: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of `emerge --info
'=sys-devel/libtool-2.4-r1'`,
* the complete build log and the output of `emerge -pqv
'=sys-devel/libtool-2.4-r1'`.
/usr/lib/portage/bin/isolated-functions.sh: line 214: wait: `econf
failed': not a pid or valid job spec
* The complete build log is located at
'/var/tmp/portage/sys-devel/libtool-2.4-r1/temp/build.log'.
* The ebuild environment file is located at
'/var/tmp/portage/sys-devel/libtool-2.4-r1/temp/environment'.
* Working directory:
'/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4'
* S: '/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4'




Failed to emerge sys-devel/libtool-2.4-r1, Log file:

'/var/tmp/portage/sys-devel/libtool-2.4-r1/temp/build.log'







* Messages for package sys-devel/libtool-2.4-r1:

* ERROR: sys-devel/libtool-2.4-r1 failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 85: Called src_configure
* environment, line 2807: Called default
* phase-functions.sh, line 798: Called _eapi2_src_configure
* phase-helpers.sh, line 567: Called econf
* phase-helpers.sh, line 467: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of `emerge --info
'=sys-devel/libtool-2.4-r1'`,
* the complete build log and the output of `emerge -pqv
'=sys-devel/libtool-2.4-r1'`.
* The complete build log is located at
'/var/tmp/portage/sys-devel/libtool-2.4-r1/temp/build.log'.
* The ebuild environment file is located at
'/var/tmp/portage/sys-devel/libtool-2.4-r1/temp/environment'.
* Working directory:
'/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4'
* S: '/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4





Here's the build.log:

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

It was created by GNU Libtool configure 2.4, which was
generated by GNU Autoconf 2.68. Invocation command line was

$ ./configure --prefix=/usr --build=i686-pc-linux-gnu

## ##
## Platform. ##
## ##

hostname = beastlinux
uname -m = i686
uname -r = 3.2.12-gentoo-laptop
uname -s = Linux
uname -v = #5 Mon Jul 9 22:45:24 CDT 2012

/usr/bin/uname -p = unknown
/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/lib/portage/bin/ebuild-helpers
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.5.3


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

configure:2703: checking for a BSD-compatible install
configure:2771: result: /usr/bin/install -c
configure:2782: checking whether build environment is sane
configure:2832: result: yes
configure:2973: checking for a thread-safe mkdir -p
configure:3012: result: /bin/mkdir -p
configure:3025: checking for gawk
configure:3041: found /usr/bin/gawk
configure:3052: result: gawk
configure:3063: checking whether make sets $(MAKE)
configure:3085: result: yes
configure:3179: checking build system type
configure:3193: result: i686-pc-linux-gnu
configure:3213: checking host system type
configure:3226: result: i686-pc-linux-gnu
configure:3253: autobuild project... GNU Libtool
configure:3259: autobuild revision... 2.4 ()
configure:3264: autobuild hostname... beastlinux
configure:3268: autobuild mode... default
configure:3276: autobuild timestamp... 20120715T164750Z
configure:3335: checking for i686-pc-linux-gnu-gcc
configure:3351: found /usr/bin/i686-pc-linux-gnu-gcc
configure:3362: result: i686-pc-linux-gnu-gcc
configure:3631: checking for C compiler version
configure:3640: i686-pc-linux-gnu-gcc --version >&5
i686-pc-linux-gnu-gcc (Gentoo 4.5.3-r2 p1.1, pie-0.4.7) 4.5.3
Copyright (C) 2010 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:3651: $? = 0
configure:3640: i686-pc-linux-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/i686-pc-linux-gnu/gcc-bin/4.5.3/i686-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/4.5.3/lto-wrapper
Target: i686-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/configure
Thread model: posix
gcc version 4.5.3 (Gentoo 4.5.3-r2 p1.1, pie-0.4.7)
configure:3651: $? = 0
configure:3640: i686-pc-linux-gnu-gcc -V >&5
i686-pc-linux-gnu-gcc: '-V' option must have argument
configure:3651: $? = 1
configure:3640: i686-pc-linux-gnu-gcc -qversion >&5
i686-pc-linux-gnu-gcc: unrecognized option '-qversion'
i686-pc-linux-gnu-gcc: no input files
configure:3651: $? = 1
configure:3671: checking whether the C compiler works
configure:3693: i686-pc-linux-gnu-gcc -O2 -march=pentium3 -pipe
-fomit-frame-pointer -msse -mmmx -Wl,-O1 -Wl,--as-needed conftest.c

&5


/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/as:
symbol lookup error:
/usr/lib/binutils/i686-pc-linux-gnu/2.21.1/libopcodes-2.21.1.so:
undefined symbol: buffer_read_memory
configure:3697: $? = 2
configure:3735: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Libtool"
| #define PACKAGE_TARNAME "libtool"
| #define PACKAGE_VERSION "2.4"
| #define PACKAGE_STRING "GNU Libtool 2.4"
| #define PACKAGE_BUGREPORT "bug-libtool@gnu.org"
| #define PACKAGE_URL "http://www.gnu.org/software/libtool/"
| #define PACKAGE "libtool"
| #define VERSION "2.4"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3740: error: in
`/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4':
configure:3742: 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_setac_cv_env_CCC_valueac_cv_env_CC_setac_cv_env_CC_valueac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=pentium3 -pipe -fomit-frame-pointer
-msse -mmmx'
ac_cv_env_CPPFLAGS_setac_cv_env_CPPFLAGS_valueac_cv_env_CPP_setac_cv_env_CPP_valueac_cv_env_CXXCPP_setac_cv_env_CXXCPP_valueac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -march=pentium3 -pipe
-fomit-frame-pointer -msse -mmmx'
ac_cv_env_CXX_setac_cv_env_CXX_valueac_cv_env_F77_setac_cv_env_F77_valueac_cv_env_FCFLAGS_set=set
ac_cv_env_FCFLAGS_value='-march=i686 -O2 -pipe'
ac_cv_env_FC_setac_cv_env_FC_valueac_cv_env_FFLAGS_set=set
ac_cv_env_FFLAGS_value='-march=i686 -O2 -pipe'
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed'
ac_cv_env_LIBS_setac_cv_env_LIBS_valueac_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_setac_cv_env_target_alias_valueac_cv_host=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
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/sys-devel/libtool-2.4-r1/work/libtool-2.4/libltdl/config/missing
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL}
/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4/libltdl/config/missing
AR=''
ARGZ_H=''
AS=''
AUTOCONF='${SHELL}
/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4/libltdl/config/missing
AUTOHEADER='${SHELL}
/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4/libltdl/config/missing
AUTOM4TE='autom4te'
AUTOMAKE='${SHELL}
/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4/libltdl/config/missing
AUTOTEST='$(AUTOM4TE) --language=autotest'
AWK='gawk'
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-O2 -march=pentium3 -pipe -fomit-frame-pointer -msse -mmmx'
CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/ChangeLog'
CONF_SUBDIRS='tests/cdemo tests/demo tests/depdemo tests/f77demo
tests/fcdemo tests/mdemo tests/mdemo2 tests/pdemo tests/tagdemo'
CONVENIENCE_LTDL_FALSE=''
CONVENIENCE_LTDL_TRUE=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O2 -march=pentium3 -pipe -fomit-frame-pointer -msse -mmmx'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DIST_MAKEFILE_LIST='tests/cdemo/Makefile tests/demo/Makefile
tests/depdemo/Makefile tests/f77demo/Makefile tests/fcdemo/Makefile
tests/mdemo/Makefile tests/mdemo2/Makefile tests/pdemo/Makefile
tests/tagdemo/Makefile '
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FC=''
FCFLAGS='-march=i686 -O2 -pipe'
FFLAGS='-march=i686 -O2 -pipe'
FGREP=''
GCJ=''
GCJFLAGS=''
GREP=''
HAVE_CXX_FALSE=''
HAVE_CXX_TRUE=''
HAVE_F77_FALSE=''
HAVE_F77_TRUE=''
HAVE_FC_FALSE=''
HAVE_FC_TRUE=''
HAVE_GCJ_FALSE=''
HAVE_GCJ_TRUE=''
HAVE_RC_FALSE=''
HAVE_RC_TRUE=''
HELP2MAN=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_LTDL_FALSE=''
INSTALL_LTDL_TRUE=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LASTRELEASE=''
LD=''
LDFLAGS='-Wl,-O1 -Wl,--as-needed'
LIBADD_DL=''
LIBADD_DLD_LINK=''
LIBADD_DLOPEN=''
LIBADD_SHL_LOAD=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTDLOPEN=''
LTLIBOBJS=''
LT_CONFIG_H=''
LT_DLLOADERS=''
LT_DLPREOPEN=''
M4SH='$(AUTOM4TE) --language=m4sh'
MAKEINFO='${SHELL}
/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4/libltdl/config/missing
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
ORDER=''
OTOOL64=''
OTOOL=''
PACKAGE='libtool'
PACKAGE_BUGREPORT='bug-libtool@gnu.org'
PACKAGE_NAME='GNU Libtool'
PACKAGE_STRING='GNU Libtool 2.4'
PACKAGE_TARNAME='libtool'
PACKAGE_URL='http://www.gnu.org/software/libtool/'
PACKAGE_VERSION='2.4'
PATH_SEPARATOR=':'
RANLIB=''
RC=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
TIMESTAMP=''
VERSION='2.4'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
ac_ct_F77=''
ac_ct_FC=''
aclocaldir='${datadir}/aclocal'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
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='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
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='${SHELL}
/var/tmp/portage/sys-devel/libtool-2.4-r1/work/libtool-2.4/libltdl/config/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
package_revision='1.3293'
pdfdir='${docdir}'
pkgdatadir='${datadir}/libtool'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sys_symbol_underscore=''
sysconfdir='/etc'
target_alias=''
to_host_file_cmd=''
to_tool_file_cmd=''

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

/* confdefs.h */
#define PACKAGE_NAME "GNU Libtool"
#define PACKAGE_TARNAME "libtool"
#define PACKAGE_VERSION "2.4"
#define PACKAGE_STRING "GNU Libtool 2.4"
#define PACKAGE_BUGREPORT "bug-libtool@gnu.org"
#define PACKAGE_URL "http://www.gnu.org/software/libtool/"
#define PACKAGE "libtool"
#define VERSION "2.4"

configure: exit 77





And emerge --info

Portage 2.1.10.65 (hardened/linux/x86, gcc-4.5.3, glibc-2.14.1-r3,
3.2.12-gentoo-laptop i686)
=System uname: Linux-3.2.12-gentoo-laptop-i686-with-gentoo-2.1
Timestamp of tree: Sun, 15 Jul 2012 09:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash: 4.2_p20
dev-lang/python: 2.7.3-r2, 3.2.3
dev-util/cmake: 2.8.7-r5
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r2, 4.6.2
sys-devel/gcc-config: 1.6
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -msse -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified
distlocks ebuild-locks fixlafiles news parallel-fetch
parse-eapi-ebuild-head protect-owned sandbox sfperms strict
unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/
http://mirror.datapipe.net/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/g...tage"
USE="256-color X acl alsa bash-completion berkdb branding bzip2 cdr
cli cpudetection cracklib crypt cxx dbus dga dri dvd exif fbcon flac
gdbm gif gnutls gpm gstreamer gtk gzip hardened iconv ipv6 jabber jit
joystick jpeg keyboard lcms libnotify lzma matroska mmx modules mouse
mp3 mp4 mpeg mudflap multiuser ncurses nls nptl nsplugin offensive ogg
opengl openmp pam pax_kernel pcre pic png posix pppd pulseaudio qt4
readline sasl session socks5 sox spell sse ssl symlink syslog tcpd
tiff truetype udev unicode unicode3 urandom usb v4l vim-syntax vorbis
wifi win32codecs x264 x86 xattr xcomposite xft xmpp xorg xscreensaver
xvid zlib zsh-completion" 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_owner authz_user
autoindex cache cgi cgid 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"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita
karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq
load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech
aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301
nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf
superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev
synaptics keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="en en_GB en_US" PHP_TARGETS="php5-3"
PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19"
USERLAND="GNU" VIDEO_CARDS="r128" XTABLES_ADDONS="quota2 psd pknock
lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON





Making a simple Hello World and attempting to compile:

bullshark@beastlinux ~ % cat hello.c
#include <stdio.h>

main() {
printf("Hello Working GCC.");
}
bullshark@beastlinux ~ % gcc hello.c -o hello
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/as:
symbol lookup error:
/usr/lib/binutils/i686-pc-linux-gnu/2.21.1/libopcodes-2.21.1.so:
undefined symbol: buffer_read_memory
bullshark@beastlinux ~ %


Christopher Lemire <christopher.lemire@gmail.com>
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866 E9DE
C69F 18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber: recursivequicksort@jabber.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Similar topics

Replies

#1 Todd Goodman
July 16th, 2012 - 09:20 am ET | Report spam
* Christopher Lemire [120716 08:08]:
[..]
Making a simple Hello World and attempting to compile:

~ % cat hello.c
#include <stdio.h>

main() {
printf("Hello Working GCC.");
}
~ % gcc hello.c -o hello
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/as:
symbol lookup error:
/usr/lib/binutils/i686-pc-linux-gnu/2.21.1/libopcodes-2.21.1.so:
undefined symbol: buffer_read_memory
~ %



You might need to run gcc-config.

Try gcc-config -l and make sure one of the selections has an * next to
it.

If not, run gcc-config <cc profile>
where <cc profile> is the name you see in the gcc-config -l output (like
i686-pc-linux-gnu-4.5.3, for example)

Todd
Replies Reply to this message
#2 Christopher Lemire
July 16th, 2012 - 04:30 pm ET | Report spam
Every time I take the time to think through and write something like
this up, I solve it pretty quickly afterwards. I'll tell you how I
solved it. GCC wasn't the problem, and gcc-config -l wouldn't of done
any good because I only had one gcc. So I created a simple hello.c
that fprint("Hello Working GCC"); Then I tried to compile it. I
noticed in the error message (btw, it did not compile) about a library
and binutils. So I already had my emerge setup that if I wanted to
install a bin-package, I could, so I grabbed a bin package of
binutils. hello.c compiled, but I didn't want to get excited too soon.
I had to see if emerge would work without error, and it did. I
compiled a newer kernel and now I need to recompile libtools because
you're supposed to do that everytime you upgrade your gcc. I will
recompile binutils also so it will have optimizations for my hardware.

Christopher Lemire
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866 E9DE
C69F 18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber:


On Mon, Jul 16, 2012 at 8:15 AM, Todd Goodman wrote:
* Christopher Lemire [120716 08:08]:
[..]
Making a simple Hello World and attempting to compile:

~ % cat hello.c
#include <stdio.h>

main() {
printf("Hello Working GCC.");
}
~ % gcc hello.c -o hello
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/as:
symbol lookup error:
/usr/lib/binutils/i686-pc-linux-gnu/2.21.1/libopcodes-2.21.1.so:
undefined symbol: buffer_read_memory
~ %



You might need to run gcc-config.

Try gcc-config -l and make sure one of the selections has an * next to
it.

If not, run gcc-config <cc profile>
where <cc profile> is the name you see in the gcc-config -l output (like
i686-pc-linux-gnu-4.5.3, for example)

Todd

email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search