On 12/3/19 5:05 PM, manp...@gmail.com wrote:
> On 12/1/19 5:24 PM, manp...@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.)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to