On Thu, Jul 16, 2020 at 10:24 PM Ken Moffat <zarniwh...@ntlworld.com> wrote:
>
> On Thu, Jul 16, 2020 at 07:35:47PM +0200, Alexey Orishko wrote:
> > Hi guys,
> >
> > I have a problem building meson (chapter 6.53) in LFS 9.1. I've tried the
> > original meson version and the one from the LFS dev branch (v.0.55.0). I
> > got the following error in v.0.55.0:
> >
> > python3 setup.py build
> > Traceback (most recent call last):
> >   File "setup.py", line 24, in <module>
> >     from setuptools import setup
> >   File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 20,
> > in <module>
> >     from setuptools.dist import Distribution, Feature
> >   File "/usr/lib/python3.8/site-packages/setuptools/dist.py", line 35, in
> > <module>
> >     from setuptools import windows_support
> >   File "/usr/lib/python3.8/site-packages/setuptools/windows_support.py",
> > line 2, in <module>
> >     import ctypes
> >   File "/usr/lib/python3.8/ctypes/__init__.py", line 7, in <module>
> >     from _ctypes import Union, Structure, Array
> > ModuleNotFoundError: No module named '_ctypes'
> >
> > Quick web search indicated that on ubuntu such a problem could be solved by
> > installing libffi-dev. I see only one reference to libffi in LFS and it was
> > built successfully. I was unable to find any threads in the forum, thus I
> > wonder if anyone could help to sort it out.
> >
> > Regards,
> > Alexey
>
> I don't have any obvious suggestions for fixing this, but a couple
> of comments:
>
> First, randomly updating to the latest version of a package which
> did not build (meson in this case) might bring its own problems.  On
> very rare occasions a newer version does solve the problem, but most
> of the time the problem will turn out to be elsewhere.
>
> For libffi, you should have
>
> /usr/include/ffi.h
> /usr/include/ffitarget.h
> /usr/lib/libffi.so
> /usr/lib/libffi.so.7
> /usr/lib/libffi.so.7.1.0
> /usr/lib/pkgconfig/libffi.pc
>
> If any of those are missing then the libffi install is not good.

Yep, files were missing. Thanks for pointing out the place to check.
After fixing build script both libffi and meson are built ok.

> Hmm, libffi shares the same problem as gmp (it makes assumptions
> about what the CPU supports, and on low-end intel CPUs (typically,
> those branded celeron or pentium) it might be a bit too optimistic
> about what op-codes are available.  No idea if that could be
> relevant to your problem.
>
> ĸen
Just for reference, I build on Intel Core i9-9900K.

Regards,
Alexey
-- 
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

Reply via email to