[lfs-support] LFS-8.2: 6.12. File-5.32

Baho Utot baho-utot at columbus.rr.com
Tue Jul 3 14:09:04 PDT 2018


More info:

On 07/03/2018 04:53 PM, Baho Utot wrote:
>
> On 07/03/2018 03:13 PM, Ken Moffat wrote:
>> On Mon, Jul 02, 2018 at 01:44:49PM -0400, Baho Utot wrote:
>>> Having a bit of bad luck with this:
>>>
>>> configure:3735: gcc -qversion >&5
>>> gcc: error: unrecognized command line option '-qversion'; did you mean
>>> '--version'?
>>> gcc: fatal error: no input files
>>> compilation terminated.
>>> configure:3746: $? = 1
>>> configure:3766: checking whether the C compiler works
>>> configure:3788: gcc    conftest.c  >&5
>>> configure:3792: $? = 0
>>> configure:3840: result: yes
>>> configure:3843: checking for C compiler default output file name
>>> configure:3845: result: a.out
>>> configure:3851: checking for suffix of executables
>>> configure:3858: gcc -o conftest    conftest.c  >&5
>>> configure:3862: $? = 0
>>> configure:3884: result:
>>> configure:3906: checking whether we are cross compiling
>>> configure:3914: gcc -o conftest    conftest.c  >&5
>>> configure:3918: $? = 0
>>> configure:3925: ./conftest
>>> ./configure: line 3927: ./conftest: No such file or directory
>>> configure:3929: $? = 127
>>> configure:3936: error: in `/usr/src/Octothorpe/BUILD/file-5.32':
>>> configure:3938: error: cannot run C compiled programs.
>>> If you meant to cross compile, use `--host'.
>>> See `config.log' for more details
>>>
>> Configure doesn't normally produce that amount of output, that looks
>> as if you have selected certain lines from config.log ?
>
> Yes this is a piece from config.log

If I use ./configure --prefix=/usr --host x86_64 the configure will then 
work.

What does the --host x86_64 do to "correct" this issue?

./configure --prefix=/usr gives the following:

[putolin]

checking for pread... yes
checking for strcasestr... yes
checking for fmtcheck... no
checking for dprintf... yes
checking for gzopen in -lz... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating magic/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating python/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
(lfs chroot) root:/usr/src/Octothorpe/BUILD/file-5.32# ./configure 
--prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /tools/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for builtin ELF support... yes
checking for ELF core file support... yes
checking for zlib support...
checking for file formats in man section 5... no
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 gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in 
`/usr/src/Octothorpe/BUILD/file-5.32':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details



More information about the lfs-support mailing list