Lance King | 27 Jun 2012 20:25
Picon

Error During Section 5.9 Binutils-2.22 - Pass 2

After running the following commands per the guide...

CC="$LFS_TGT-gcc -B/tools/lib/" \
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
../binutils-2.22/configure --prefix=/tools \
--disable-nls --with-lib-path=/tools/lib


From the binutils-build folder in the sources folder I get the following error
message:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... x86_64-lfs-linux-gnu-gcc -B/tools/lib/
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in
`/mnt/lfs/sources/binutils-build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Any ideas on what could be causing this issue or ideas where to start looking.
Last lines from the config.log aren't to helpful:

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag=''
host_makefile_frag='/dev/null'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

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

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 1

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Ken Moffat | 27 Jun 2012 21:08

Re: Error During Section 5.9 Binutils-2.22 - Pass 2

On Wed, Jun 27, 2012 at 01:25:07PM -0500, Lance King wrote:
> After running the following commands per the guide...
> 
> CC="$LFS_TGT-gcc -B/tools/lib/" \
> AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
> ../binutils-2.22/configure --prefix=/tools \
> --disable-nls --with-lib-path=/tools/lib
> 
> 
> >From the binutils-build folder in the sources folder I get the following
> error
> message:
> 
[...]
> checking whether the C compiler works... configure: error: in
> `/mnt/lfs/sources/binutils-build':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> 
> Any ideas on what could be causing this issue or ideas where to start
> looking.

 All sorts of things, you need the error messages from the program
fragment which failed.  It looks as if you've got the right
config.log (it reports exit 1, which sounds like a failure) -
binutils (and other some large packages) can have multiple
config.log files, depending on how far it got.

 Try looking a little above the part of the log that you posted.
Search for 'cannot run C compiled programs' - use vim/view/less to
make searching easy [ /cannot\ run\ C ] then look at the lines just
above that for other error messages - might be missing object files,
or something causing it to be treated as an invalid architecture, or
(unlikely, but I've managed it :) invalid CFLAGS, or possibly
something related to the host distro.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Bruce Dubbs | 27 Jun 2012 23:29
Picon

Re: Error During Section 5.9 Binutils-2.22 - Pass 2

Ken Moffat wrote:
> On Wed, Jun 27, 2012 at 01:25:07PM -0500, Lance King wrote:
>> After running the following commands per the guide...
>>
>> CC="$LFS_TGT-gcc -B/tools/lib/" \
>> AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
>> ../binutils-2.22/configure --prefix=/tools \
>> --disable-nls --with-lib-path=/tools/lib
>>
>>
>> >From the binutils-build folder in the sources folder I get the following
>> error
>> message:
>>
> [...]
>> checking whether the C compiler works... configure: error: in
>> `/mnt/lfs/sources/binutils-build':
>> configure: error: cannot run C compiled programs.
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details.
>>
>> Any ideas on what could be causing this issue or ideas where to start
>> looking.
> 
>  All sorts of things, you need the error messages from the program
> fragment which failed.  It looks as if you've got the right
> config.log (it reports exit 1, which sounds like a failure) -
> binutils (and other some large packages) can have multiple
> config.log files, depending on how far it got.
> 
>  Try looking a little above the part of the log that you posted.
> Search for 'cannot run C compiled programs' - use vim/view/less to
> make searching easy [ /cannot\ run\ C ] then look at the lines just
> above that for other error messages - might be missing object files,
> or something causing it to be treated as an invalid architecture, or
> (unlikely, but I've managed it :) invalid CFLAGS, or possibly
> something related to the host distro.

Ther first think I'd want to know is what is the value of $LFS_TGT and 
$PATH.   What are the contents of /tools/bin and /tools/lib?

   -- Bruce

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Kai Peter | 29 Jun 2012 20:28
Picon

Re: Error During Section 5.9 Binutils-2.22 - Pass 2

On 27.06.2012 20:25, Lance King wrote:
After running the following commands per the guide...

CC="$LFS_TGT-gcc -B/tools/lib/" \
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
../binutils-2.22/configure --prefix=/tools \
--disable-nls --with-lib-path=/tools/lib


From the binutils-build folder in the sources folder I get the following error
message:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... x86_64-lfs-linux-gnu-gcc -B/tools/lib/
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in
`/mnt/lfs/sources/binutils-build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Any ideas on what could be causing this issue or ideas where to start looking.
Last lines from the config.log aren't to helpful:

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag=''
host_makefile_frag='/dev/null'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

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

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 1


Hi Lance,

What is your host system?

This error can be reproduced using e.g. the latest lfs live cd with lfs version 6.3. Seems to me that your host system is to old, especially kernel is older than 2.6.25.

regards
Kai

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Lance King | 29 Jun 2012 20:40
Picon

Re: Error During Section 5.9 Binutils-2.22 - Pass 2

Host system is OpenSuse 12.1  Kernel 3.1.0-1.2-desktop x86_64. And I'm using LFS 7.1

On Fri, Jun 29, 2012 at 1:28 PM, Kai Peter <kp <at> alddos.de> wrote:
On 27.06.2012 20:25, Lance King wrote:
After running the following commands per the guide...

CC="$LFS_TGT-gcc -B/tools/lib/" \
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
../binutils-2.22/configure --prefix=/tools \
--disable-nls --with-lib-path=/tools/lib


From the binutils-build folder in the sources folder I get the following error
message:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... x86_64-lfs-linux-gnu-gcc -B/tools/lib/
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in
`/mnt/lfs/sources/binutils-build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Any ideas on what could be causing this issue or ideas where to start looking.
Last lines from the config.log aren't to helpful:

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag=''
host_makefile_frag='/dev/null'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

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

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 1


Hi Lance,

What is your host system?

This error can be reproduced using e.g. the latest lfs live cd with lfs version 6.3. Seems to me that your host system is to old, especially kernel is older than 2.6.25.

regards
Kai


--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Ken Moffat | 29 Jun 2012 21:13

Re: Error During Section 5.9 Binutils-2.22 - Pass 2

On Fri, Jun 29, 2012 at 01:40:19PM -0500, Lance King wrote:
> Host system is OpenSuse 12.1  Kernel 3.1.0-1.2-desktop x86_64. And I'm
> using LFS 7.1
> 
> On Fri, Jun 29, 2012 at 1:28 PM, Kai Peter <kp <at> alddos.de> wrote:
> 
> >  On 27.06.2012 20:25, Lance King wrote:
> >

 We often get annoyed at people who top post, please don't.

 Any developments in the light of the replies from Bruce and me on
Wednesday to your original post ?

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Gmane