* Re: MIPS cross on Sun problems
@ 2000-03-08 12:11 James Sandys-Lumsdaine
2000-03-09 16:56 ` Alexandre Oliva
2000-04-01 0:00 ` James Sandys-Lumsdaine
0 siblings, 2 replies; 6+ messages in thread
From: James Sandys-Lumsdaine @ 2000-03-08 12:11 UTC (permalink / raw)
To: gcc-help
Found the origin of the listed problems - my make wan't aliased to gmake as
I thought it would be. I also found an email saying to use --use-gnu-as and
--use-gnu-ld.
However, I'm still struggling to get the thing to work.
What headers do I need, if any, for the --with-headers option? Do I pinch
some SGI CC headers? Do I need to install gcc on an SGI Mips then pinch
them?
I have tried using SunUnixgcc headers and SGI headers and the whole thing
falls apart at:
...
_m16stubsf10
_m16stubdf0
_m16stubdf1
_m16stubdf2
_m16stubdf5
_m16stubdf6
_m16stubdf9
_m16stubdf10
rm -f libgcc1.S
mv tmplibgcc1.a libgcc1-asm.a
echo '#define FLOAT' > fp-bit.c
echo '#ifdef __MIPSEL__' >> fp-bit.c
echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
echo '#endif' >> fp-bit.c
echo '#define US_SOFTWARE_GOFAST' >> fp-bit.c
....
gmake[3]: Entering directory `/work/jas/gcc/build-gcc/gcc'
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
_floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
_fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi
_fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab
_clear_cache _trampoline __main _exit _ctors _pure; \
do \
echo ${name}; \
/work/jas/gcc/build-gcc/gcc/xgcc -B/work/jas/gcc/build-gcc/gcc/
-B/work/jas/gcc/made/mips-elf/bin/ -I/work/jas/gcc/made/mips-elf/include -O2
-DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -I./include -G 0 -g1
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include -c
-DL${name} \
../../gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
mips-elf-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
In file included from include/sys/types.h:19,
from include/unistd.h:20,
from ../../gcc-2.95.2/gcc/libgcc2.c:42:
include/sys/isa_defs.h:340: #error "ISA not supported"
gmake[3]: *** [libgcc2.a] Error 1
gmake[3]: Leaving directory `/work/jas/gcc/build-gcc/gcc'
gmake[2]: *** [stmp-multilib-sub] Error 2
gmake[2]: Leaving directory `/work/jas/gcc/build-gcc/gcc'
gmake[1]: *** [stmp-multilib] Error 1
gmake[1]: Leaving directory `/work/jas/gcc/build-gcc/gcc'
This header business is doing my head in and is not clearly documented
anywhere that I can find - please help!
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MIPS cross on Sun problems
2000-03-08 12:11 MIPS cross on Sun problems James Sandys-Lumsdaine
@ 2000-03-09 16:56 ` Alexandre Oliva
2000-04-01 0:00 ` Alexandre Oliva
2000-04-01 0:00 ` James Sandys-Lumsdaine
1 sibling, 1 reply; 6+ messages in thread
From: Alexandre Oliva @ 2000-03-09 16:56 UTC (permalink / raw)
To: James Sandys-Lumsdaine; +Cc: gcc-help
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
On Mar 8, 2000, "James Sandys-Lumsdaine" <jas_sl@hotmail.com> wrote:
> What headers do I need, if any, for the --with-headers option?
Whatever is in /usr/include for the target platform you're building.
If it's an embedded platform, you'll probably need newlib.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MIPS cross on Sun problems
2000-03-09 16:56 ` Alexandre Oliva
@ 2000-04-01 0:00 ` Alexandre Oliva
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2000-04-01 0:00 UTC (permalink / raw)
To: James Sandys-Lumsdaine; +Cc: gcc-help
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
On Mar 8, 2000, "James Sandys-Lumsdaine" <jas_sl@hotmail.com> wrote:
> What headers do I need, if any, for the --with-headers option?
Whatever is in /usr/include for the target platform you're building.
If it's an embedded platform, you'll probably need newlib.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MIPS cross on Sun problems
2000-03-08 12:11 MIPS cross on Sun problems James Sandys-Lumsdaine
2000-03-09 16:56 ` Alexandre Oliva
@ 2000-04-01 0:00 ` James Sandys-Lumsdaine
1 sibling, 0 replies; 6+ messages in thread
From: James Sandys-Lumsdaine @ 2000-04-01 0:00 UTC (permalink / raw)
To: gcc-help
Found the origin of the listed problems - my make wan't aliased to gmake as
I thought it would be. I also found an email saying to use --use-gnu-as and
--use-gnu-ld.
However, I'm still struggling to get the thing to work.
What headers do I need, if any, for the --with-headers option? Do I pinch
some SGI CC headers? Do I need to install gcc on an SGI Mips then pinch
them?
I have tried using SunUnixgcc headers and SGI headers and the whole thing
falls apart at:
...
_m16stubsf10
_m16stubdf0
_m16stubdf1
_m16stubdf2
_m16stubdf5
_m16stubdf6
_m16stubdf9
_m16stubdf10
rm -f libgcc1.S
mv tmplibgcc1.a libgcc1-asm.a
echo '#define FLOAT' > fp-bit.c
echo '#ifdef __MIPSEL__' >> fp-bit.c
echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
echo '#endif' >> fp-bit.c
echo '#define US_SOFTWARE_GOFAST' >> fp-bit.c
....
gmake[3]: Entering directory `/work/jas/gcc/build-gcc/gcc'
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
_floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
_fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi
_fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab
_clear_cache _trampoline __main _exit _ctors _pure; \
do \
echo ${name}; \
/work/jas/gcc/build-gcc/gcc/xgcc -B/work/jas/gcc/build-gcc/gcc/
-B/work/jas/gcc/made/mips-elf/bin/ -I/work/jas/gcc/made/mips-elf/include -O2
-DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -I./include -G 0 -g1
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include -c
-DL${name} \
../../gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
mips-elf-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
In file included from include/sys/types.h:19,
from include/unistd.h:20,
from ../../gcc-2.95.2/gcc/libgcc2.c:42:
include/sys/isa_defs.h:340: #error "ISA not supported"
gmake[3]: *** [libgcc2.a] Error 1
gmake[3]: Leaving directory `/work/jas/gcc/build-gcc/gcc'
gmake[2]: *** [stmp-multilib-sub] Error 2
gmake[2]: Leaving directory `/work/jas/gcc/build-gcc/gcc'
gmake[1]: *** [stmp-multilib] Error 1
gmake[1]: Leaving directory `/work/jas/gcc/build-gcc/gcc'
This header business is doing my head in and is not clearly documented
anywhere that I can find - please help!
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* MIPS cross on Sun problems
2000-03-08 9:39 James Sandys-Lumsdaine
@ 2000-04-01 0:00 ` James Sandys-Lumsdaine
0 siblings, 0 replies; 6+ messages in thread
From: James Sandys-Lumsdaine @ 2000-04-01 0:00 UTC (permalink / raw)
To: gcc-help
Hi all,
I or my collegues have _never_ able to build a MIPS cross compiler on our
Sun Sparc Solaris 2.6 workstations gcc-core-2.95.2. Any help would be
greatly appreciated:
I am trying to build a mips-elf (or mips64-elf might do) cross compiler with
the source so I can hack the source for a project of mine. I also have an
SGI and x86 machine at my disposal if the Sun-Sparc-Solaris2.6 platform is a
problem.
I am following the cross FAQ at
http://www.objsw.com/CrossGCC/FAQ-4.html#ss4.1 )
- Binutils installed and compiled succesfully
(pwd = ../build-binutils)
../binutils/configure --target=mips-elf --prefix=/work/jas/gcc/made
--with-headers -v
make all install
Now I try to build the gcc-core-2.95.2 distribution:
../gcc-2.95.2/configure --target=mips-elf --prefix=/work/jas/gcc/made
--with-headers -v
make all install
{
First problem is with the header dependencies for
build-gcc/texinfo/makeinfo/ -
makeinfo.o: makeinfo.c ../lib/system.h ../config.h ../lib/getopt.h \
makeinfo.h
multi.o: multi.c ../lib/system.h ../config.h makeinfo.h
}
Making all in makeinfo
make: Fatal error: Don't know how to make target `../lib/system.h'
Current working directory /work/jas/gcc/build-gcc/texinfo/makeinfo
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /work/jas/gcc/build-gcc/texinfo
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'
Current working directory /work/jas/gcc/build-gcc/texinfo
*** Error code 1
make: Fatal error: Command failed for target `all-texinfo'
{
I side step the problem by commenting out the ../lib/xxx.h files
Compilation retried...
}
...
cp xgcc gcc-cross
/work/jas/gcc/build-gcc/gcc/xgcc -B/work/jas/gcc/build-gcc/gcc/
-B/work/jas/gcc/made/mips-elf/bin/ -I/work/jas/gcc/made/mips-elf/include
-dumpspecs > tmp-specs
mv tmp-specs specs
touch stmp-headers
if [ -d /work/jas/gcc/made/mips-elf/sys-include ]; \
then \
CC="/work/jas/gcc/build-gcc/gcc/xgcc -B/work/jas/gcc/build-gcc/gcc/
-B/work/jas/gcc/made/mips-elf/bin/ -I/work/jas/gcc/made/mips-elf/include
-DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -I./include -I.
-I../../gcc-2.95.2/gcc -Iinclude -I/work/jas/gcc/made/mips-elf/sys-include";
\
export CC; \
/bin/sh ../../gcc-2.95.2/gcc/scan-types.sh "../../gcc-2.95.2/gcc"
>tmp-deduced.h; \
mv tmp-deduced.h deduced.h; \
else \
touch deduced.h; \
fi
st-dummy.c:1: sys/types.h: No such file or directory
st-dummy.c:4: stdio.h: No such file or directory
st-dummy.c:5: time.h: No such file or directory
st-dummy.c:6: signal.h: No such file or directory
scan-types: could not invoke /work/jas/gcc/build-gcc/gcc/xgcc
-B/work/jas/gcc/build-gcc/gcc/ -B/work/jas/gcc/made/mips-elf/bin/
-I/work/jas/gcc/made/mips-elf/include -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2
-I./include -I. -I../../gcc-2.95.2/gcc -Iinclude
-I/work/jas/gcc/made/mips-elf/sys-include -E -I../../gcc-2.95.2/gcc/ on
st-dummy.c
*** Error code 1
make: Fatal error: Command failed for target `deduced.h'
Current working directory /work/jas/gcc/build-gcc/gcc
*** Error code 1
make: Fatal error: Command failed for target `all-gcc'
Can't see a workaround for this - am I close or simply rubbing up the wrong
tree??
Thanks in advance.
Jas.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* MIPS cross on Sun problems
@ 2000-03-08 9:39 James Sandys-Lumsdaine
2000-04-01 0:00 ` James Sandys-Lumsdaine
0 siblings, 1 reply; 6+ messages in thread
From: James Sandys-Lumsdaine @ 2000-03-08 9:39 UTC (permalink / raw)
To: gcc-help
Hi all,
I or my collegues have _never_ able to build a MIPS cross compiler on our
Sun Sparc Solaris 2.6 workstations gcc-core-2.95.2. Any help would be
greatly appreciated:
I am trying to build a mips-elf (or mips64-elf might do) cross compiler with
the source so I can hack the source for a project of mine. I also have an
SGI and x86 machine at my disposal if the Sun-Sparc-Solaris2.6 platform is a
problem.
I am following the cross FAQ at
http://www.objsw.com/CrossGCC/FAQ-4.html#ss4.1 )
- Binutils installed and compiled succesfully
(pwd = ../build-binutils)
../binutils/configure --target=mips-elf --prefix=/work/jas/gcc/made
--with-headers -v
make all install
Now I try to build the gcc-core-2.95.2 distribution:
../gcc-2.95.2/configure --target=mips-elf --prefix=/work/jas/gcc/made
--with-headers -v
make all install
{
First problem is with the header dependencies for
build-gcc/texinfo/makeinfo/ -
makeinfo.o: makeinfo.c ../lib/system.h ../config.h ../lib/getopt.h \
makeinfo.h
multi.o: multi.c ../lib/system.h ../config.h makeinfo.h
}
Making all in makeinfo
make: Fatal error: Don't know how to make target `../lib/system.h'
Current working directory /work/jas/gcc/build-gcc/texinfo/makeinfo
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /work/jas/gcc/build-gcc/texinfo
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'
Current working directory /work/jas/gcc/build-gcc/texinfo
*** Error code 1
make: Fatal error: Command failed for target `all-texinfo'
{
I side step the problem by commenting out the ../lib/xxx.h files
Compilation retried...
}
...
cp xgcc gcc-cross
/work/jas/gcc/build-gcc/gcc/xgcc -B/work/jas/gcc/build-gcc/gcc/
-B/work/jas/gcc/made/mips-elf/bin/ -I/work/jas/gcc/made/mips-elf/include
-dumpspecs > tmp-specs
mv tmp-specs specs
touch stmp-headers
if [ -d /work/jas/gcc/made/mips-elf/sys-include ]; \
then \
CC="/work/jas/gcc/build-gcc/gcc/xgcc -B/work/jas/gcc/build-gcc/gcc/
-B/work/jas/gcc/made/mips-elf/bin/ -I/work/jas/gcc/made/mips-elf/include
-DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -I./include -I.
-I../../gcc-2.95.2/gcc -Iinclude -I/work/jas/gcc/made/mips-elf/sys-include";
\
export CC; \
/bin/sh ../../gcc-2.95.2/gcc/scan-types.sh "../../gcc-2.95.2/gcc"
>tmp-deduced.h; \
mv tmp-deduced.h deduced.h; \
else \
touch deduced.h; \
fi
st-dummy.c:1: sys/types.h: No such file or directory
st-dummy.c:4: stdio.h: No such file or directory
st-dummy.c:5: time.h: No such file or directory
st-dummy.c:6: signal.h: No such file or directory
scan-types: could not invoke /work/jas/gcc/build-gcc/gcc/xgcc
-B/work/jas/gcc/build-gcc/gcc/ -B/work/jas/gcc/made/mips-elf/bin/
-I/work/jas/gcc/made/mips-elf/include -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2
-I./include -I. -I../../gcc-2.95.2/gcc -Iinclude
-I/work/jas/gcc/made/mips-elf/sys-include -E -I../../gcc-2.95.2/gcc/ on
st-dummy.c
*** Error code 1
make: Fatal error: Command failed for target `deduced.h'
Current working directory /work/jas/gcc/build-gcc/gcc
*** Error code 1
make: Fatal error: Command failed for target `all-gcc'
Can't see a workaround for this - am I close or simply rubbing up the wrong
tree??
Thanks in advance.
Jas.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-04-01 0:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-08 12:11 MIPS cross on Sun problems James Sandys-Lumsdaine
2000-03-09 16:56 ` Alexandre Oliva
2000-04-01 0:00 ` Alexandre Oliva
2000-04-01 0:00 ` James Sandys-Lumsdaine
-- strict thread matches above, loose matches on Subject: below --
2000-03-08 9:39 James Sandys-Lumsdaine
2000-04-01 0:00 ` James Sandys-Lumsdaine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).