LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   glibc in capter 6 -- error: cannot compute suffix of object files (https://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-in-capter-6-error-cannot-compute-suffix-of-object-files-339554/)

Yoyo302 07-03-2005 05:51 AM

glibc in capter 6 -- error: cannot compute suffix of object files
 
hi, i am trying to build glibc in 6 capter of lfs handbook, while i'm starting "configure" i get sth like that:
root:/sources/glibc-3# ../glibc-2.3.5/configure
checking build system type... i686-pc-linux-gnu
(...)
checking for gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
root:/sources/glibc-3#

i tried to rebuild "gcc pass2" but after it problem is same,
please help me.

freegianghu 07-03-2005 07:43 AM

Re: glibc in capter 6 -- error: cannot compute suffix of object files
 
Quote:

Originally posted by Yoyo302
hi, i am trying to build glibc in 6 capter of lfs handbook, while i'm starting "configure" i get sth like that:
root:/sources/glibc-3# ../glibc-2.3.5/configure
checking build system type... i686-pc-linux-gnu
(...)
checking for gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
root:/sources/glibc-3#

i tried to rebuild "gcc pass2" but after it problem is same,
please help me.


Yoyo302 07-03-2005 08:01 AM

i looked into this file and i think that's important:
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2689: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

buy i still don't know where problem is

freegianghu 07-03-2005 10:51 AM

Quote:

Originally posted by Yoyo302
i looked into this file and i think that's important:
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2689: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

buy i still don't know where problem is

Try post output of:
Code:

$ gcc -v

Yoyo302 07-03-2005 11:58 AM

amm...

root:/sources/glibc-3# gcc -v
bash: /bin/gcc: No such file or directory
root:/sources/glibc-3#

but:

root:/tools/bin# ./gcc -v
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
Configured with: ../gcc-3.4.4/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.4
root:/tools/bin#

freegianghu 07-03-2005 12:06 PM

Code:

# export PATH=$PATH:/tools/bin

Yoyo302 07-03-2005 12:57 PM

ok, thx for advices, but i've found solution.
just:
ln -s /tools/bin/gcc /bin/gcc and i think i'll work, i tried "configure" again and the problem disapierd.
once again thanks

Super7 03-13-2006 02:55 PM

Help please
 
I got the same issues as yoyo the same error message. I am running LFS 6.1.1. but this is my question. Should I be running ./config and chroot or as root on the lfs LiveCD? I can get it to work running from LFS Live CD root but not from chroot.

I changed the command from book to suit the situation.

glibc-2.3.4/configure --prefix=/mnt/lfs/usr \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --libexecdir=/mnt/lfs/usr/lib/glibc

I have a funny feeling it should all be done under chroot. let me know please!

Super7 03-13-2006 04:30 PM

I posted the last message my other box. I just brought up eth0 on my LFS livecd box. I know error messages help so here it goes.

$ glibc-2.3.4/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc

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

hostname = lfslivecd
uname -m = i686
uname -r = 2.6.11.12
uname -s = Linux
uname -v = #1 SMP Sat Dec 17 04:12:33 GMT 2005

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

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

PATH: /tools/bin


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

configure:1706: checking build system type
configure:1724: result: i686-pc-linux-gnu
configure:1732: checking host system type
configure:1746: result: i686-pc-linux-gnu
configure:1878: result: running configure fragment for add-on linuxthreads
configure:9: result: linuxthreads disabled because nptl add-on is also in use
configure:1878: result: running configure fragment for add-on nptl
configure:1998: checking sysdep dirs
configure:2214: result: sysdeps/generic/elf sysdeps/generic
configure:2233: checking for a BSD-compatible install
configure:2288: result: /tools/bin/install -c
configure:2303: checking whether ln -s works
configure:2307: result: yes
configure:2361: checking for gcc
configure:2377: found /tools/bin/gcc
configure:2387: result: gcc
configure:2631: checking for C compiler version
configure:2634: gcc --version </dev/null >&5
glibc-2.3.4/configure: line 2635: /tools/bin/gcc: No such file or directory
configure:2637: $? = 127
configure:2639: gcc -v </dev/null >&5
glibc-2.3.4/configure: line 2640: /tools/bin/gcc: No such file or directory
configure:2642: $? = 127
configure:2644: gcc -V </dev/null >&5
glibc-2.3.4/configure: line 2645: /tools/bin/gcc: No such file or directory
configure:2647: $? = 127
configure:2651: checking for suffix of object files
configure:2672: gcc -c conftest.c >&5
glibc-2.3.4/configure: line 2673: /tools/bin/gcc: No such file or directory
configure:2675: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2689: error: cannot compute suffix of object files: cannot compile
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=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_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=
ac_cv_env_host_alias_value=
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='/tools/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc

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

AR=''
AS=''
ASFLAGS_config=''
AUTOCONF=''
AWK=''
BASH='/bin/sh'
BISON=''
BUILD_CC=''
CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_INFO=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KSH=''
LD=''
LDFLAGS=''
LIBGD=''
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKE=''
MAKEINFO=''
MIG=''
MSGFMT=''
OBJDUMP=''
OBJEXT=''
PACKAGE_BUGREPORT='glibc'
PACKAGE_NAME='GNU C Library'
PACKAGE_STRING='GNU C Library (see version.h)'
PACKAGE_TARNAME='c-library'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
PERL=''
PWD_P=''
RANLIB=''
RELEASE=''
SED=''
SHELL='/bin/sh'
SYSINCLUDES=''
VERSION=''
VERSIONING=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_RANLIB=''
add_ons='nptl'
all_warnings=''
base_machine='i386'
bindir='${exec_prefix}/bin'
bindnow='no'
bounded='no'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
cross_compiling='no'
datadir='${prefix}/share'
elf='yes'
enable_check_abi='no'
exceptions=''
exec_prefix='NONE'
fno_unit_at_a_time=''
force_install='yes'
gnu_as='yes'
gnu_ld='yes'
have_selinux=''
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
ldd_rewrite_script=''
libc_cv_Bgroup=''
libc_cv_as_needed=''
libc_cv_asm_protected_directive=''
libc_cv_cc_with_libunwind=''
libc_cv_cpp_asm_debuginfo=''
libc_cv_forced_unwind=''
libc_cv_fpie=''
libc_cv_gcc_static_libgcc=''
libc_cv_gcc_unwind_find_fde=''
libc_cv_have_bash2=''
libc_cv_have_initfini=''
libc_cv_have_ksh=''
libc_cv_initfinit_array=''
libc_cv_libgcc_s_suffix=''
libc_cv_localedir=''
libc_cv_rootsbindir=''
libc_cv_slibdir=''
libc_cv_sysconfdir=''
libc_cv_z_combreloc=''
libc_cv_z_execstack=''
libc_cv_z_initfirst=''
libc_cv_z_nodelete=''
libc_cv_z_nodlopen=''
libc_cv_z_relro=''
libdir='${exec_prefix}/lib'
libexecdir='/usr/lib/glibc'
linux_doors=''
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='${prefix}/man'
no_whole_archive=''
nopic_initfini=''
old_glibc_headers=''
oldest_abi='default'
oldincludedir='/usr/include'
omitfp='no'
pic_default=''
prefix='/usr'
profile='no'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
shared='default'
sharedstatedir='${prefix}/com'
sizeof_long_double=''
static='yes'
static_nss='no'
subdirs=' '
sysconfdir='${prefix}/etc'
sysnames=' sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread nptl/sysdeps/unix/sysv nptl/sysdeps/unix nptl/sysdeps/i386/i686 nptl/sysdeps/i386 sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic'
target_alias=''
uname_release=''
uname_sysname=''
uname_version=''
use_ldconfig=''
with_cvs='yes'
with_fp='yes'
xcoff='no'

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

#define PACKAGE_BUGREPORT "glibc"
#define PACKAGE_NAME "GNU C Library"
#define PACKAGE_STRING "GNU C Library (see version.h)"
#define PACKAGE_TARNAME "c-library"
#define PACKAGE_VERSION "(see version.h)"
#define USE_REGPARMS 1

configure: exit 1

from Live CD root:

lfslivecd:root | Mon Mar 13 17:31:36 2006 | /mnt/lfs/tools/bin
# ./gcc -v
Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c : (reconfigured) ./configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.3


from chroot:

root:/tools/bin# gcc -v
bash: /tools/bin/gcc: No such file or directory


something has gone haywire on me

Yoyo302 03-14-2006 03:56 PM

Quote:

I have a funny feeling it should all be done under chroot. let me know please!
yes, if we're speaking about chapter 6...

you know, as i wrote before, i made a link, and then it was working, but not forever, i don't remember perfectly, but i think that i had some problems later when i tried to build sth like rpm. that while compiling i got error about some libs, which were not reachable, because they were laying in "tools" dir. i haven't found any solution to that problem then...

chuckler 04-01-2006 10:36 AM

glibc error LFS 6.1.1 Chapter 6.11
 
I have this exact same problem..... anyone have any solution for this?
my config.log has the exact same output as the one posted above...
any idea what could be the problem?

somone solved this problem by linking.. is it a safe method? or will it break anything later even if it works now?

Yoyo302 04-02-2006 05:56 AM

you know, after making link to that file there wasn't any problem during building lfs system, or something after.
I just do not remember what got wrong then, because i have deleted all from lfs i made, and now i am using gentoo :P
never mind that, you have 2 solutions, 1st is to make sth with that, making some maybe not safe link, and 2nd is to make everything from begining,
it's your choise what you will do.

chuckler 04-02-2006 07:08 AM

glibc error LFS 6.1.1 Chapter 6.11
 
I just redid gcc-pass2 and everything seemed alright...
glibc configured and compiled properly.. even the test failed only in two places.. (something tst-clock2.out or something )which i continued with anyway.. did not have any issues so far... hope nothing is broken :D

butchcassidy1717 05-29-2007 02:16 PM

Quote:

Originally Posted by Yoyo302
you have 2 solutions, 1st is to make sth with that, making some maybe not safe link, and 2nd is to make everything from begining,
it's your choise what you will do.

This is my third time trying to build glibc-2.3.6 in LFS V6.2 Chapter 6.9 amd I cannot resolve this error "cannot compute suffix of object files: cannot compile .."
I looked at the config.log which tells me the /bin/gcc is not a file or directory.
What am I missing here? Any help would very appreciated..

lakeat 04-13-2008 10:15 AM

I suggest to look at LD_LIBRARY_PATH or LD_LIBRARYN32_PATH, and you may fix it! :)

