Question about cross compiling sparc64 on i386

Harti Brandt brandt at
Fri Jan 30 04:44:07 PST 2004

On Fri, 30 Jan 2004, Simon Coggins wrote:

SC>Does anyone have a how-to or quick instructions on how to go about
SC>cross compiling sparc64 world/kernel on i386. I assumed it would be as
SC>easy as cd /usr/src && make TARGET_ARCH=sparc64 ...
SC>Once it finished  the installkernel on the ultra 5 didn't work becuase
SC>it couldn't find some modules it was looking to install. And
SC>installworld failed because it didn't build the tools to install (ala
SC>install binary).
SC>So if someone can point me in the right direction that would be good!

I did

MAKEOBJDIRPREFIX=/usr/obj/sparc TARGET=sparc64 TARGET_ARCH=sparc64 make
__MAKE_CONF=/dev/null makeworld

MAKEOBJDIRPREFIX=/usr/obj/sparc TARGET=sparc64 TARGET_ARCH=sparc64 make
__MAKE_CONF=/dev/null installworld DESTDIR=/usr/ultra

same for buildkernel and installkernel

to make a diskless boot world for my ULTRA1. This seems to work, except,
that the resulting world has some problems like /bin/ls dumping core.
I don't know whether this was a pilot error or there is something wrong
with cross compilation

harti brandt,
brandt at, harti at

More information about the freebsd-sparc64 mailing list