Discussion:
[lfs-support] asm-goto support
Dr.-Ing. Edgar Alwers
2018-10-27 15:07:25 UTC
Permalink
Hi,

I just finished building  LFS-8.3 with kernel 4.18.5.  However, if I try
to build something, I just get a message "compiler lacks asm-goto
support". I have been looking at googleand found a comment
"https://bbs.archlinux.org/viewtopic.php?id=239500" saying

"gcc 8.2 supports asm-goto but the the kernel build detects the compiler
in use does not".
The final comment of the user was :"I managed to fix this by
re-installing the kernel", without further indications. Can someone tell
me, what I should change in the configuration of kernel 4.18.5 ? Or what
is happening in my new LFS ?

Thanks for any help,
Edgar
Ken Moffat
2018-10-27 16:56:40 UTC
Permalink
Hi,
I just finished building  LFS-8.3 with kernel 4.18.5.  However, if I try to
build something, I just get a message "compiler lacks asm-goto support". I
have been looking at googleand found a comment
"https://bbs.archlinux.org/viewtopic.php?id=239500" saying
"gcc 8.2 supports asm-goto but the the kernel build detects the compiler in
use does not".
The final comment of the user was :"I managed to fix this by re-installing
the kernel", without further indications. Can someone tell me, what I should
change in the configuration of kernel 4.18.5 ? Or what is happening in my
new LFS ?
Thanks for any help,
Edgar
Hi, Edgar.

We had a similar report last month. Thread from this problem starts at
http://lists.linuxfromscratch.org/pipermail/lfs-support/2018-September/052401.html
but I don't think we got any conclusion.

He had at least one earlier problem, but we never heard if he
eventually succeeded. From my comments at
http://lists.linuxfromscratch.org/pipermail/lfs-support/2018-September/052409.html
it seems his toolchain was broken.

Bruce suggested this was due either to missing a package (all worked
fine when /tools was on the PATH, but not afterwards), or something
when wrong in adjusting the toolchain.

All I can suggest for a first step is: change your PATH so that
/tools is not on it, and try to untar and configure a small package
(one which uses configure, obviously). If that reports that the C
compiler cannot create executables then one of those suggestions
seems to apply. (We know that until the end of chapter 6 the compiler
was apparently working). OTOH, if without /tools you can still
configure and compile then I don't know.

ĸen
--
Is it about a bicycle ?
--
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
Dr.-Ing. Edgar Alwers
2018-10-28 20:01:16 UTC
Permalink
Post by Ken Moffat
try to untar and configure a small package
(one which uses configure, obviously). If that reports that the C
compiler cannot create executables then one of those suggestions
seems to apply.
hi Kenn,

/tools is not more present in my LFS. I did ./configure on "lynx2-8-8"
and I got
"checking for C compiler default output... configure: error: C compiler
cannot create executables"
So I started to look for libelf, as you wrote, and voila, I found that
for some reasons I had moved this files from the original place. After
putting them back, the compiler started working normal.

Thank you very much for your help. Without your hint , I would probably
not found how to proceed !

Kind regards,
Edgar
--
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
Ken Moffat
2018-10-28 21:49:39 UTC
Permalink
Post by Dr.-Ing. Edgar Alwers
Post by Ken Moffat
try to untar and configure a small package
(one which uses configure, obviously). If that reports that the C
compiler cannot create executables then one of those suggestions
seems to apply.
hi Kenn,
/tools is not more present in my LFS. I did ./configure on "lynx2-8-8" and I
got
"checking for C compiler default output... configure: error: C compiler
cannot create executables"
So I started to look for libelf, as you wrote, and voila, I found that for
some reasons I had moved this files from the original place. After putting
them back, the compiler started working normal.
Thank you very much for your help. Without your hint , I would probably not
found how to proceed !
Kind regards,
Edgar
Thanks for coming back. I did not think that anything would be
linked to libelf, so can you be more-specific about what you had
moved, please, so we can save the information for the next time ?

Glad you are now sorted.

ĸen
--
Is it about a bicycle ?
--
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
Dr.-Ing. Edgar Alwers
2018-10-29 16:06:38 UTC
Permalink
Post by Ken Moffat
Thanks for coming back. I did not think that anything would be
linked to libelf, so can you be more-specific about what you had
moved, please, so we can save the information for the next time ?
Hi Ken,

the story is a little complicated. I finished my LFS-8.3  with some
dificulties building Linux-4.18.5. ( make menuconfig did'nt start at all )
So I decided to take the lfskernel and System.map from my LFS-8.1
(linux-4.12.7 ) to start booting anyway my new LFS-8.3.
To my surprise, the system did not boot at all, with very strange
messages concerning the partition "/dev/sdb4" (  xfs ) like partition
corrupted or cannot find the partition etc. At this point I decided to
mount my LFS-8.1 system on this partition, and LFS-8.1 booted without
problems. So, I  started copying the directories from the new LFS-8.3 to
the old LFS-8.1 and booting in between. During this procedure I had not
yet copied the libelf files ( libelf-0.173.s0, libelf.a, libelf.so and
libelf.so.1 ) to /usr/lib, with the mentioned results.

BTW, my LFS-8.3, constructed in this very unusual way, is now working as
expected !

I hope this information can be usefull !

Kind regards,
Edgar
--
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://e
Continue reading on narkive:
Loading...