tech-toolchain archive

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

Re: Still not cross-building netbsd5-sparc64 on i386



[Moved to tech-toolchain]

> > Note that cross-compiling sparc64 current under Solaris has been
> > broken for a long time (at least a year, I've been trying now and
> > then since last Christmas).  Detaails available upon request.
>
> what's broken?  please file PRs or email tech-toolchain or me. :)

OK, I will retrace my steps and workarounds during the upcoming
Christmas break, then post them to tech-toolchain.

Here's the current showstopper -- it breaks compiling the tools:

<shelob:/home/volker,7482> uname -a
SunOS shelob 5.10 Generic_141414-02 sun4v sparc SUNW,Sun-Fire-T1000

(yes, it's old -- I'll set up a newer development box with S10 U9 soon)


===> build.sh command:    build.sh -ou -j20 -O /home/volker/NetBSD/obj -T 
/home/volker/NetBSD/tools -N 2 -m sparc64 tools
===> build.sh started:    Sun Nov 28 23:27:31 MET 2010
===> NetBSD version:      5.99.40
===> MACHINE:             sparc64
===> MACHINE_ARCH:        sparc64
===> Build platform:      SunOS 5.10 sun4v
===> HOST_SH:             /home/volker/NetBSD/bin/sh

[...]

--- mandoc ---
#      link  mandoc/mandoc
cc -O  -DOSNAME=\"NetBSD\ 5.99\" -DHAVE_CONFIG_H -I. 
-I/home/volker/NetBSD/obj/tools/compat 
-I/home/volker/NetBSD/obj/tools/compat/include  
-I/data/NetBSD/current/src/tools/mandoc/../compat -DHAVE_NBTOOL_CONFIG_H=1  
-D_FILE_OFFSET_BITS=64   -DVERSION=\"1.10.5\" -DUGLY   -o mandoc main.lo 
mdoc_term.lo chars.lo term.lo term_ascii.lo term_ps.lo tree.lo compat.lo 
man_term.lo html.lo mdoc_html.lo man_html.lo out.lo man_macro.lo man.lo 
man_hash.lo man_validate.lo man_action.lo mandoc.lo man_argv.lo mdoc_macro.lo 
mdoc.lo mdoc_hash.lo mdoc_strings.lo mdoc_argv.lo mdoc_validate.lo 
mdoc_action.lo lib.lo att.lo arch.lo vol.lo msec.lo st.lo roff.lo 
-L/home/volker/NetBSD/obj/tools/compat -lnbcompat -lz
Undefined                       first referenced
 symbol                             in file
MAX                                 term_ps.lo
ld: fatal: Symbol referencing errors. No output written to mandoc


In line #360, src/external/bsd/mdocml/dist/term_ps.c uses the MAX()
macro, but nothing is pulled in that would define this macro.

While it is trivial to locally add a macro definition to the offending
file, I don't want to do that.  My goal is to have a read-only source 
tree straight from CVS with no local modifications, and to compile the 
distribution using only my personal user, no root privs anywhere.


Regards -- Volker
-- 
------------------------------------------------------------------------
Volker A. Brandt               Consulting and Support for Oracle Solaris
Brandt & Brandt Computer GmbH                   WWW: http://www.bb-c.de/
Am Wiesenpfad 6, 53340 Meckenheim                     Email: 
vab%bb-c.de@localhost
Handelsregister: Amtsgericht Bonn, HRB 10513              Schuhgröße: 46
Geschäftsführer: Rainer J. H. Brandt und Volker A. Brandt


Home | Main Index | Thread Index | Old Index