Daniel

h8ck3rs 05-27-2008 05:58 PM

Quote:

Originally Posted by lakeat (Post 3119887)
I suggest to look at LD_LIBRARY_PATH or LD_LIBRARYN32_PATH, and you may fix it! :)

Daniel

export LD_LIBRARY_PATH=/usr/local/lib worked for me.
Quote:

Originally Posted by gcc43
checking whether ln -s works... yes
checking for i686-pc-linux-gnu-gcc... /home/user/download/gcc-4.3.0/host-i686-pc-linux-gnu/gcc/xgcc -B/home/user/download/gcc-4.3.0/host-i686-pc-linux-gnu/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[2]: *** [configure-stage1-target-libgcc] Error 1
gmake[2]: Leaving directory `/home/user/download/gcc-4.3.0'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/home/user/download/gcc-4.3.0'
gmake: *** [all] Error 2


orcaja 08-22-2008 11:59 AM

GCC install error cannot compute suffix of object files
 
Hi there!
I have this on config.log file

configure:3906: g++ -c conftest.cc >&5
g++: error trying to exec '/usr/libexec/gcc/i486-slackware-linux/4.1.2/cc1plus': execv: Exec format error
configure:3912: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
i am following the instructions on
http://www.nongnu.org/avr-libc/user-...nstall_avr_gcc
Any help will be very appreciated

Thanks
Joc

weibullguy 08-22-2008 12:46 PM

@orcaja, I recommend you start your own thread rather than reviving a 3-year old thread (again) that has nothing to do with your problem.

srsblue 03-18-2009 04:22 AM

Cross compile glibc -configure:3342: error: cannot compute suffix of object files: ca
 
Hi,
I am trying to cross compile GCC tool chain for powerpc. I am getting following error. I checked the config.log, not getting clue for the problem. I have searched previous messages with respect to glib configuration errors, but could not figure out the root cause.

CC=${TARGET}-gcc ../glibc-2.9/configure --enable-add-ons --target=$TARGET --prefix=$PREFIX --with-headers=${TARGET_PREFIX}/include
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gcc... powerpc-linux-gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

Please find below the 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 GNU C Library configure (see version.h), which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ../glibc-2.9/configure --enable-add-ons --target=powerpc-linux --prefix=/home/rams/crossgcc --with-headers=/home/rams/crossgcc/powerpc-linux/include

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


uname -m = i686
uname -r = 2.6.23.17-88.fc7PAE
uname -s = Linux
uname -v = #1 SMP Thu May 15 00:22:53 EDT 2008

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/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/kerberos/bin
PATH: /usr/lib/ccache
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/NX/bin
PATH: /home/rams/crossgcc/bin


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

configure:2182: checking build system type
configure:2200: result: i686-pc-linux-gnulibc1
configure:2222: checking host system type
configure:2237: result: i686-pc-linux-gnulibc1
configure:2417: running configure fragment for add-on nptl
configure:2554: checking sysdep dirs
configure:2790: result: sysdeps/generic/elf sysdeps/generic
configure:2868: checking for a BSD-compatible install
configure:2924: result: /usr/bin/install -c
configure:2939: checking whether ln -s works
configure:2943: result: yes
configure:2999: checking for gcc
configure:3026: result: powerpc-linux-gcc
configure:3264: checking for C compiler version
configure:3271: powerpc-linux-gcc --version >&5
powerpc-linux-gcc (GCC) 4.3.3
Copyright (C) 2008 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:3274: $? = 0
configure:3281: powerpc-linux-gcc -v >&5
Using built-in specs.
Target: powerpc-linux
Configured with: ../gcc-4.3.3/configure --target=powerpc-linux --prefix=/home/rams/crossgcc --without-headers --with-newlib -v
Thread model: posix
gcc version 4.3.3 (GCC)
configure:3284: $? = 0
configure:3291: powerpc-linux-gcc -V >&5
powerpc-linux-gcc: '-V' option must have argument
configure:3294: $? = 1
configure:3298: checking for suffix of object files
configure:3324: powerpc-linux-gcc -c conftest.c >&5
as: unrecognized option `-mppc'
configure:3327: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3342: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnulibc1
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=powerpc-linux-gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=powerpc-linux
ac_cv_host=i686-pc-linux-gnulibc1
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_ac_ct_CC=powerpc-linux-gcc

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

