Discussion:
[lfs-support] LFS-8.2: 6.12. File-5.32
Baho Utot
2018-07-02 17:44:49 UTC
Permalink
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

I am building in /usr/src/Octothrope/BUILD/ as I am building with
rpmbuild.  This has not been a problem in LFS 8.1.  I am updating my
LFS-8.1 build to LFS 8.2 and have only changed the difference between
the two handbooks.

Any hints to what has occurred?
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://
Ken Moffat
2018-07-03 19:13:03 UTC
Permalink
Post by Baho Utot
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: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: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 ?
Post by Baho Utot
I am building in /usr/src/Octothrope/BUILD/ as I am building with rpmbuild. 
This has not been a problem in LFS 8.1.  I am updating my LFS-8.1 build to
LFS 8.2 and have only changed the difference between the two handbooks.
Any hints to what has occurred?
Sorry, no. I did wonder about "disk full", but if you are running
as root then that only fails when the disk really _is_ full, so
config.log would not have been fully written.

Usually, "only changed the difference" suggests that the builder
missed something. But in this case, I find it hard to imagine that
any of the major changes (adding libffi, meson, ninja, python3,
openssl) have affected file, which I generally class in Rincewind
style as "boring" (and much-appreciated because of that).

Do you get the same problem with whichever version was in 8.1, or
with the current 5.33 ?

PS - we call them versions of the book, or releases. The word
'handbook' implies a certain non-GPL'd OS ;-)

ĸen
--
Keyboard not found, Press F1 to continue
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipe
Baho Utot
2018-07-03 20:53:27 UTC
Permalink
Post by Ken Moffat
Post by Baho Utot
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: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: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
Post by Ken Moffat
Post by Baho Utot
I am building in /usr/src/Octothrope/BUILD/ as I am building with rpmbuild.
This has not been a problem in LFS 8.1.  I am updating my LFS-8.1 build to
LFS 8.2 and have only changed the difference between the two handbooks.
Any hints to what has occurred?
Sorry, no. I did wonder about "disk full", but if you are running
as root then that only fails when the disk really _is_ full, so
config.log would not have been fully written.
The partition that this is being built on has 20GB of free space. /tmp
is a 16GB tempfs on the host.
It is mounted at /mnt/lfs and was clean before chapter 5 was built/installed
Post by Ken Moffat
Usually, "only changed the difference" suggests that the builder
missed something. But in this case, I find it hard to imagine that
any of the major changes (adding libffi, meson, ninja, python3,
openssl) have affected file, which I generally class in Rincewind
style as "boring" (and much-appreciated because of that).
If I missed something it was adjusting the toolchain....The toolchain
test came back exactly what the book has.
I believe it was good before the adjust tool chain in chapter 6.
Something could have when wrong there but I have not uncovered anything
amiss.
Post by Ken Moffat
Do you get the same problem with whichever version was in 8.1, or
with the current 5.33 ?
No it built,  the only thing changed between the 8.1 and this is what is
in the book.
Post by Ken Moffat
PS - we call them versions of the book, or releases. The word
'handbook' implies a certain non-GPL'd OS ;-)
ĸen
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/w
Ken Moffat
2018-07-03 21:08:29 UTC
Permalink
Post by Ken Moffat
Do you get the same problem with whichever version was in 8.1, or
with the current 5.33 ?
No it built,  the only thing changed between the 8.1 and this is what is in
the book.
I think you answered a different question from the one I asked. I
don't care what worked in your 8.1 build, only whether all recent
versions of file show the problem in your current build.

And if they do, any other infromation you can gather will be useful.

ĸen
--
Keyboard not found, Press F1 to continue
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Pos
Baho Utot
2018-07-03 21:17:27 UTC
Permalink
Post by Ken Moffat
Post by Ken Moffat
Do you get the same problem with whichever version was in 8.1, or
with the current 5.33 ?
No it built,  the only thing changed between the 8.1 and this is what is in
the book.
I think you answered a different question from the one I asked. I
don't care what worked in your 8.1 build, only whether all recent
versions of file show the problem in your current build.
And if they do, any other infromation you can gather will be useful.
ĸen
I am using the version of file that is in the LFS-8.2 book

Here is the log file:

