Discussion:
cross-compiler 3
(too old to reply)
Francois LE COAT
2012-06-16 21:42:15 UTC
Permalink
Hi,

When I try to build a GNU / GCC 3.3.6 cross-compiler according to
<http://dhs.nu/misc.php?t=special&feature=gcc336> I get the error
"
/Users/admin/Desktop/gcc-3.3.6/gcc/xgcc
-B/Users/admin/Desktop/gcc-3.3.6/gcc/
-B/opt/cross-mint/m68k-atari-mint/bin/
-B/opt/cross-mint/m68k-atari-mint/lib/ -isystem
/opt/cross-mint/m68k-atari-mint/include -O2 -DIN_GCC -DCROSS_COMPILE -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I. -I./.
-I./config -I./../include -DL_fixunsdfdi -c ./libgcc2.c -o
libgcc/./_fixunsdfdi.o
libgcc2.c: In function `__fixunsdfdi':
libgcc2.c:958: internal compiler error: in do_SUBST, at combine.c:457
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [libgcc/./_fixunsdfdi.o] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2
"
which is apparently a known GNU / GCC bug according to
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23442>
I'm using gcc 4.2.1 under Mac OS X 10.6.8, on a quad-core i5.

Does somebody already encounter this bug, and bypassed it ?

Thanks to help,

Best regards,
--
François LE COAT
Author of Eureka 2.12 (2D Graph Describer, 3D Modeller)
http://eureka.atari.org/
http://fon.gs/atarians/
Miro Kropáček
2012-06-18 04:36:40 UTC
Permalink
You should really use Vincent's setup: http://vincent.riviere.free.fr/soft/m68k-atari-mint

The article is really old, I lacked experiences and everything.
Post by Francois LE COAT
Hi,
When I try to build a GNU / GCC 3.3.6 cross-compiler according to
<http://dhs.nu/misc.php?t=special&feature=gcc336> I get the error
"
/Users/admin/Desktop/gcc-3.3.6/gcc/xgcc
-B/Users/admin/Desktop/gcc-3.3.6/gcc/
-B/opt/cross-mint/m68k-atari-mint/bin/
-B/opt/cross-mint/m68k-atari-mint/lib/ -isystem
/opt/cross-mint/m68k-atari-mint/include -O2  -DIN_GCC -DCROSS_COMPILE -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I. -I./.
-I./config -I./../include  -DL_fixunsdfdi -c ./libgcc2.c -o
libgcc/./_fixunsdfdi.o
libgcc2.c:958: internal compiler error: in do_SUBST, at combine.c:457
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [libgcc/./_fixunsdfdi.o] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2
"
which is apparently a known GNU / GCC bug according to
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23442>
I'm using gcc 4.2.1 under Mac OS X 10.6.8, on a quad-core i5.
Does somebody already encounter this bug, and bypassed it ?
Thanks to help,
Best regards,
--
François LE COAT
Author of Eureka 2.12 (2D Graph Describer, 3D Modeller)http://eureka.atari.org/http://fon.gs/atarians/
Francois LE COAT
2012-06-18 20:44:24 UTC
Permalink
Hi,

Thanks for the answer.
Post by Miro Kropáček
You should really use Vincent's setup: http://vincent.riviere.free.fr/soft/m68k-atari-mint
The article is really old, I lacked experiences and everything.
Post by Francois LE COAT
When I try to build a GNU / GCC 3.3.6 cross-compiler according to
<http://dhs.nu/misc.php?t=special&feature=gcc336> I get the error
"
/Users/admin/Desktop/gcc-3.3.6/gcc/xgcc
-B/Users/admin/Desktop/gcc-3.3.6/gcc/
-B/opt/cross-mint/m68k-atari-mint/bin/
-B/opt/cross-mint/m68k-atari-mint/lib/ -isystem
/opt/cross-mint/m68k-atari-mint/include -O2 -DIN_GCC -DCROSS_COMPILE -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I. -I./.
-I./config -I./../include -DL_fixunsdfdi -c ./libgcc2.c -o
libgcc/./_fixunsdfdi.o
libgcc2.c:958: internal compiler error: in do_SUBST, at combine.c:457
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [libgcc/./_fixunsdfdi.o] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2
"
which is apparently a known GNU / GCC bug according to
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23442>
I'm using gcc 4.2.1 under Mac OS X 10.6.8, on a quad-core i5.
Does somebody already encounter this bug, and bypassed it ?
Thanks to help,
Patrice Mandin, Vincent Rivière, Philipp Donzé, you etc. made a
really great work building cross-compilers on different platforms.
I can use these tools, and it's doing the job. The problem for me,
is it's the latest GNU tools available. I mean, I use these tools
under Mac OS X, and there's 3 native compilers available. Apple with
the Xcode tools, gives GNU / GCC 3.3, 4.0 and 4.2 native compilers.

I would really appreciate if I had a GNU / GCC 3.x cross-compiler
to build with it. There's a lot of old ATARI applications source code
that don't require the latest compiler to build. There's problems
with the "-mshort" gcc switch that is not supported anymore, and
the major evolutions of MiNTlib and GEMlib with GCC 4.x etc. The
fact also that GNU / GCC 4.x is really restrictive on the C syntax.

If I had to choose, I would prefer not to modify the C sources,
to fit with the GCC 4.x compliances, and better use GCC 3.x instead.

I tested building GNU / GCC 3.3.3 and 3.3.6 cross-compilers, but it
failed with the same error, starting with gcc 4.2.1. The first usage
of the cross-gcc (xgcc) in the building process fails ... I tried
to use gcc 3.3 native compiler instead, but I didn't succeed yet :-(

It would be wonderful if ATARI developers could choose their compiler.
I'll make some further investigations. I should have better chance to
build GNU / GCC 3.x cross-compiler, using the gcc 3.3 native compiler.

Best regards,
--
François LE COAT
Author of Eureka 2.12 (2D Graph Describer, 3D Modeller)
http://eureka.atari.org/
http://fon.gs/atarians/
Miro Kropáček
2012-06-20 06:52:50 UTC
Permalink
Post by Francois LE COAT
I tested building GNU / GCC 3.3.3 and 3.3.6 cross-compilers, but it
failed with the same error, starting with gcc 4.2.1. The first usage
of the cross-gcc (xgcc) in the building process fails ... I tried
to use gcc 3.3 native compiler instead, but I didn't succeed yet :-(
In that case, this must be a MacOS issue. I clearly remember building
various versions of gcc, both native and cross compilers. I think
Vincent had started with gcc 4.2, Zorro with 3.3.6 and Keith with
4.0.1 -- so all of them have been, at some point in time, able to
build it. It might be a good idea to ask them for patches, if they are
no available anymore.
Francois LE COAT
2012-07-06 18:00:24 UTC
Permalink
Hi Miro,

Many thanks for your answer.
Post by Miro Kropáček
Post by Francois LE COAT
I tested building GNU / GCC 3.3.3 and 3.3.6 cross-compilers, but it
failed with the same error, starting with gcc 4.2.1. The first usage
of the cross-gcc (xgcc) in the building process fails ... I tried
to use gcc 3.3 native compiler instead, but I didn't succeed yet :-(
In that case, this must be a MacOS issue. I clearly remember building
various versions of gcc, both native and cross compilers. I think
Vincent had started with gcc 4.2, Zorro with 3.3.6 and Keith with
4.0.1 -- so all of them have been, at some point in time, able to
build it. It might be a good idea to ask them for patches, if they are
no available anymore.
I finally used successfully the ATARI native GNU/GCC 3.3.6 from Zorro.
I couldn't find the correct patch for the m68k-atari-mint target yet.
Cross-compilers are very useful. But I can alternatively use native :-)

Best regards,
--
François LE COAT
Author of Eureka 2.12 (2D Graph Describer, 3D Modeller)
http://eureka.atari.org/
http://fon.gs/atarians/
Loading...