Subject: Re: Compiling netbsd-2-0-2-RELEASE and netbsd-2-0
To: Liam J. Foy <liamfoy@sepulcrum.org>
From: Bartek Krawczyk <bkrawczyk@op.pl>
List: netbsd-users
Date: 06/10/2005 15:27:40
Liam J. Foy wrote:
> On Fri(10)/Jun/05 - , Bartek Krawczyk wrote:
> 
>>Liam J. Foy wrote:
>>
>>>On Fri(10)/Jun/05 - , Bartek Krawczyk wrote:
>>>
>>>
>>>>I tried to compile netbsd-2-0-2-RELEASE from source and I get similar
>>>>error like with netbsd-2-0:
>>>>
>>>>#   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.
>>>>
>>>>
>>>>Any suggestions? I tried to recompile tools but it hasn't brought any
>>>>effect. Has anyone managed to build NetBSD (and which version) from
>>>>source on macppc?
>>>>-- 
>>>>Bartek Krawczyk
>>>>GG: 2094683
>>>>JID: bkrawczyk@jabberpl.org
>>>
>>>
>>>Looks like a memory problem to me. I had similar problems. My solution was to
>>>replace the bad memory.
>>> 
>>
>>It did brake in this place about 2 times, I tried to compile it again
>>and now it says that box.h is missing, so I get another error. Why?
>>Isn't netbsd-2-0-2-RELEASE supposed to be a stable release or something?
>>Bad memory - I haven't had any problems with that. I had Gentoo so my
>>iBook did much compiling and I compiled many things from pkgsrc (xorg,
>>mozilla etc.) so I don't think and hope it's not the problem.
> 
> 
> Random segmentation errors, in my experience, are memory problems. Show
> me the 'box.h' error message...
> 
I can't because I tried to build again and what's funny - now I get this
error and not the one with box.h (second time):

#   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

(...)

*** Failed target:  lex.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/preproc/eqn/lex.cpp
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/usr.bin/groff/src/preproc/eqn

*** Failed target:  dependall
*** Failed command: cd /usr/src/gnu/usr.bin/groff/src/preproc/eqn;
/usr/tools-current/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/usr.bin/groff/src/preproc/eqn

*** Failed target:  dependall-eqn
*** Failed command: targ=dependall;dir=eqn; case "$dir" in /*) echo
"$targ ===> $dir"; cd "$dir"; /usr/tools-current/bin/nbmake
"_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===>
gnu/usr.bin/groff/src/preproc/$dir"; cd
"/usr/src/gnu/usr.bin/groff/src/preproc/$dir";
/usr/tools-current/bin/nbmake
"_THISDIR_=gnu/usr.bin/groff/src/preproc/$dir/" $targ; ;; esac
*** Error code 1

(...)*** Failed target:  dependall-gnu
*** Failed command: targ=dependall;dir=gnu; case "$dir" in /*) echo
"$targ ===> $dir"; cd "$dir"; /usr/tools-current/bin/nbmake
"_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd
"/usr/src/$dir"; /usr/tools-current/bin/nbmake "_THISDIR_=$dir/" $targ;
;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  do-build
*** Failed command: (cd /usr/src && /usr/tools-current/bin/nbmake
dependall BUILD_tools=no BUILD_lib=no)
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: (cd /usr/src && /usr/tools-current/bin/nbmake do-build)
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make build
*** BUILD ABORTED ***


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