Forums

Skip to content

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

x86_64 and checking for C compiler default output file name.

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
raven_sorrow
n00b
n00b
User avatar
Posts: 5
Joined: Sun Mar 20, 2005 12:56 am
Contact:
Contact raven_sorrow
Website

x86_64 and checking for C compiler default output file name.

  • Quote

Post by raven_sorrow » Sun Aug 13, 2006 3:52 pm

I've got a freshly installed dedi box of gentoo (Sounds like a box of cereal) and I fubar's the CHOST (I copied mine from a i686 box and failed to change the CHOST setting to x86_64 and now I am stuck unable to compile anything. I did some snooping and found these forum pages
  • http://forums.gentoo.org/viewtopic.php?t=294109
  • http://forums.gentoo.org/viewtopic.php?t=27486
  • http://forums.gentoo.org/viewtopic.php? ... xecutables
  • http://forums.gentoo.org/viewtopic-p-27 ... ml#2769680
Each one of these listed a similar problem to mine but none of the suggestions seemed to fix my problem. THey all talked about gcc and binutils versions and this is where I beleive I stumbeled onto my problem.

Code: Select all

Marvin ~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-3.4.4 *
 [2] x86_64-pc-linux-gnu-3.4.4-hardened
 [3] x86_64-pc-linux-gnu-3.4.4-hardenednopie
 [4] x86_64-pc-linux-gnu-3.4.4-hardenednopiessp
 [5] x86_64-pc-linux-gnu-3.4.4-hardenednossp
Marvin ~ # binutils-config -l
 [1] i686-pc-linux-gnu-2.16.1 *
Marvin ~ #
This is where I think my CHOST setting went wrong. I emerged the wrong ver of binutils thereby breaking gcc. And so I went off to troubleshoot binutils a little bit.

Code: Select all

Marvin ~ # binutils-config -c
 * /usr/bin/binutils-config: No binutils profile is active!
Marvin ~ # binutils-config -l
 [1] i686-pc-linux-gnu-2.16.1 *
Marvin ~ # binutils-config 1
 * Switching to i686-pc-linux-gnu-2.16.1 ...                                                                                              [ ok ]Marvin ~ # source /etc/profile
Marvin ~ # binutils-config -c
 * /usr/bin/binutils-config: No binutils profile is active!
Marvin ~ # binutils-config -u
 * /usr/bin/binutils-config: No profiles exist for ''
Marvin ~ # binutils-config --amd64
/usr/bin/binutils-config: line 46: /etc/env.d/binutils/ * /usr/bin/binutils-config: No binutils profile is active!: No such file or directory
 *  * /usr/bin/binutils-config: No binutils profile is active! is invalid (no $TARGET defined) :(
Marvin ~ #
As you can see I have the wrong version of binutils and I am unable to remerge binutils or anything else for that matter.

Code: Select all

Marvin ~ # emerge php
Calculating dependencies... done!
>>> Emerging (1 of 41) x11-proto/xproto-7.0.5 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking xproto-7.0.5.tar.bz2 ;-)
>>> Unpacking source...
>>> Unpacking xproto-7.0.5.tar.bz2 to /var/tmp/portage/xproto-7.0.5/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5 ...
 * econf: updating xproto-7.0.5/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating xproto-7.0.5/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --datadir=/usr/share --libdir=/usr/lib64 --build=x86_64-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 build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5/config.log

!!! ERROR: x11-proto/xproto-7.0.5 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called x-modular_src_compile
  x-modular.eclass, line 329:   Called x-modular_src_configure
  x-modular.eclass, line 316:   Called econf '--prefix=/usr' '--datadir=/usr/share'
  ebuild.sh, line 541:   Called die

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

Marvin ~ #
The error log is as follows

Code: Select all

Marvin ~ # cat /var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Xproto configure 7.0.5, which was
generated by GNU Autoconf 2.59.  Invocation command line was

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

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

hostname = Marvin
uname -m = x86_64
uname -r = 2.6.17-gentoo-r4
uname -s = Linux
uname -v = #1 Sat Aug 12 22:38:44 CDT 2006

/usr/bin/uname -p = AMD Sempron(tm) Processor 3100+
/bin/uname -X     = unknown

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

PATH: /usr/lib/ccache/bin
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/x86_64-pc-linux-gnu/gcc-bin/3.4.4
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4


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

configure:1329: checking for a BSD-compatible install
configure:1384: result: /bin/install -c
configure:1395: checking whether build environment is sane
configure:1438: result: yes
configure:1503: checking for gawk
configure:1519: found /bin/gawk
configure:1529: result: gawk
configure:1539: checking whether make sets $(MAKE)
configure:1559: result: yes
configure:1739: checking build system type
configure:1757: result: x86_64-pc-linux-gnu
configure:1765: checking host system type
configure:1779: result: x86_64-pc-linux-gnu
configure:1844: checking for style of include used by make
configure:1872: result: GNU
configure:1905: checking for x86_64-pc-linux-gnu-gcc
configure:1921: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:1931: result: x86_64-pc-linux-gnu-gcc
configure:2213: checking for C compiler version
configure:2216: x86_64-pc-linux-gnu-gcc --version </dev/null >&5
x86_64-pc-linux-gnu-gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2219: $? = 0
configure:2221: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs
Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
configure:2224: $? = 0
configure:2226: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
x86_64-pc-linux-gnu-gcc: `-V' option must have argument
configure:2229: $? = 1
configure:2252: checking for C compiler default output file name
configure:2255: x86_64-pc-linux-gnu-gcc -O1 -march=k8 -pipe   conftest.c  >&5
{standard input}: Assembler messages:
{standard input}:32: Error: cannot represent relocation type BFD_RELOC_64
configure:2258: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "Xproto"
| #define PACKAGE_TARNAME "xproto"
| #define PACKAGE_VERSION "7.0.5"
| #define PACKAGE_STRING "Xproto 7.0.5"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
| #define PACKAGE "xproto"
| #define VERSION "7.0.5"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2297: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_build_alias=x86_64-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O1 -march=k8 -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_host_alias=x86_64-pc-linux-gnu
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5/missing --run tar'
AUTOCONF='${SHELL} /var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5/missing --run automake-1.9'
AWK='gawk'
CC='x86_64-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-O1 -march=k8 -pipe'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5/missing --run makeinfo'
OBJEXT=''
PACKAGE='xproto'
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
PACKAGE_NAME='Xproto'
PACKAGE_STRING='Xproto 7.0.5'
PACKAGE_TARNAME='xproto'
PACKAGE_VERSION='7.0.5'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_FDS_BITS=''
VERSION='7.0.5'
ac_ct_CC=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/var/tmp/portage/xproto-7.0.5/work/xproto-7.0.5/install-sh'
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

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

#define PACKAGE "xproto"
#define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
#define PACKAGE_NAME "Xproto"
#define PACKAGE_STRING "Xproto 7.0.5"
#define PACKAGE_TARNAME "xproto"
#define PACKAGE_VERSION "7.0.5"
#define VERSION "7.0.5"

configure: exit 77
Marvin ~ #
So what I ask is this: is there a way to fix this problem w/o having to bring the system down and re-install it from scratch?

Lastly my /etc/make.conf

Code: Select all

Marvin ~ # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example

CFLAGS="-O1 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j8"
USE="mmx sse sse2 3dnow ssl curl apache2 php perl"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
Top
sfragis
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 95
Joined: Thu Mar 24, 2005 5:28 pm
Location: RE < IT < Europe
Contact:
Contact sfragis
Website

  • Quote

Post by sfragis » Sun Aug 13, 2006 4:25 pm

I don't want to give you sham hopes, but if I were you I would try to boot with a amd64 livecd (gentoo installation cd by example), chroot and re-emerge. I don't remember exactly how binutils get compiled during first installation but you could try to repeat the same process, same compilation order. I'm not sure this will work, probably after chrooting you'll still use the same broken binutils.
Regards
Fabio Strozzi
Top
raven_sorrow
n00b
n00b
User avatar
Posts: 5
Joined: Sun Mar 20, 2005 12:56 am
Contact:
Contact raven_sorrow
Website

  • Quote

Post by raven_sorrow » Sun Aug 13, 2006 4:28 pm

I just tried that while waiting for a reply and I got the same issue ... I did use the AMD64 LiveCD to install the system.
Top
sfragis
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 95
Joined: Thu Mar 24, 2005 5:28 pm
Location: RE < IT < Europe
Contact:
Contact sfragis
Website

  • Quote

Post by sfragis » Sun Aug 13, 2006 5:14 pm

This could be a very stupid idea :roll: : copy the binutils from the livecd!
Boot with the livecd, remove everything regarding the binutils (to list all files, chroot first and then run `equery files binutils`), and then copy binutils from the the livecd.
Regards
Fabio Strozzi
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Sun Aug 13, 2006 5:23 pm

reinstall will be faster than trying to fix this, and also create less headaches.
Top
raven_sorrow
n00b
n00b
User avatar
Posts: 5
Joined: Sun Mar 20, 2005 12:56 am
Contact:
Contact raven_sorrow
Website

  • Quote

Post by raven_sorrow » Sun Aug 13, 2006 7:47 pm

this may be a redundant question ... but could I (in theory) maybe use a a prebuilt binutils for the x86_64 to fix myself?
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Sun Aug 13, 2006 8:57 pm

raven_sorrow wrote:this may be a redundant question ... but could I (in theory) maybe use a a prebuilt binutils for the x86_64 to fix myself?
Maybe, maybe not. Guess there is no harm in trying given the current state of your system, but don't expect miracles.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

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

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic