http://package18.nyi.freebsd.org/build.html?mastername=headi386PR214864-default&build=2019-01-05_21h00m02s http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_21h00m02s/logs/errors/p5-Data-MessagePack-Stream-0.07_2.log ld: error: relocation R_386_PC32 cannot be used against symbol malloc; recompile with -fPIC >>> defined in /lib/libc.so.7 >>> referenced by unpack.c:183 >>> unpack.o:(msgpack_unpacker_init) in archive msgpack-0.5.7/src/.libs/libmsgpack.a ld: error: relocation R_386_PC32 cannot be used against symbol malloc; recompile with -fPIC >>> defined in /lib/libc.so.7 >>> referenced by unpack.c:188 >>> unpack.o:(msgpack_unpacker_init) in archive msgpack-0.5.7/src/.libs/libmsgpack.a ld: error: relocation R_386_PC32 cannot be used against symbol msgpack_zone_new; recompile with -fPIC >>> defined in msgpack-0.5.7/src/.libs/libmsgpack.a(zone.o) >>> referenced by unpack.c:194 >>> unpack.o:(msgpack_unpacker_init) in archive msgpack-0.5.7/src/.libs/libmsgpack.a ...
lld has been enabled as system linker for i386 on stable/12 in advance of 12.1 (base svn r350297, a few minutes ago)
builds on i386 with CFLAGS_i386=-fPIC added and BROKEN_i386 removed
-fPIC is also needed for aarch64
Created attachment 215458 [details] patch
Comment on attachment 215458 [details] patch Patch LGTM
A commit references this bug: Author: mikael Date: Thu Jun 25 14:00:15 UTC 2020 New revision: 540392 URL: https://svnweb.freebsd.org/changeset/ports/540392 Log: devel/p5-Data-MessagePack-Stream: fix build on i386 and aarch64 PR: 234868 Reported by: emaste Reviewed by: emaste Approved by: kuriyama (maintainer, timeout) Changes: head/devel/p5-Data-MessagePack-Stream/Makefile