Stefan
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
directory (intl).
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[2]: 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[2]: Leaving directory
`/otis/software/source/gcc-4.1.1/cross-gcc/libcpp'
make[2]: Entering directory `/otis/software/source/gcc-4.1.1/cross-gcc/gcc'
make[2]: *** No rule to make target `all'. Stop.
make[2]: Leaving directory `/otis/software/source/gcc-4.1.1/cross-gcc/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: 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.
/software/source/gcc-4.1.1/cross-gcc/./gcc/xgcc -B/software/source/gcc
-4.1.1/cross-gcc/./gcc/ -B/usr/local/sparc-linux/bin/
-B/usr/local/sparc-linux/l
ib/ -isystem /usr/local/sparc-linux/include -isystem
/usr/local/sparc-linux/sys-
include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -W
strict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem
./includ
e -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_
libc -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl
-I../.
./gcc/../libcpp/include -fexceptions -c ../../gcc/unwind-dw2.c -o
libgcc/./unw
ind-dw2.o
In file included from ./gthr-default.h:1,
from ../../gcc/gthr.h:114,
from ../../gcc/unwind-dw2.c:42:
../../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.
Regards
Jason
-----Original Message-----
From: openbios-bounces(a)openbios.org
[mailto:openbios-bounces@openbios.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
OpenBIOS
* Armistead, Jason <Jason.Armistead(a)otis.com> [060610 15:17]:
> 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.
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..
sparc-linux-gcc -v
Using built-in specs.
Target: sparc-linux
Configured with:
/data/rpmbuild/BUILD/crosstool-0.42/build/gcc-4.1.0-glibc-2.3.2/sparc-linux/
gcc-4.1.0/configure
--target=sparc-linux --host=x86_64-host_unknown-linux-gnu
--prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.2/sparc-linux
--with-headers=/opt/crosstool/gcc-4.1.0-glibc-2.3.2/sparc-linux/sparc-linux/
include
--with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.2/sparc-linux/sparc-l
inux
--disable-nls --enable-threads=posix --enable-symvers=gnu
--enable-__cxa_atexit --enable-languages=c,c++ --enable-shared
--enable-c99 --enable-long-long
Thread model: posix
gcc version 4.1.0
Stefan
--
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/
--
OpenBIOS http://openbios.org/
Mailinglist: http://lists.openbios.org/mailman/listinfo
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.
Thanks
Jason
I'm adding Sparc64 support, now we get this far:
OpenBIOS for Sparc64
boot arg = 0x1ff004b8000
00000000-08000000
RAM 128 MB
Unhandled Exception 0x0000000000000000
PC = 0x000001fff0017314 NPC = 0x000001fff0017318
Stopping execution
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[1]: *** [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!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/