Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Sep 2023 20:04:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 274056] devel/libffi: fix build with lld 17 on i386
Message-ID:  <bug-274056-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 274056
           Summary: devel/libffi: fix build with lld 17 on i386
           Product: Ports & Packages
           Version: Latest
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kbowling@freebsd.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(kbowling@freebsd.org)
          Assignee: kbowling@freebsd.org

As reported in bug 273753#c12, devel/libffi fails to link with lld 17, at l=
east
on i386:

libtool: link: cc -shared  -fPIC -DPIC  src/.libs/prep_cif.o src/.libs/type=
s.o
src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o
src/.libs/tramp.o src/x86/.libs/ffi.o src/x86/.libs/sysv.o    -O2
-fstack-protector-strong -Wl,--version-script -Wl,libffi.map
-fstack-protector-strong   -Wl,-soname -Wl,libffi.so.8 -o .libs/libffi.so.8=
.1.2
ld: error: version script assignment of 'LIBFFI_BASE_8.0' to symbol
'ffi_java_raw_call' failed: symbol not defined
ld: error: version script assignment of 'LIBFFI_CLOSURE_8.0' to symbol
'ffi_prep_java_raw_closure' failed: symbol not defined
ld: error: version script assignment of 'LIBFFI_CLOSURE_8.0' to symbol
'ffi_prep_java_raw_closure_loc' failed: symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)

This is because the symbols it complains about are not implemented on i386,=
 due
to the FFI_NATIVE_RAW_API define being nonzero.

Fix it by adding more #if statements to libffi.map.in.

--=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-274056-7788>