Tuesday, December 03, 2019

Re: Fails to build textproc/mupdf on mips64el/loongson

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEiKQfd6o81mjI+LWALell7WOCXJMFAl3nE1MACgkQLell7WOC
XJPrNg//YZxg1HuBsfjx9VfWsIaIUC+rHcwJLmxxS17iThHNIjVKnEpLBsnbaC5i
MHDQrEJyQdeVY2LPjaPsY3t6r75TuSTubkBohe1KtMMzPZUepc066TKBbiU65lvX
YJhrMLUw0KetHgE+OVfyv2GlwNxlmfHCC7Iw0yhWrCOOgTmDNUF5kwORlTRgxdai
FEelgm8Wlsj9Utk0Y8sglKMk934HNZi3JR7JfnzN+vCgmx3xT4+S4C4yY4VWWSvR
qnSowpLaCpwTIOqFU1ikSTf/+b7Z5VtJjz7yGW+Q0WldNrq9pv7PcNqu1flfFW9E
o5/nCmbFU4MCA3g7bChpP3gvdlFebm0vuwDHPuWskb3SzZoib3g4GYCMBC+1A+mM
Oar5fY3cFk0jqfGHkAfQRpIYZ/qKtfq6rXl24k/JbPnsT4DyK/hWJ/AasoM15IU5
rvJU2aN3E/ldbFaI6g/3mQ21fiVEiEzr6BZFUTUCsNiXZC502xQTn0CPfHxxaSjt
KpFuguP/mKkZKwXpkCWfZR8T4JF65hJtLtmJqgZE6k0/Wtv4OGh74RSpgywH2mgo
Ypdo1rP0HyTlogM8uWciB2QkUJx5TVveoiSxEmv01VaaI9p3dLNTPjx2mUGfJpl+
MUORqASKuu0TXJWk8OgDmjM9PNlGT6yRmgOjNkaM7/PJISi5vAc=
=xZMX
-----END PGP SIGNATURE-----
On 12/3/19 5:05 PM, manphiz@gmail.com wrote:
> On 12/1/19 5:24 PM, manphiz@gmail.com wrote:
>> Hi Ports maintainer,
>>
>> Hit another problem when trying to build textproc/mupdf, which says
>> failed to link 32-bit and 64-bit code:
>>
>> /usr/bin/ld: build/release/libmupdf.a(Dingbats.cff.o): warning: linking
>> PIC files with non-PIC files
>> /usr/bin/ld: build/release/libmupdf.a(Dingbats.cff.o): linking 32-bit
>> code with 64-bit code
>> /usr/bin/ld: failed to merge target specific data of file
>> build/release/libmupdf.a(Dingbats.cff.o)
>> /usr/bin/ld: build/release/libmupdf.a(NimbusMonoPS-Bold.cff.o): warning:
>> linking PIC files with non-PIC files
>> /usr/bin/ld: build/release/libmupdf.a(NimbusMonoPS-Bold.cff.o): linking
>> 32-bit code with 64-bit code
>> /usr/bin/ld: failed to merge target specific data of file
>> build/release/libmupdf.a(NimbusMonoPS-Bold.cff.o)
>>
>> The full build log is attached.
>>
>
> With help from Brian, I finally get it built (thanks a lot Brian!) The
> problem is that the default linker (ld.bfd) cannot handle the font
> archive format well and when linking with fonts and code archive so it
> gives the errors in the log. ld.lld is required to make this work.
> Also because the linker will be called through compiler, we need to
> explicitly use clang. The patch is attached. Please consider refine
> and submit. Thanks!
>

Adding maintainer to CC (forgot to do so in previous mail.)

No comments:

Post a Comment