AR=''
AS=''
ASFLAGS_config=''
AUTOCONF=''
AWK=''
BASH_SHELL=''
BISON=''
BUILD_CC=''
CC='powerpc-linux-gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXX_SYSINCLUDES=''
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_INFO=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KSH=''
LD=''
LDFLAGS=''
LIBGD=''
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKE=''
MAKEINFO=''
MIG=''
MSGFMT=''
OBJDUMP=''
OBJEXT=''
PACKAGE_BUGREPORT='glibc'
PACKAGE_NAME='GNU C Library'
PACKAGE_STRING='GNU C Library (see version.h)'
PACKAGE_TARNAME='c-library'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
PERL=''
PWD_P=''
RANLIB=''
RELEASE=''
SED=''
SHELL='/bin/sh'
SYSINCLUDES=''
VERSION=''
VERSIONING=''
ac_ct_CC='powerpc-linux-gcc'
ac_ct_CXX=''
add_on_subdirs=''
add_ons='nptl'
all_warnings=''
base_machine='i386'
bindir='${exec_prefix}/bin'
bindnow='no'
bounded='no'
build='i686-pc-linux-gnulibc1'
build_alias=''
build_cpu='i686'
build_os='linux-gnulibc1'
build_vendor='pc'
cross_compiling='no'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
elf='yes'
enable_check_abi='no'
exceptions=''
exec_prefix='NONE'
fno_unit_at_a_time=''
force_install='yes'
have_libaudit=''
have_libcap=''
have_selinux=''
host='i686-pc-linux-gnulibc1'
host_alias=''
host_cpu='i686'
host_os='linux-gnulibc1'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
ldd_rewrite_script=''
libc_cv_Bgroup=''
libc_cv_as_needed=''
libc_cv_cc_submachine=''
libc_cv_cc_with_libunwind=''
libc_cv_cpp_asm_debuginfo=''
libc_cv_forced_unwind=''
libc_cv_fpie=''
libc_cv_gcc_static_libgcc=''
libc_cv_gcc_unwind_find_fde=''
libc_cv_gnu89_inline=''
libc_cv_hashstyle=''
libc_cv_have_bash2=''
libc_cv_have_initfini=''
libc_cv_have_ksh=''
libc_cv_libgcc_s_suffix=''
libc_cv_localedir=''
libc_cv_rootsbindir=''
libc_cv_slibdir=''
libc_cv_ssp=''
libc_cv_sysconfdir=''
libc_cv_z_combreloc=''
libc_cv_z_execstack=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='${datarootdir}/man'
no_whole_archive=''
nopic_initfini=''
old_glibc_headers=''
oldest_abi='default'
oldincludedir='/usr/include'
omitfp='no'
pdfdir='${docdir}'
pic_default=''
prefix='/home/rams/crossgcc'
profile='no'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
shared='default'
sharedstatedir='${prefix}/com'
sizeof_long_double=''
static='yes'
static_nss='no'
subdirs=' '
submachine=''
sysconfdir='${prefix}/etc'
sysdeps_add_ons=' nptl'
sysnames=' sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic'
target_alias='powerpc-linux'
uname_release=''
uname_sysname=''
uname_version=''
use_ldconfig=''
with_cvs='yes'
with_fp='yes'
xcoff='no'

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

