Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2021 07:19:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 256141] lang/python38: Fails to install without LIBFFI
Message-ID:  <bug-256141-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256141

            Bug ID: 256141
           Summary: lang/python38: Fails to install without LIBFFI
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: majo-bugs.freebsd.org@cerny.sk
             Flags: maintainer-feedback?(python@FreeBSD.org)
          Assignee: python@FreeBSD.org

When building lang/python38 without LIBFFI option (Use libffi from ports
instead of bundled version) it fails to install:

    =3D=3D=3D>  Installing for python38-3.8.10
    =3D=3D=3D>  Checking if python38 is already installed
    =3D=3D=3D>   Registering installation for python38-3.8.10
    pkg-static: Unable to access file
/tmp/portbuild/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/l=
ib-dynload/_ctypes.cpython-38.so:No
such file or directory
    *** Error code 1

The error is probably a result of the previous build error (fatal error:
'ffi.h' file not found):

    building '_ctypes' extension
    cc -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG =
-O2
-pipe -march=3Dsandybridge -fstack-protector-strong -fno-strict-aliasing -s=
td=3Dc99
-Wextra -Wno-unused-result -Wno-unused-parameter
-Wno-missing-field-initializers -Wstrict-prototypes
-Werror=3Dimplicit-function-declaration -I./Include/internal -I./Include -I.
-I/usr/local/include
-I/tmp/portbuild/usr/ports/lang/python38/work/Python-3.8.10/Include
-I/tmp/portbuild/usr/ports/lang/python38/work/Python-3.8.10 -c
/tmp/portbuild/usr/ports/lang/python38/work/Python-3.8.10/Modules/_ctypes/_=
ctypes.c
-o
build/temp.freebsd-12.2-RELEASE-p6-amd64-3.8/tmp/portbuild/usr/ports/lang/p=
ython38/work/Python-3.8.10/Modules/_ctypes/_ctypes.o
/tmp/portbuild/usr/ports/lang/python38/work/Python-3.8.10/Modules/_ctypes/_=
ctypes.c:107:10:
fatal error: 'ffi.h' file not found
    #include <ffi.h>
             ^~~~~~~
    1 error generated.

    Python build finished successfully!

I am using FreeBSD 12.2 on amd64:

    # uname -a
    FreeBSD portbuild 12.2-RELEASE-p6 FreeBSD 12.2-RELEASE-p6 GENERIC  amd64

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256141-7788>