Subject: Re: cross building under FreeBSD succeccful
To: None <imura@ryu16.org>
From: Marcus Comstedt <marcus@idonex.se>
List: port-dreamcast
Date: 03/28/2001 17:15:16
>>>>> "R" == R Imura <imura@ryu16.org> writes:

  R> I got the answer!

  R> type this in your machine (not cross compiling)
  R> % cd /your_source_tree/src/lib/libposix && \
  R>  env CPP=/usr/libexec/cpp make
  R> and if you get "misaligned", it is.

  R> I was setting CPP as "$CC -print-prog-name=cpp", when cross-building,
  R> I should have prepared a wrapper script like /usr/bin/cpp.


Yup, this indeed seems to be it:

doreimon:/usr/local/src/basesrc/lib/libposix% uname -a
NetBSD doreimon.roxen.com 1.5S NetBSD 1.5S (DOREIMON) #14: Sat Mar 17 00:48:20 UTC 2001     marcus@doreimon.roxen.com:/usr/local/src/syssrc/sys/arch/dreamcast/compile/DOREIMON dreamcast
doreimon:/usr/local/src/basesrc/lib/libposix% env CPP=/usr/libexec/cpp make
creating chown.o
: Assembler messages:
:2: Warning: misaligned data
creating fchown.o
: Assembler messages:
:2: Warning: misaligned data
creating lchown.o
: Assembler messages:
:2: Warning: misaligned data
creating rename.o
: Assembler messages:
:2: Warning: misaligned data
building standard posix library
ranlib libposix.a
doreimon:/usr/local/src/basesrc/lib/libposix% rm obj/*
doreimon:/usr/local/src/basesrc/lib/libposix% make
creating chown.o
creating fchown.o
creating lchown.o
creating rename.o
building standard posix library
ranlib libposix.a
doreimon:/usr/local/src/basesrc/lib/libposix% 

Fascinating.


  // Marcus