#define PACKAGE_NAME "GNU C Library"
#define PACKAGE_TARNAME "c-library"
#define PACKAGE_VERSION "(see version.h)"
#define PACKAGE_STRING "GNU C Library (see version.h)"
#define PACKAGE_BUGREPORT "glibc"
#define USE_REGPARMS 1

configure: exit 1

Thanks in advance

Regards
Rams

prashantsangal 04-04-2009 12:50 AM

configure: error: cannot compute suffix of object files: cannot compile
 
Hello Friends,

I am new here and this is my first mail. If i am breaking any rules, kindly forgive me.

I am trying to build "buildroot" package on my PC for ARM Based board. It first tries to build cross-compiler toolchain for ARM. while configuring gcc, it gives following error:
checking for suffix of object files... configure: error: cannot compute

suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1


when i see config.log file, i found following:

configure:3325: checking for suffix of object files
configure:3346: /usr/bin/gcc -c conftest.c >&5
configure:3349: $? = 0
configure:3371: result: o


which, i think, suggests that it is computing what should be the suffix of the object files.

I went through your conversation, and i tried

]#gcc -v

and the output was

Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.2.1 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.2 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.2.1 (SUSE Linux)


and gcc is at /usr/bin,
i created the link in /bin too by using

]#ln -s /usr/bin/gcc /bin/gcc

