Current-Users archive

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

Re: crossbuild of -current amd64 from Darwin9.3 failed



Alistair Crooks wrote:
> On Sat, Jun 28, 2008 at 11:54:48PM +1000, Simon Burge wrote:
> > Quentin Garnier wrote:
> > 
> > > I've tracked this down to libiberty, which the tools version of
> > > mdsetimage is linked with.  It includes a GNU implementation of getopt,
> > > and apparently the linker on Mac OS X get confused using optind and
> > > optarg from one implementation and getopt from the other (the other
> > > implementation being the libc).  Of course that leads to interesting
> > > results.
> > 
> > I mentioned this in
> > 
> >   http://mail-index.netbsd.org/tech-toolchain/2008/02/04/msg000025.html
> > 
> > and again in
> > 
> >   http://mail-index.netbsd.org/tech-toolchain/2008/06/09/msg000220.html
> > 
> > (and followups) but never found a proper fix for this.  I just remove
> > the "-v" from the mdsetimage call on my MacOS box.
> 
> The attached patch does that for me on Leper 10.5.4 - it's a bit gross,
> though.

That works for me as a short term thing (say to get it cross-building on
MacOS for our next release if the problem isn't fixed by then) - I did
take the simple way and just remove it from all cases since the info it
prints isn't overly useful.

I'm still rather curious to see if there's both a proper and (even
relatively) clean fix to the original problem.

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index