Re: Trouble building -current
Jochen Kunz <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.hp700,gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 7 Nov 2004 13:15:54 -0800 Michael Wolfson <[email protected]> wrote: > I've tried cross-compiling an hp700 snapshot from a 2.0_BETA sparc64 > system and from a MacOS X 10.3.5 system. They're the only hardware > I've got with enough horsepower/disk space to try this. > > compiling GENERIC kernel for hp700 fails "error: unrecognizable > insn" > http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=28065 This is a knowen problem. GCC has 64 bit bugs, at least the PA-RISC backend. This bug occures on all 64 bit build hosts. (I tried Alpha and UltraSPARC). Work arounds are to compile the affected file with an other optimization level or to use a 32 bit build host. (I use a 32 bit kernel on my Ultra 5 with sparc userland for this purpose.) As I am no GCC expert I have to leave the real solution open for the toolchain gurus. Beware: Even on 32 bit machines only -O0 can be trusted. You may use -O1 or -O2 without problems in the first sight, but be prepared for some funky compiler bugs that show up at runtime of the generated binaries. > cross-building of hp700 from Darwin fails when using "join" > http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=28075 Don't know about this. Usually I do hp700 buils on SGI IRIX and sometimes on sparc64 with 32 bit kernel. > Any suggestions appreciated (or a self-hosting snapshot that works on > my 735/99). There should be somthing in the snapshoot area of ftp://ftp.netbsd.org/ I hope to get some time for NetBSD in the next weeks to build a new snapshoot and finalize some pending work. -- tschüß, Jochen Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/