Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Atari » Atari ST » cross-compiler 3
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
cross-compiler 3 [message #147141] Sat, 16 June 2012 17:42 Go to next message
Francois LE COAT is currently offline  Francois LE COAT
Messages: 225
Registered: August 2012
Karma: 0
Senior Member
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/
Re: cross-compiler 3 [message #147142 is a reply to message #147141] Mon, 18 June 2012 00:36 Go to previous messageGo to next message
Miro Kropáček is currently offline  Miro Kropáček
Messages: 23
Registered: November 2012
Karma: 0
Junior Member
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.

On 16. Jún, 23:42 h., Francois LE COAT <lec...@atari.org> wrote:
> 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/
Re: cross-compiler 3 [message #147143 is a reply to message #147142] Mon, 18 June 2012 16:44 Go to previous messageGo to next message
Francois LE COAT is currently offline  Francois LE COAT
Messages: 225
Registered: August 2012
Karma: 0
Senior Member
Hi,

Thanks for the answer.

Miro Kropáček writes :
> 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.
>
> Francois LE COAT wrote:
>> 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,

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/
Re: cross-compiler 3 [message #147144 is a reply to message #147143] Wed, 20 June 2012 02:52 Go to previous messageGo to next message
Miro Kropáček is currently offline  Miro Kropáček
Messages: 23
Registered: November 2012
Karma: 0
Junior Member
> 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.
Re: cross-compiler 3 [message #147361 is a reply to message #147144] Fri, 06 July 2012 14:00 Go to previous message
Francois LE COAT is currently offline  Francois LE COAT
Messages: 225
Registered: August 2012
Karma: 0
Senior Member
Hi Miro,

Many thanks for your answer.

Miro Kropáček writes:
>> 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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: [UtD] Eureka 2.12 Release
Next Topic: AHCC V4.11
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Apr 16 15:36:16 EDT 2024

Total time taken to generate the page: 0.11229 seconds