as yoyo suggested in previous postings.

also i tried
]#export LD_LIBRARY_PATH=/usr/local/lib

but no gain.
does anyone has any clue about this problem's solution?

help is always appriciated friends.

regards,
Prashant Sangal

m++ 05-08-2009 10:45 PM

Could this be caused by forgetting to remove the files in the build-gcc directory after pass 1?
I believe pass 2 requires a configure and make in an empty directory.

metal.han 09-22-2009 07:32 PM

why couldn't a root excute the gcc?
 
Quote:

Originally Posted by Yoyo302 (Post 1727691)
amm...

root:/sources/glibc-3# gcc -v
bash: /bin/gcc: No such file or directory
root:/sources/glibc-3#

but:

root:/tools/bin# ./gcc -v
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
Configured with: ../gcc-3.4.4/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.4
root:/tools/bin#

I enccounter the exact problem like #5. who can tell me why ?
A host root can run gcc while a "new root" can not do it.

yogesh605 03-13-2010 12:27 AM

Quote:

Originally Posted by freegianghu (Post 1727616)
Try post output of:
Code:

$ gcc -v

hi, i have also same problem i am posting gcc -v output.

"Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /mnt/lfs/gcc-build/gcc-4.4.3/configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap : (reconfigured) /mnt/lfs/gcc-build/gcc-4.4.3/configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap
Thread model: posix
gcc version 4.4.3 (GCC)"

my problem is: "checking for suffix of object files... configure: error: in `/mnt/lfs/gcc-build1/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-build1'
make: *** [all] Error 2"

i am building gcc pass 2 from LFS 6.6 ebook. please tell me how to solve this error?

sharrajesh 05-21-2010 08:28 AM

sharrajesh
 
Quote:

Originally Posted by lakeat (Post 3119887)
I suggest to look at LD_LIBRARY_PATH or LD_LIBRARYN32_PATH, and you may fix it! :)

Daniel

Since the new glibc has dependency on mpc, gmp and mpfr hence you have to show that in your LD_LIBRARY_PATH. By making these changes I was able to move ahead.

LD_LIBRARY_PATH=$PREFIX/mpc/lib:$PREFIX/mpfr/lib:$PREFIX/gmp/lib:$LD_LIBRARY_PATH

--sharrajesh


All times are GMT -5. The time now is 01:57 AM.