Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-11

Amiga68k Compilation options...

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Carl Eric Codere
However, there are still a few problems exist, for eg. around paths as Nils said. But i'm happy with the current results. (... and waiting for offical snapshot... :)

Florian forgot to tell you that you must also define AMIGA when compiling the compiler, otherwise it will compile for the linux-m68k target by default (thats why there are path problems)...

The compiler defines to compile for AmigaOS (either cross or native): AMIGA
GDB
M68k

Good luck.

Reply by email

Nils Sjöholm
to Carl Eric Codere

söndag 24 november 2002 12:51 skrev Carl Eric Codere:

Show quoted text 22 lines
> However, there are still a few problems exist, for eg. around > paths as Nils said. But i'm happy with the current results. > (... and waiting for offical snapshot... :) Florian forgot to tell you that you must also define AMIGA when compiling the compiler, otherwise it will compile for the linux-m68k target by default (thats why there are path problems)... The compiler defines to compile for AmigaOS (either cross or native): AMIGA GDB M68k Good luck. _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Hi,
I think the problem with paths has something to do with fexpand, I will do some more test and try to compile a native amigacompiler on uae and see if the result is the same.

If I do a test like this

writeln(fexpand(paramstr(0)));
what I get both with crosslinux and native amiga is a path with win32 delimiter and a starting \ before the path.

Will do some more checking.

Nisse

Reply by email

Unknown author
to Nils Sjöholm

From: Nils Sjöholm
To:
Subject: Re: [fpc-devel]Amiga68k Compilation options... Date sent: Sun, 24 Nov 2002 16:13:33 +0100
Send reply to:

I think the problem with paths has something to do with fexpand, I will do some more test and try to compile a native amigacompiler on uae and see if the result is the same.

Not really strange... ;-) There's IFDEF UNIX in fexpand.inc currently; if Amiga uses forward slashes _and_ doesn't define UNIX (which I suspect is true), it doesn't work correctly now. I'll correct it and let all you know afterwards (I can't test it on all platforms, of course, so it's possible I might break something).

Tomas

Reply by email

Nils Sjöholm
to Carl Eric Codere: Florian forgot to tell you that you must also define AMIGA when compiling the compiler,…

söndag 24 november 2002 12:51 skrev Carl Eric Codere:

Show quoted text 8 lines
> However, there are still a few problems exist, for eg. around > paths as Nils said. But i'm happy with the current results. > (... and waiting for offical snapshot... :) Florian forgot to tell you that you must also define AMIGA when compiling the compiler, otherwise it will compile for the linux-m68k target by default (thats why there are path problems)...

Done some more tests and it's fexpand that cause the problem, I guess.

If I compile this testprog

program fexpandtest;
uses dos;
begin
   writeln(fexpand(paramstr(0));
end.

on native linux I get

/home/ninne/Harddrives/Applications/fpcnative/fexpandtest

compiled on uae with native amigacompiler I get

Dh1:fpcnative/DH1:FPCNATIVE/FEXPANDTEST

I get double paths plus uppercase.

Nisse

Reply by email

Balogh, Karoly (Charlie/iNQ
to Nils Sjöholm

Hi,

Nils Sjöholm wrote 6 lines
>> However, there are still a few problems exist, for eg. around >> paths as Nils said. But i'm happy with the current results. >> (... and waiting for offical snapshot... :) > Florian forgot to tell you that you must also define AMIGA when > compiling the compiler, otherwise it will compile for the > linux-m68k target by default (thats why there are path problems)...

Yes, i've figured out that Florian forgot this, so i added by myself to the make command he recommended. And then it worked. So the problems not resulted by this.

Show quoted text 5 lines
Done some more tests and it's fexpand that cause the problem, I guess. [...] compiled on uae with native amigacompiler I get Dh1:fpcnative/DH1:FPCNATIVE/FEXPANDTEST I get double paths plus uppercase.

Same here. Because of this, the compiler also searches it's units and etc at wrong place. It's even a wonder it still works with files copied to that wrong place... :)

(And these problems not because UAE, since i'm testing it on a real machine.)

Bye,

Charlie/iNQ [.wanna.touch.diz?..amiga4000t.os31.68060/66.128mb.scsi.picassoIV.] [. .power.of.the.ancients. + .a2000. + .a500. + .commodore.128d. .] [. .cybernetic.hydraulic.android.responsible.for. .] [. .logical.infiltration.and.exploration. .]

Reply by email