pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cross compiling for evbarm on amd64



On Sat, 25 May 2019 11:05:59 +0530
Mayuresh <mayuresh%acm.org@localhost> wrote:

> On Thu, May 23, 2019 at 01:52:27PM +0530, Mayuresh wrote:
> > configure: error: in
> > `/usr/pkgsrc/devel/binutils/work/binutils-2.26.1': configure:
> > error: C compiler cannot create executables See `config.log' for
> > more details.
> 
> After some native builds, when I returned to cross compilation the
> errors have changed.
> 
> libnbcompat gives the following error now:
> 
> => Configuring and building libnbcompat
> checking build system type... x86_64--netbsd
> checking host system type... Invalid configuration `evbarm--netbsd':
> machine `evbarm-' not recognized
> configure: error: /bin/sh ./config.sub evbarm--netbsd failed
> 
> Earlier I was also getting a cyclic dependency error between gcc2 and
> cwrappers, but somehow not able to reproduce it now.
> 
> Please advise.
> 
> Mayuresh

I don't know how well cross-compile pkgsrc works, but years ago I was
trying to use a cross-compile to build various open source packages by
hand and it sucked big time, because much of the software
configure/build scripts were not designed for cross-compilation, so
something somewhere was always failing. In the end, I always build
natively, may a take a bit of time on slow platforms like Sun Ultra10,
but saves a lot of hassle on build errors like your describe above.


Home | Main Index | Thread Index | Old Index