Search the web
Sign In
New User? Sign Up
amithlondev · Amithlon-Dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Amithlon x86 cross-compiler   Message List  
Reply | Forward Message #180 of 313 |
Re: [amithlondev] Re: Amithlon x86 cross-compiler

qrwamaca@... (Fighter For Future) wrote on 26.06.2003:

Hello!

> all fixed includes are on my homepage
>
> http://www.fighter.w.pl/FFF_HP/

I just tried it, had a hard time finding it,
your page is not English...

You should mention that the supplied bin-utils are
ELF binaries and made to work with Amithlon.

I just tried it with the 68k bin utils from
the original compiler-archive.

***
#include <proto/exec.h>
#include <proto/dos.h>

int hello(void)
{
struct DosLibrary *DOSBase=(struct DosLibrary
*)OpenLibrary("dos.library",36);

if(DOSBase)
{
PutStr("Hello\n");
CloseLibrary((struct Library *)DOSBase);
}

return 0;
}
***


i686be-amithlon-gcc -noixemul -o hello hello.c

***
8.BSE:GCC_x86> i686be-amithlon-gcc -noixemul -o hello hello.c
/gg/i686be-amithlon/lib/libnix/ncrt0.o: In function `c_start':
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0xdb): undefined reference to
`_CallLib68k'
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x10a): undefined reference to
`_CallLib68k'
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x12a): undefined reference to
`_CallLib68k'
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x179): undefined reference to
`main'
/gg/i686be-amithlon/lib/libnix/ncrt0.o: In function `c_exit':
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x1d2): undefined reference to
`_CallLib68k'
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x1f9): undefined reference to
`_CallLib68k'
/t/ccMnkRPi.o: In function `hello':
/t/ccMnkRPi.o(.text+0xa4): undefined reference to `_CallLib68k'
/t/ccMnkRPi.o(.text+0x17d): undefined reference to `_CallLib68k'
/t/ccMnkRPi.o(.text+0x240): undefined reference to `_CallLib68k'
/gg/i686be-amithlon/lib/libnix/libnixmain.a(_ nocommandline.o)(.text+0x65): more
undefined references to `_Call
Lib68k' follow
collect2: ld returned 1 exit status
***

Is there any chance to tell me what is missing?

There maybe is not much use for it anymore but for the fun of
it I maybe could provide an x86 binary of DiskMaster2
compiled on my A1200.

As well as I plan to provide an OS4 native version.
And I already converted the DM2 sources so that it compiles
fine with both SAS-C and the 68k version of GCC I have.

I'm only a little bit lost when it comes to internals of GCC...

Regards - Rudolph



Fri Jun 27, 2003 3:03 am

rudolph_riedel
Offline Offline
Send Email Send Email

Forward
Message #180 of 313 |
Expand Messages Author Sort by Date

Hi! I just unpacked x86-ami-gcc.lha from Aminet. My question is now - where do I get AmigaOS includes for it or rather how do I convert the includes from...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jan 17, 2003
12:43 pm

... You use the gg-fix-includes script that is included in the fd2inline package. I don't know if it's been ported to AmigaOS, though. If not, you'll have to...
Martin Blom
leviticus_mb
Offline Send Email
Jan 23, 2003
9:16 am

... all fixed includes are on my homepage http://www.fighter.w.pl/FFF_HP/ regards <sb>.oO #Fighter# o #http://www.fighter.w.pl# o #mailto:fighter@...# Oo. ...
Fighter For Future
qrwamaca@...
Send Email
Jun 26, 2003
11:11 am

qrwamaca@... (Fighter For Future) wrote on 26.06.2003: Hello! ... I just tried it, had a hard time finding it, your page is not English... You should...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jun 26, 2003
10:09 pm

Hello! rudolph-riedel@... On 26.06.03 i got a letter with subject Re: [amithlondev] Re: Amithlon x86 cross-compiler ... sorry for that, i just put it...
Fighter For Future
qrwamaca
Offline Send Email
Jun 26, 2003
10:36 pm

qrwamaca@... (Fighter For Future) wrote on 27.06.2003: Hi! ... Don't feel sorry, I found it anyways as your page is well structured. :-) ... The includes,...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jun 27, 2003
10:26 pm

... You need to use the '-r' flag too. -- ... Eccl 1:18 http://martin.blom.org/...
Martin Blom
leviticus_mb
Offline Send Email
Jun 27, 2003
6:15 am

martin@... (Martin Blom) wrote on 27.06.2003: Hi! ... Thank you. I don't know if the binary works but I get one now. So I created an adapted makefile_x86...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jun 27, 2003
10:26 pm

... Well, yes, an ix86 CPU has no Dx/Ax registers ... ... Most of the time, it's enough to use the HookEntry function from libamiga.a. -- ... Eccl 1:18...
Martin Blom
leviticus_mb
Offline Send Email
Jul 1, 2003
10:56 am

martin@... (Martin Blom) wrote on 01.07.2003: Hello! ... Yes, thank you, I did not know this function. With this it's a compiler problem - nice. :-) But I...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jul 1, 2003
9:20 pm

amithlondev@yahoogroups.com wrote on 01.07.2003: Hi! ... Problem is, the GCC_x86 does not even try to open any includes. SnoopDos reveils that there is not...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jul 2, 2003
9:54 pm

... qsort is in stdlib.h. Perhaps some other SAS/C include file is including stdlib.h "automatically" for you and you didn't notice? -- ... Eccl 1:18...
Martin Blom
leviticus_mb
Offline Send Email
Jul 5, 2003
2:28 pm

martin@... (Martin Blom) wrote on 05.07.2003: Hello! ... Nope, I have one single .h file for my whole project and the includes go like this: #include...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jul 5, 2003
7:15 pm

... Hello Rudolph, ok i think i can help you somewhat with your questions: a.) no file access visible from gcc Gcc uses ixemul.library that internaly do the...
vmconline
Offline Send Email
Jul 5, 2003
9:50 pm

info@... (vmconline) wrote on 05.07.2003: Hi! ... Yes, I forgot about the packet monitor. Annother reason to avoid ixemul... And yes, the includes are...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jul 6, 2003
10:18 am

Hello rudolph-riedel@..., ... SAVEDS is not defined or wrong. ... (ULONG) "english" Regards. -- Stephan Rupprecht - Dortmund, Germany ...
mail@...
Send Email
Jul 6, 2003
10:51 am

... Oh. Note to self: read all messages before answering one. :-) -- ... Eccl 1:18 http://martin.blom.org/...
Martin Blom
leviticus_mb
Offline Send Email
Jul 6, 2003
11:58 am

mail@... wrote on 06.07.2003: Hi! ... No, at first this would affect the other compilers, too. I have this at the top of DM.h: #ifdef __SASC #...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jul 6, 2003
12:51 pm

Hello rudolph-riedel@..., ... Then the keyword is not supported by your version of gcc (as Martin already pointed out). ... Wrong prototype or missing...
mail@...
Send Email
Jul 6, 2003
1:16 pm

... What is SAVEDS defined to? The ix86be version of gcc cannot handle base relative or resident code at all, so make sure SAVEDS is defined as nothing. ... If...
Martin Blom
leviticus_mb
Offline Send Email
Jul 6, 2003
11:57 am

martin@... (Martin Blom) wrote on 06.07.2003: Hi! ... Ah, so indeed it was defined wrong. Thank you. Now it looks like this: #ifdef __SASC # define...
rudolph-riedel@...
rudolph_riedel
Offline Send Email
Jul 6, 2003
4:04 pm

Wazzup! rudolph-riedel@... ... Can I find an updated version with this fixes ? With regards -- All wiyht. Rho sritched mg kegtops awound?...
TigerGutt
tigergud
Offline Send Email
Jul 6, 2003
7:34 pm

Wazzup! Fighter ... How about an simpel install package ? With regards...
TigerGutt
tigergud
Offline Send Email
Jul 2, 2003
9:38 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help