devel/libffi build broken for head -r363123 32-bit powerpc contexts (poudriere bulk): error: __int128 is not supported on this target

Mark Millard marklmi at yahoo.com
Mon Jul 20 23:33:34 UTC 2020



On 2020-Jul-20, at 16:13, Piotr Kubaj <pkubaj at anongoth.pl> wrote:
> 
> Thanks for your report. I'm currently testing whether powerpc(64) on
> 12.1 and head can build with this patch
> https://github.com/libffi/libffi/commit/01a75ed76ea7e57f1b7a5c183e2b1e890e6aa0fd.patch

FYI: I did the powerpc64 bulk build first and it had
no problems. As far as libffi goes, __int128 exists for
powerpc64. I'm not implying that __int128 should be
used for powerpc64.

I'll note that, depending on where/how float128 is
used,

typedef char float128[16] __attribute__((aligned(16)));

use as float128 might decay to a pointer in some contexts,
unlike what __float128 or __int128 would have done.


> On 20-07-20 15:27:01, Mark Millard wrote:
>> This resulted in: Failed: 1   Skipped: 181
>> 
>> # poudriere jail -l
>> JAILNAME      VERSION      ARCH              METHOD TIMESTAMP           PATH
>> FBSDpowerpc   13.0-CURRENT powerpc           null   2019-12-31 01:21:28 /usr/obj/DESTDIRs/clang-powerpc-installworld-poud
>> FBSDpowerpc64 13.0-CURRENT powerpc.powerpc64 null   2020-01-01 15:22:36 /usr/obj/DESTDIRs/clang-powerpc64-installworld-poud
>> 
>> # svnlite info /usr/ports/
>> Path: /usr/ports
>> Working Copy Root Path: /usr/ports
>> URL: svn://svn.freebsd.org/ports/head
>> Relative URL: ^/head
>> Repository Root: svn://svn.freebsd.org/ports
>> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
>> Revision: 542111
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: vanilla
>> Last Changed Rev: 542111
>> Last Changed Date: 2020-07-12 21:32:18 -0700 (Sun, 12 Jul 2020)
>> 
>> That gets the errors:
>> 
>> --- src/powerpc/ffi.lo ---
>> libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -O2 -pipe -g -fstack-protector-strong -fno-strict-aliasing -Wall -fexceptions -MT src/powerpc/ffi.lo -MD -MP -MF src/powerpc/.deps/ffi.Tpo -c ../src/powerpc/ffi.c  -fPIC -DPIC -o src/powerpc/.libs/ffi.o
>> --- src/powerpc/ffi_sysv.lo ---
>> libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -O2 -pipe -g -fstack-protector-strong -fno-strict-aliasing -Wall -fexceptions -MT src/powerpc/ffi_sysv.lo -MD -MP -MF src/powerpc/.deps/ffi_sysv.Tpo -c ../src/powerpc/ffi_sysv.c  -fPIC -DPIC -o src/powerpc/.libs/ffi_sysv.o
>> --- src/powerpc/ffi.lo ---
>> In file included from ../src/powerpc/ffi.c:33:
>> ../src/powerpc/ffi_powerpc.h:65:9: error: __int128 is not supported on this target
>> typedef __int128 float128;
>>       ^
>> 1 error generated.
>> --- src/powerpc/ffi_sysv.lo ---
>> In file included from ../src/powerpc/ffi_sysv.c:35:
>> ../src/powerpc/ffi_powerpc.h:65:9: error: __int128 is not supported on this target
>> typedef __int128 float128;
>>       ^
>> 1 error generated.
>> --- src/powerpc/sysv.lo ---
>> 
>> For reference:
>> 
>> =>> Building devel/libffi
>> build started at Mon Jul 20 14:47:19 PDT 2020
>> port directory: /usr/ports/devel/libffi
>> package name: libffi-3.3
>> building for: FreeBSD FBSDG5L 13.0-CURRENT FreeBSD 13.0-CURRENT powerpc
>> maintained by: zeising at FreeBSD.org
>> Makefile ident:      $FreeBSD: head/devel/libffi/Makefile 541239 2020-07-04 22:15:48Z pkubaj $
>> Poudriere version: 3.3.99.20200326
>> Host OSVERSION: 1300101
>> Jail OSVERSION: 1300101
>> . . .
>> #### /usr/ports/Mk/Scripts/ports_env.sh ####
>> _CCVERSION_921dbbb2=FreeBSD clang version 10.0.1 (git at github.com:llvm/llvm-project.git llvmorg-10.0.1-rc2-0-g77d76b71d7d) Target: powerpc-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin
>> _ALTCCVERSION_921dbbb2=none
>> _CXXINTERNAL_acaad9ca=FreeBSD clang version 10.0.1 (git at github.com:llvm/llvm-project.git llvmorg-10.0.1-rc2-0-g77d76b71d7d) Target: powerpc-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--enable-new-dtags" "-m" "elf32ppc_fbsd" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
>> . . .

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ports mailing list