After downloading GCC 4.1.1 (latest), I still get the same problem
Configure runs OK, but during make, while in the gcc directory, the
following message appears just as it is getting ready to move into the next
checking for .preinit_array/.init_array/.fini_array support... yes
checking if mkdir takes one argument... no
*** Configuration sparc-sun-sunos4.1.4 not supported
make: Entering directory `/otis/software/source/gcc-4.1.1/cross-gcc/intl'
And then when it got a bit further on, it died with the message
make: Leaving directory
make: Entering directory `/otis/software/source/gcc-4.1.1/cross-gcc/gcc'
make: *** No rule to make target `all'. Stop.
make: Leaving directory `/otis/software/source/gcc-4.1.1/cross-gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/otis/software/source/gcc-4.1.1/cross-gcc'
make: *** [all] Error 2
With GCC 3.4.6, it simply crashed and died once it identified
sparc-sun-sunos4.1.4 as not supported (this is output from the
gcc/config.gcc script) and it didn't continue on into other directories.
I note that you are using the target as "sparc-linux". I gave that a go,
rebuilding binutils and trying again to build gcc, and now I get a problem
about missing include files pthread.h and unistd.h.
ib/ -isystem /usr/local/sparc-linux/include -isystem
include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
strict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem
e -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
libc -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl
./gcc/../libcpp/include -fexceptions -c ../../gcc/unwind-dw2.c -o
In file included from ./gthr-default.h:1,
../../gcc/gthr-posix.h:43:21: error: pthread.h: No such file or directory
../../gcc/gthr-posix.h:44:20: error: unistd.h: No such file or directory
I'm thinking that I'm possibly missing glibc or similar, or else I need some
Linux header files. I'd better take a closer look at Dan Kegel's crosstool
- I only stayed away from it because it seemed that it didn't have very
good success for Sparc targets according to the target system build matrixes
on Dan Kegel's site.
Maybe there's a better "embedded sparc" target for binutils / gcc that
doesn't need so many headers, i.e. a version of GCC not actually targetted
at an operating system but for pure embedded systems use.
[mailto:firstname.lastname@example.org]On Behalf Of Stefan Reinauer
Sent: Saturday, 10 June 2006 11:21 PM
To: The OpenBIOS Mailinglist
Subject: Re: [OpenBIOS] Correct GCC configuration for cross-compiling
* Armistead, Jason <Jason.Armistead(a)otis.com> [060610 15:17]:
> Can someone please advise the right cross-gcc configure script settings
> are using to build OpenBIOS for sparc32 ?
> I'm on Solaris 10 (Sparc) and need to know what your OpenBIOS environment
> returns for "gcc -v"
> I tried to build GCC 3.4.6 for target "sparc-sun-sunos4.1.4" but am now
> wondering if perhaps I should be building it for "sparc-sun-elf" or
This should actually work fine.
> Please advise by sending me your "gcc -v" settings so I can get myself out
> of this mess.
Since this is on a linux system (using dan kegel's crosstool) I am not
sure whether it will help..
Using built-in specs.
--disable-nls --enable-threads=posix --enable-symvers=gnu
--enable-__cxa_atexit --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 4.1.0
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info(a)coresystems.de • http://www.coresystems.de/
Free your System - May the Forth be with you
Can someone please advise the right cross-gcc configure script settings they
are using to build OpenBIOS for sparc32 ?
I'm on Solaris 10 (Sparc) and need to know what your OpenBIOS environment
returns for "gcc -v"
I tried to build GCC 3.4.6 for target "sparc-sun-sunos4.1.4" but am now
wondering if perhaps I should be building it for "sparc-sun-elf" or similar.
Please advise by sending me your "gcc -v" settings so I can get myself out
of this mess.
I'm adding Sparc64 support, now we get this far:
OpenBIOS for Sparc64
boot arg = 0x1ff004b8000
RAM 128 MB
Unhandled Exception 0x0000000000000000
PC = 0x000001fff0017314 NPC = 0x000001fff0017318
This happens because there is no Forth dictionary, I'm using plainboot.
Forth dictionary doesn't compile:
Dumping final dictionary to 'obj-sparc64/openbios.dict'
Using source dictionary 'obj-sparc64/bootstrap.dict'
Compiling dictionary 1/2
Compiling dictionary 2/2
panic: Maximum include depth reached!
make: *** [obj-sparc64/openbios.dict] Error 1
I tried 32-bit values in types.h, but that didn't help. IA64 and AMD64 have
(u)int128_t, but I don't think Sparc64 has these.
VGA should work, but it doesn't, except for I/O port accesses. I found a bug
in Qemu's Sparc64 implementation, udivx and mulx didn't work at all.
This patch replaces patch-24.
Express yourself instantly with MSN Messenger! Download today it's FREE!