[fpc-pascal]crosscompiling problems with ld(w) from binutils-2.1.4

2003-07-30 Thread Tobias Diekershoff
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello everybody,

this is my first posting here, so please be paitient with me ;)

In 99% of the time I'm using linux, and therefore I'm writing my prgroms
for linux. Lately more and more windoze using friends ask me, if I could
give them my programs. And as those programs don't have much platform
dependent codings it was not a problem to compile them using fpc1.0.10
on the installed win98. But as I was bored to reboot my linux, just to
compile a program, I started looking for cross-compiling utils.

I've downloadet GNU binutils 2.1.4 and configured them with the
"--target=winnt" option. Compilation worked just fine, and for test
purposes I symlinkd as-new, ld-new to asw and ldw. For the first test I
took hello-world, but it worked only partly :(

Below I've included the compiler output and the part from fpcdebug.txt,
which deals with the error. Can anybody help me?

thx in advance
  Tobias



Compiler output:

> fpc -Twin32 -FDtmp/binutils/bin -V hello.pas
Free Pascal Compiler version 1.0.10 [2003/06/26] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: Win32 for i386
Compiling hello.pas
Linking hello.exe
tmp/binutils/bin/ldw: invalid BFD target `base.$$$'
hello.pas(4,1) Error: Error while linking
Closing script ppas.sh


The last lines of fpcdebug.txt dealing with ldw:

0008:Using util tmp/binutils/bin/ldw
0010:tmp/binutils/bin/ldw  -s   -b base.$$$ -o hello.exe link.res
0002:hello.pas(4,1) Error: Error while linking

- --
http://tobias.d.bei.t-online.de/  -=- PGP User ID: 0x825CE007
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/J5ajZGcehYJc4AcRAikRAJ47SeSL8UcwJnwra7vPAwKRDaWG2gCeO5ec
rep0bhpAhmKGjjLsR8JH1jw=
=/h5E
-END PGP SIGNATURE-

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]crosscompiling problems with ld(w) from binutils-2.1.4

2003-07-30 Thread L D Blake
In reply to your message of July 30, 2003
> 0008:Using util tmp/binutils/bin/ldw
> 0010:tmp/binutils/bin/ldw  -s   -b base.$$$ -o hello.exe link.res
> 0002:hello.pas(4,1) Error: Error while linking

Was there a copy of the hello.exe program running at that time?

I get that error all the time, when I forget to exit after testing or a
program doesn't exit completely.

-
 L D Blake


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]crosscompiling problems with ld(w) frombinutils-2.1.4

2003-07-30 Thread Tobias Diekershoff
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 30 Jul 2003 10:11:11 -0400 L D Blake <[EMAIL PROTECTED]>
wrote:

> > 0008:Using util tmp/binutils/bin/ldw
> > 0010:tmp/binutils/bin/ldw  -s   -b base.$$$ -o hello.exe
> > link.res 0002:hello.pas(4,1) Error: Error while linking
> 
> Was there a copy of the hello.exe program running at that time?

No, there wasn't any. I just wrote up the four lines from hello-world
and tried to compile it. Actually there isn't any hello.exe jet ;)

so long
  Tobias

- --
http://tobias.d.bei.t-online.de/  -=- PGP User ID: 0x825CE007
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/J+RFZGcehYJc4AcRAnVYAJ4nc62NVzMI3jLy+B6A3+MDK50MugCeLXDP
Jyi9YOvPm/VNDTyBqZshi8M=
=n86A
-END PGP SIGNATURE-

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]crosscompiling problems with ld(w) from binutils-2.1.4

2003-07-30 Thread Marco van de Voort
> On Wed, 30 Jul 2003 10:11:11 -0400 L D Blake <[EMAIL PROTECTED]>
> wrote:
> 
> > > 0008:Using util tmp/binutils/bin/ldw
> > > 0010:tmp/binutils/bin/ldw  -s   -b base.$$$ -o hello.exe
> > > link.res 0002:hello.pas(4,1) Error: Error while linking
> >
> > Was there a copy of the hello.exe program running at that time?
> 
> No, there wasn't any. I just wrote up the four lines from hello-world
> and tried to compile it. Actually there isn't any hello.exe jet ;)

It could be that there is some mingw extension to ld, which is missing in
the "ordinary" ld. However I don't know that much about Windows' formats.



___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal]RE: crosscompiling problems with ld(w) from binutils-2.1.4

2003-07-30 Thread Jeff Pohlmeyer

 > But as I was bored to reboot my linux, just to compile a program...

I feel your pain :-o

Another option, maybe to think about:

I have had *some* success running ppc386.exe under WINE,
although it doesn't seem to find all of its units properly.
So I had to put all of the binaries and units required to
run ppc386.exe in the same directory -
~/fake_windows/pp/
or wherever.

This is not exactly a perfect solution, but it beats 
having to reboot into windows everytime I want to try 
a piece of cross-platform code.


 - Jeff


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal