Subject: Building NetBSD on macppc.
To: None <port-macppc@NetBSD.org>
From: Bartek Krawczyk <bkrawczyk@op.pl>
List: port-macppc
Date: 06/10/2005 17:09:11
Has anyone managed to do that? I was trying to build -current for the
past week (kernel crashed into ddb) and this week I've been trying to
compile netbsd-2-0 and netbsd-2-0-2-RELEASE and I got Segmentation Fault
when building userland.
This is my checkout command: cvs checkout -rnetbsd-2-0-2-RELEASE -P src
I had tried to do the same with -rnetbsd-2-0 but it also ended with a
segfault:

#   compile  libgroff/fatal.o
/usr/tools-current/bin/powerpc--netbsd-c++ -mcpu=7450 -mtune=7450
-maltivec -mabi=altivec -O2 -pipe -DHAVE_CONFIG_H
-I/usr/src/gnu/dist/groff/src/include
-I/usr/src/gnu/usr.bin/groff/src/include -Werror -fno-rtti
-fno-exceptions  -nostdinc++ -isystem-cxx
/usr/NetBSD-current/usr/include/g++    -nostdinc -isystem
/usr/NetBSD-current/usr/include -c
/usr/src/gnu/dist/groff/src/libs/libgroff/fatal.cpp -o fatal.o.tmp
/usr/src/gnu/dist/groff/src/libs/libgroff/fatal.cpp:28: internal
compiler error: Segmentation
   fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.

*** Failed target:  fatal.o
*** Failed command: /usr/tools-current/bin/powerpc--netbsd-c++
-mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -O2 -pipe -DHAVE_CONFIG_H
-I/usr/src/gnu/dist/groff/src/include
-I/usr/src/gnu/usr.bin/groff/src/include -Werror -fno-rtti
-fno-exceptions -nostdinc++ -isystem-cxx
/usr/NetBSD-current/usr/include/g++ -nostdinc -isystem
/usr/NetBSD-current/usr/include -c
/usr/src/gnu/dist/groff/src/libs/libgroff/fatal.cpp -o fatal.o.tmp
*** Error code 1

Stop.
(...)

I'm pretty sure my RAM is fine because I had had Gentoo before I
installed Debian, so I did a lot of compiling - no problems there.
I've tried to build the userland two more times today and now instead of
getting segfaults it crashes with this error:


#   compile  eqn/lex.o
/usr/tools-current/bin/powerpc--netbsd-c++ -mcpu=7450 -mtune=7450
-maltivec -mabi=altivec -O2 -pipe -DHAVE_CONFIG_H
-I/usr/src/gnu/dist/groff/src/include
-I/usr/src/gnu/usr.bin/groff/src/include -Werror -fno-rtti
-fno-exceptions  -nostdinc++ -isystem-cxx
/usr/NetBSD-current/usr/include/g++   -nostdinc -isystem
/usr/NetBSD-current/usr/include  -c
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:25:21: eqn_tab.h: No
such file or directory
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:60: error: `OVER' was not
   declared in this scope
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:61: error: `SMALLOVER'
was not
   declared in this scope
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:62: error: `SQRT' was not
   declared in this scope
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:63: error: `SUB' was not
   declared in this scope
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:64: error: `SUP' was not
   declared in this scope
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:65: error: `LPILE' was not
   declared in this scope
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:66: error: `RPILE' was not
   declared in this scope
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:67: error: `CPILE' was not
   declared in this scope
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:68: error: `PILE' was not
   declared in this scope
/usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:69: error: `LEFT' was not
(...)

I thought a stable release like 2.0.2 should build without any suprises.
The most suprising thing as for a stable release is that a file is
missing :) And what's even more funny - the file exists, in:
/usr/obj-current/tools/groff/build/src/preproc/eqn/eqn_tab.h
/usr/obj-current/gnu/usr.bin/groff/src/preproc/eqn/eqn_tab.h

Any ideas? Did anyone build any release of NetBSD on macppc and which
exactly?

-- 
Bartek Krawczyk
GG: 2094683
JID: bkrawczyk@jabberpl.org