Problem with cross compiler
  • Caterpillar
    Caterpillar
    yashin71
    Posts: 37 from 2004/4/20
    Does someone use the cross compiler of this site http://www.zerohero.se/cross/mos.html?

    When I compile a file, it give me an error.
  • »22.02.06 - 08:04
    Profile
  • Just looking around
    zerohero
    Posts: 7 from 2006/2/22
    What kind of error do you get?
    Yes, I understand you're giving an honest opinion. Yes, there's still a line between being honest and being rude.
  • »22.02.06 - 12:10
    Profile Visit Website
  • Caterpillar
    Caterpillar
    yashin71
    Posts: 37 from 2004/4/20
    Hi, zerohero thanks for your interest. When I compile with ppc-morphos-gcc hello.c - or hello, I have this error "/usr/local/amiga/ppc-morphos/bin/ld: cannot open -lamiga: No such file or directory
    collect2: ld returned 1 exit status"
  • »22.02.06 - 13:08
    Profile
  • Just looking around
    zerohero
    Posts: 7 from 2006/2/22
    Hmm, wierd, I thought I fixed that. Might be for -noixemul only? Try using that switch on your compileline:

    ppc-morphos-gcc hello.c - or hello -noixemul

    That should work.
    Yes, I understand you're giving an honest opinion. Yes, there's still a line between being honest and being rude.
  • »22.02.06 - 13:14
    Profile Visit Website
  • Caterpillar
    Caterpillar
    yashin71
    Posts: 37 from 2004/4/20
    same error
  • »22.02.06 - 13:25
    Profile
  • Just looking around
    zerohero
    Posts: 7 from 2006/2/22
    Could you try with this specs file:

    http://zerohero.homeip.net/~zerohero/specs

    It should be installed into /usr/local/amiga/lib/gcc-lib/ppc-morphos/2.95.3/.
    Yes, I understand you're giving an honest opinion. Yes, there's still a line between being honest and being rude.
  • »22.02.06 - 13:43
    Profile Visit Website
  • Caterpillar
    Caterpillar
    yashin71
    Posts: 37 from 2004/4/20
    ok, now work fine.

    Thanks
  • »22.02.06 - 14:24
    Profile
  • Just looking around
    zerohero
    Posts: 7 from 2006/2/22
    Good that it worked, and I guess that says something about the number of people using these cross-compilers. Two, now...
    Yes, I understand you're giving an honest opinion. Yes, there's still a line between being honest and being rude.
  • »22.02.06 - 14:34
    Profile Visit Website
  • MorphOS Developer
    Henes
    Posts: 507 from 2003/6/14
    Be positive: the amount of users doubled in only one day.
    Banana!
  • »22.02.06 - 15:41
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Crumb
    Posts: 732 from 2003/2/24
    From: aGaS & CUAZ Al...
    @zerohero
    I use it!

    Do you think that it may be complex to add c++ support? most of configure scripts can't recognize it so they stop. I point them to your OS4 crosscompiler so they continue, and later I change it, but a working c++ mos crosscompiler would be cool :-)
  • »23.02.06 - 15:37
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    I must admit I dont see much point on cross compiler when you can run configure scripts in MorphOS directly...
    1 + 1 = 3 with very large values of 1
  • »23.02.06 - 15:55
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Crumb
    Posts: 732 from 2003/2/24
    From: aGaS & CUAZ Al...
    If you aren't busy at work you can do MOS stuff :-)

    and BTW, a 3Ghz x86 is much faster than a g3/600 compiling, and probably has most of unix tools (if you crosscompile from linux you have the same tools)
  • »23.02.06 - 19:23
    Profile Visit Website
  • Caterpillar
    Caterpillar
    yashin71
    Posts: 37 from 2004/4/20
    I have another problem, but I think that this is due to the SDK of MorphOS. The same error both with the cross compiler that with MorphOS. When I compile, for example, the file demo2 of MCC_THEBAR I have this error "/lib/libaboxstubs.a(GetAttr.o): In function 'GetAttr':
    GetAttr.o(.text+0x6): undefined referencd to 'IntuitionBase'
    GetAttr.o(.text+0x16):undefined referencd to 'IntuitionBase'
    collect2: ld returned 1 exit status
  • »24.02.06 - 08:13
    Profile