+ cd /usr/src/Octothorpe/BUILD
+ cd 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
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipe
Ken Moffat
2018-07-03 21:49:43 UTC
Permalink
Post by Baho Utot
Post by Ken Moffat
I think you answered a different question from the one I asked. I
don't care what worked in your 8.1 build, only whether all recent
versions of file show the problem in your current build.
And if they do, any other infromation you can gather will be useful.
ĸen
I am using the version of file that is in the LFS-8.2 book
It feels as if you are deliberately misunderstanding what I ask.
I'll reply to your other post.
--
Keyboard not found, Press F1 to continue
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/
Baho Utot
2018-07-03 22:07:32 UTC
Permalink
Post by Ken Moffat
Post by Baho Utot
Post by Ken Moffat
I think you answered a different question from the one I asked. I
don't care what worked in your 8.1 build, only whether all recent
versions of file show the problem in your current build.
And if they do, any other infromation you can gather will be useful.
ĸen
I am using the version of file that is in the LFS-8.2 book
It feels as if you are deliberately misunderstanding what I ask.
I'll reply to your other post.
Completely missing what you are saying.  I am using the the LFS-8.2
handbook downloaded from the linuxfromscratch.org.  I am following the
book using the versions AS OUTLINED in the handbook. Chapter 6.12 gives
the version as file-5.52 and I have no idea as to why you think I am
using anything else.   I have built the tool chain ( chapter 5) and then
I am at this point in the build AGAIN following the LFS-8.2 handbook.

Anyway here is what I found:

I reran the the test from Chapter 6.10 and it gave this result

[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]

/lib64 is empty at this point in the build, so I proceeded with the
following

cd /lib64
cp /lib/ld-2.27.so .
ln -sf ld-2.27.so ld-linux-x86-64.so.2

Now /lib64 has the "ld files"
the configure in chapter 6.12. File-5.32
/configure --prefix=/usr
will now complete.

My question now is what should be in /lib64 at this point?
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style
Ken Moffat
2018-07-03 22:32:24 UTC
Permalink
Completely missing what you are saying.  I am using the the LFS-8.2 handbook
downloaded from the linuxfromscratch.org.  I am following the book using the
versions AS OUTLINED in the handbook. Chapter 6.12 gives the version as
file-5.52 and I have no idea as to why you think I am using anything else.  
I have built the tool chain ( chapter 5) and then I am at this point in the
build AGAIN following the LFS-8.2 handbook.
I was asking you to try different versions of file to try to
determine if something in that version of file was doing something
odd (seems unlikely, but 8.2 was released months ago and I don't
recall anybody else with a similar program).
I reran the the test from Chapter 6.10 and it gave this result
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
/lib64 is empty at this point in the build, so I proceeded with the
following
cd /lib64
cp /lib/ld-2.27.so .
ln -sf ld-2.27.so ld-linux-x86-64.so.2
Now /lib64 has the "ld files"
the configure in chapter 6.12. File-5.32
/configure --prefix=/usr
will now complete.
My question now is what should be in /lib64 at this point?
The symlinks you should have installed in the third instruction on
the glibc page (in the case statement which also sets up GCC_INCDIR).

Apart from the changed gcc version, I don't think that has changed
since 8.1.

ĸen
--
Keyboard not found, Press F1 to continue
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/P
Baho Utot
2018-07-03 21:09:04 UTC
Permalink
Post by Baho Utot
Post by Ken Moffat
Post by Baho Utot
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: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: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
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.o
Ken Moffat
2018-07-03 22:01:45 UTC
Permalink
Post by Baho Utot
Post by Baho Utot
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
At that point, I think it has determined that executables do not
need a .exe suffix (i.e. you are not on cygwin). Hence a blank
result.
Post by Baho Utot
Post by Baho Utot
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
Look at the lines of configure from about line 3885 to line 3929.
And also near the start of the file re 'host' for an explanation of
why --host is accepted.
Post by Baho Utot
Post by Baho Utot
configure:3938: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
In this case, it fell over because conftest apparently did not
exist.
Post by Baho Utot
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?
Read the lines I pointed you too, starting by looking for 'host'.
By telling it you are cross-compiling, it skips the test. The
reason for the test is in a comment in the chunk of lines for the
test which fails.

None of this explains why conftest does not exist. A file of that
name gets created loads of times during the configure tests, and
deleted at the end of each test.

ĸen
--
Keyboard not found, Press F1 to continue
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.w
Loading...