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

Re: mouseemu



On Thu, Aug 02, 2007 at 10:04:14PM +0200, Rolf Anders wrote:
> On Tue, Jul 31, 2007 at 11:04:43PM +0200, Christian T. Steigies wrote:
> > I finally got my efika/powerpc board to work, it was extremely easy to
> > install etch onto it, once I had the correct hardware. I built a gcc-3.3
> > cross-compiler, but building gcc 4.1 or 4.2 failed so far.
> 
> [...]
> 
> > than native compiling on the mac, I hope. Has anybody build a recent
> > cross-compiler on a powerpc?
> 
> I built gcc 4.1 and binutils 2.17 following the instructions in
> debian/README.cross in the corresponding source packages (from etch).
> Where did your build fail?

/data/cross/m68k/gcc-4.1-4.1.2/build/./gcc/xgcc
/-B/data/cross/m68k/gcc-4.1-4.1.2/build/./gcc/ -B/usr/m68k-linux-gnu/bin/
/-B/usr/m68k-linux-gnu/lib/ -isystem /usr/m68k-linux-gnu/include -isystem
//usr/m68k-linux-gnu/sys-include -O2  -O2 -O2  -DIN_GCC -DCROSS_COMPILE   -W
//-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
//-Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
//-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
//-I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include
//-I../../src/gcc/../libcpp/include  -fexceptions -fvisibility=hidden
//-DHIDE_EXPORTS -c ../../src/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from ./gthr-default.h:1,
                 from ../../src/gcc/gthr.h:114,
                 from ../../src/gcc/unwind-dw2.c:42:
../../src/gcc/gthr-posix.h:43:21: error: pthread.h: No such file or
directory
../../src/gcc/gthr-posix.h:44:20: error: unistd.h: No such file or directory

And pthread.h as well as unistd.h exist in /usr/incluce as well as in
/usr/m68k-linux-gnu/include/

I always use the source from unstable (except for gcc-3.3), maybe I should
have tried etch instead, good point.
 
I managed to build gcc-4.2 now, I guess I don't need 4.1 anymore then. I am
upgrading the efika to testing/unstable, mixing gcc versions does not work
too well, apt complains a lot about broken depends. The next step is to get
crosscc/distcc running and see if this is actually faster than native
compiling on my mac at least.

Christian



Reply to: