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...
Message search is now enhanced, find messages faster. Take it for a spin.

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 #190 of 313 |
Re: [amithlondev] Re: Re: Re: Re: Amithlon x86 cross-compiler

martin@... (Martin Blom) wrote on 05.07.2003:

Hello!

> > My sources compile without warnings with SAS-C,
> > there is one meaningless warning with the 68k GCC I'm using
> > and yet there are quite some warnings with the x86 GCC.
> >
> > Compilation comes to halt here now:
> >
> > DMSort.c: In function `DMSortN':
> > DMSort.c:154: implicit declaration of function `qsort'
> >
> > The includes must be different in some way.
>
> qsort is in stdlib.h. Perhaps some other SAS/C include file is
> including stdlib.h "automatically" for you and you didn't notice?

Nope, I have one single .h file for my whole project and
the includes go like this:

#include <string.h>
#include <stdlib.h> /* qsort...*/

#include <exec/types.h>
[...]

Looks like the includes are not loaded at all.

I just unpacked x86-ami-gcc.lha, x86-ami-bin.lha and i686be-amithlon.lzx
again, this time directly to disk in case there is some link problem
I missed so far.
And I unpacked x86-ami-bin.lha a second time after the includes archive
to restore the 68k based binaries.

It's installed in dh4:gcc_x86 and I have this in my User-Startup:

;Begin GCC_x86
c:assign GG: dh4:GCC_x86
c:assign c: GG:bin add

Now I have different makefiles.
One for the normal 2.95.3 GCC.
And a second for x86 that is an edited variant of the 68k one.

I call the second with "make -f makefile_x86".

The most important lines that are different:

BIN = GG:bin
CC = $(BIN)/i686be-amithlon-gcc
CFLAGS = -noixemul -r -O1 -fomit-frame-pointer -W -Wall -Wstrict-prototypes
-Wshadow -Werror-implicit-function-declaration
LDFLAGS = -s -Wl,--verbose


Now I made a little test with SnoopDos running.
This what I get with GCC for 68k:

gcc:lib/gc Open BSE:DM2_at_work/DM2source/DM.h Read OK
gcc:lib/gc Open gcc:include/string.h Read OK
gcc:lib/gc Open gcc:include/stddef.h Read OK
gcc:lib/gc Open gcc:include/stdlib.h Read OK
gcc:lib/gc Open gcc:os-include/exec/types.h Read OK
[...removed the fails'...]

When I compile for x86 I find none of this in the log.
There is not even a "Lock someincludedir" in the log.
So the includes are just not loaded.

On the other side I found this a few times:

GG:bin/i68 OpenLib bsdsocket.library

Why the heck is the compiler trying to open bsdsocket.library?
Are the includes expected to remain on some server? :-)
MIAMI_TCPDump however found no packages when I started
a LAN session for a little test.

I can't believe that the bin-utils from x86-ami-bin.lha are just
broken but I also can't find out what I am doing wrong.

Have a nice day - Rudolph




Sat Jul 5, 2003 11:09 pm

rudolph_riedel
Offline Offline
Send Email Send Email

Forward
Message #190 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