LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 06-13-2012, 12:41 PM   #1
iceman911
LQ Newbie
 
Registered: Dec 2004
Location: India
Posts: 13

Rep: Reputation: 0
binutils-2.22 configure error "C compiler cannot create executables"


Hi there,
this is my first time building lfs; and i stumbled on the first step.
running the configure script of the first package binutils-2.22 produced the above error.

output of config.log is as follows:

Thanks for reading.

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

$ ../binutils-2.22/configure --target=i686-lfs-linux-gnu --prefix=/tools --disable-nls --disable-werror

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

hostname = linmachine
uname -m = i686
uname -r = 2.6.24-19-generic
uname -s = Linux
uname -v = #1 SMP Wed Jun 18 14:43:41 UTC 2008

/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: /tools/bin
PATH: /bin
PATH: /usr/bin


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

configure:2230: checking build system type
configure:2244: result: i686-pc-linux-gnu
configure:2291: checking host system type
configure:2304: result: i686-pc-linux-gnu
configure:2324: checking target system type
configure:2337: result: i686-lfs-linux-gnu
configure:2391: checking for a BSD-compatible install
configure:2459: result: /usr/bin/install -c
configure:2470: checking whether ln works
configure:2492: result: yes
configure:2496: checking whether ln -s works
configure:2500: result: yes
configure:2507: checking for a sed that does not truncate output
configure:2571: result: /bin/sed
configure:2580: checking for gawk
configure:2610: result: no
configure:2580: checking for mawk
configure:2596: found /usr/bin/mawk
configure:2607: result: mawk
configure:3742: checking for gcc
configure:3758: found /usr/bin/gcc
configure:3769: result: gcc
configure:3998: checking for C compiler version
configure:4007: gcc --version >&5
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 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:4018: $? = 0
configure:4007: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
configure:4018: $? = 0
configure:4007: gcc -V >&5
gcc: '-V' option must have argument
configure:4018: $? = 1
configure:4007: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:4018: $? = 1
configure:4038: checking for C compiler default output file name
configure:4060: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:4064: $? = 1
configure:4101: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4107: error: in `/mnt/lfs/binutils-build':
configure:4111: error: C compiler cannot create executables
See `config.log' for more details.
---------------------------------------------------------------------------
 
Old 06-13-2012, 12:55 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,119

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
LFS-6.9, vii. Host System Requirements ...
http://www.linuxfromscratch.org/lfs/.../hostreqs.html

So far it seems that you have no gawk, and no full install of glibc, gcc.
This will do : sudo apt-get install gawk libc6-dev g++
 
1 members found this post helpful.
Old 06-13-2012, 01:15 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Hi

Can you post the output of the host requirements scripts That knudfl pointed to
 
1 members found this post helpful.
Old 06-14-2012, 03:51 AM   #4
iceman911
LQ Newbie
 
Registered: Dec 2004
Location: India
Posts: 13

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by knudfl View Post
LFS-6.9, vii. Host System Requirements ...
http://www.linuxfromscratch.org/lfs/.../hostreqs.html

So far it seems that you have no gawk, and no full install of glibc, gcc.
This will do : sudo apt-get install gawk libc6-dev g++
-----
Thanks for the help, mate. it worked.
 
Old 11-06-2014, 06:51 AM   #5
geo_man
LQ Newbie
 
Registered: Oct 2014
Location: India
Distribution: ubuntu 14.04 LTS
Posts: 6

Rep: Reputation: Disabled
Thumbs up Worked for me too...

Quote:
Originally Posted by knudfl View Post
LFS-6.9, vii. Host System Requirements ...
http://www.linuxfromscratch.org/lfs/.../hostreqs.html

So far it seems that you have no gawk, and no full install of glibc, gcc.
This will do : sudo apt-get install gawk libc6-dev g++
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wine compile error: "C compiler cannot create executables" yoav_by Linux - Software 4 04-03-2011 06:23 PM
can't compile; configure won't complete: "C compiler cannot create executables" pbhj Slackware 5 12-15-2010 07:59 AM
"C compiler cannot create executables" error message when preparing binutils for buil jackplughd Linux From Scratch 8 03-15-2010 06:08 AM
"error: C compiler cannot create executables" when I try to compile gcc4.3.2 in/tools spencer8ab Linux From Scratch 4 05-13-2009 12:20 PM
error: "c compiler cannot create executables" when trying to run ./configure fedoraemu Linux - Software 2 04-24-2007 08:43 PM


All times are GMT -5. The time now is 03:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration