Discussion:
[lfs-support] Libffi 455 tests fail. Step 6.49. Libffi-3.2.1 in the book lfs-8.2 systemd version.
Filip Banák
2018-05-16 16:03:34 UTC
Permalink
Hello

I am using the lfs-8.2 systemd version of the book. Problem is in
Libffi-3.2.1 tests (step 6.49).

My machine is x86_64 Manjaro linux with kernel 4.14.39.

Version check output:    https://pastebin.com/aBUpM6RC

Libffi ./configure log:    https://pastebin.com/J9s1nxGZ

Libffi make 2>&1 | tee output.txt : https://pastebin.com/Xn8Q9uMY

Libffi make check created file ./testsuite/libffi.log:    1st part >>
https://pastebin.com/LY3vrYi1  2nd part >> https://pastebin.com/4t1uJU9X
3rd part >> https://pastebin.com/3ZTqyifE

Libffi make check 2>&1 | tee output2.txt: https://pastebin.com/hHx8pDwj

Libffi make install 2>&1 | tee output3.txt: https://pastebin.com/pASJ5RRe


I do not have a clue about this. Configuration and compilation and
installation looks good to me at least. I tried to move on with the book
but when I try to build Meson with >> python3 setup.py build << then I
get an Illegal Instruction (core dumped). When i execute it like this >>
gdb -ex r --args python3 setup.py build << then I get >>
https://pastebin.com/1H4biM12    <<

Almost certain something is wrong with libffi. And I did not deviated
from the book at all except that I used Linux 4.15.18 instead of the
Linux 4.15.3 package.

So I am stuck at this point.

I really need help. Thank you so much.
--
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
Ken Moffat
2018-05-16 17:34:16 UTC
Permalink
Post by Filip Banák
Hello
I am using the lfs-8.2 systemd version of the book. Problem is in
Libffi-3.2.1 tests (step 6.49).
My machine is x86_64 Manjaro linux with kernel 4.14.39.
[...]
Post by Filip Banák
I do not have a clue about this. Configuration and compilation and
installation looks good to me at least. I tried to move on with the book but
when I try to build Meson with >> python3 setup.py build << then I get an
Illegal Instruction (core dumped). When i execute it like this >> gdb -ex r
--args python3 setup.py build << then I get >>
https://pastebin.com/1H4biM12    <<
(pasting the error line here) -

Program received signal SIGILL, Illegal instruction.
0x00007ffff5fddce4 in ffi_closure_alloc () from /usr/lib/libffi.so.6

I really struggle when I have to use gdb, but are you able to list
the instruction at that address ?

What CPU is this, specifically ? There have been problems in the
past with low-end recent intel CPUs where gmp thought an instruction
should be available but it wasn't.

See the note in 6.17.1 - the configfsf files make gmp do the right
thing.

I've seen a few invalid opcode messages myself, on Ryzen, probably
related to missing instructions (according to gentoo, four were
removed in Fam17h but I've no idea *which* instructions) and my
problems were in BLFS.

ĸen
--
This email was written using 100% recycled letters.
--
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_
Michael Shell
2018-05-17 02:08:28 UTC
Permalink
On Wed, 16 May 2018 18:03:34 +0200
Post by Filip Banák
When i execute it like this
gdb -ex r --args python3 setup.py build
then I get https://pastebin.com/1H4biM12
Almost certain something is wrong with libffi.
Right, libffi has been built for a different CPU model. To see the
offending instruction in gdb after the above error, after gdb reports:

:Program received signal SIGILL, Illegal instruction.
:0x00007ffff5fddce4 in ffi_closure_alloc () from /usr/lib/libffi.so.6

enter this command at the gdb prompt:

(gdb) display/i $pc

and tell us what gdb responds with.



Cheers,

Mike Shell
--
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/wik
Loading...