On Thu, Dec 05, 2019 at 06:02:39PM -0500, Brian Callahan wrote:
> Date: Thu, 5 Dec 2019 18:02:39 -0500
> From: Brian Callahan <call...@rpi.edu>
> To: Xiyue Deng <manp...@gmail.com>, ports@openbsd.org, Stuart Henderson
>  <s...@spacehopper.org>
> Subject: Re: Fails to build textproc/mupdf on mips64el/loongson
> User-Agent: Mozilla/5.0 (X11; OpenBSD amd64; rv:68.0) Gecko/20100101
>  Thunderbird/68.2.2
> 
> 
> 
> On 2019-12-05 6:00 PM, Brian Callahan wrote:
> > 
> > 
> > On 2019-12-05 5:55 PM, Stuart Henderson wrote:
> > > On 2019/12/04 16:35, Xiyue Deng wrote:
> > > > >     # https://marc.info/?l=openbsd-ports&m=156448467232400&w=2
> > > > >   # possible alignment issue?
> > > > > -MODULES +=    gcc4
> > > > > +MODULES +=    gcc4 lang/clang
> > > > >   MODGCC4_ARCHS =    armv7
> > > > >   MODGCC4_LANGS =    c
> > > > > +MODCLANG_ARCHS = mips64 mips64el
> > > > > +MODCLANG_LANGS = c
> > > > Thanks for the updated patch.  It's definitely clearner this way.
> > > > 
> > > > As it's now using clang from ports, it needs to build lang/clang first
> > > > which may take a few days on this loongson box.  Will report back as
> > > > soon as it's finished.
> > > hmm, actually can you skip the MODULES/MODCLANG_* change above and see
> > > if it works with base-gcc? I doubt it needs to build with a different
> > > compiler, just use the different linker..
> > 
> > base-gcc doesn't support the -fuse-ld= option. What you're suggesting
> > was already tried and unfortunately didn't work.
> > 
> 
> That is to say, it will link the font files with lld but link the code and
> font files together with bfd; the combination didn't work :(
>

Can confirm that I had tried that locally and didn't work as Brian
suggsted.  Will wait for LLVM to be built and report back (currently
~20% done :()

> ~Brian
> 
> > ~Brian
> > 
> > > > Just curious: Is it OK to just whitelist /usr/bin/clang?
> > > I think that would really be a last resort, we try to avoid it in ports.
> > > 
> > > > Also is there
> > > > a plan to add mips64* to base-clang archs?
> > > "when it's ready" :)
> > > 
> > 
> 

Attachment: signature.asc
Description: PGP signature

Reply via email to