Date: Mon, 30 Jul 2018 23:57:33 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 230212] graphics/freeimage: fail to link with lld as /usr/bin/ld on i386 Message-ID: <bug-230212-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230212 Bug ID: 230212 Summary: graphics/freeimage: fail to link with lld as /usr/bin/ld on i386 Product: Ports & Packages Version: Latest Hardware: i386 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: emaste@freebsd.org Blocks: 214864 The migration to the LLVM project's lld linker as the system linker (/usr/bin/ld) for FreeBSD is in progress - it is the case for arm64 and amd= 64 today, and i386 will switch once ports issues are addressed - see exp-run in PR214864. Linking graphics/freeimage with lld produces errors of the form: /usr/bin/ld: error: can't create dynamic relocation R_386_PC32 against symb= ol: malloc in readonly segment; recompile object files with -fPIC >>> defined in /lib/libc.so.7 >>> referenced by BitmapAccess.cpp >>> ./Source/FreeImage/BitmapAccess.o:(FreeImage_Aligned_Mall= oc(unsigned int, unsigned int)) /usr/bin/ld: error: can't create dynamic relocation R_386_32 against symbol: .L.str.1 in readonly segment; recompile object files with -fPIC >>> defined in ./Source/FreeImage/BitmapAccess.o >>> referenced by BitmapAccess.cpp >>> ./Source/FreeImage/BitmapAccess.o:(FreeImage_Aligned_Mall= oc(unsigned int, unsigned int)) http://package18.nyi.freebsd.org/data/headi386PR214864-default/2018-07-30_1= 8h09m59s/logs/errors/freeimage-3.16.0_6.log Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214864 [Bug 214864] [exp-run] test build with lld as /usr/bin/ld --=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-230212-7788>