Sign in Join

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

Mailing lists / fpc-pascal / 2011-01

Help building fpc svn Win64

12 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

José Mejuto

Hello FPC-Pascal,

I'm stuck trying to build fpc win64 svn. As a bootstrap I'm using 2.4.3 from a snapshot at http://www.hu.freepascal.org/lazarus/

This snapshot is missing the cmp.exe file, so I had used the win32 one. After an error about not found as.exe I had used the win32 version too, but now I'm stuck at an ld.exe problem. The win32 version of ld.exe does not have a "pei-x86-64" target so the make process stops.

These are the very last lines of make:
------------------------------------------------------------------- LibGDB not found
LIBGDBFILE=
GDBLIBDIR=C:/fpc/svn/libgdb/win64

make[4]: Leaving directory `C:/fpc/svn/ide'
make fpc_all
make[4]: Entering directory `C:/fpc/svn/ide'
C:/fpc/svn/compiler/ppcx64.exe -dx86_64 -Ur -Xs -O2 -n -Sg -FuC:/fpc/svn/rtl/uni ts/x86_64-win64 -FuC:/fpc/svn/packages/fv/units/x86_64-win64 -FuC:/fpc/svn/packa ges/gdbint/units/x86_64-win64 -FuC:/fpc/svn/packages/regexpr/units/x86_64-win64 -FuC:/fpc/svn/packages/fcl-base/units/x86_64-win64 -FuC:/fpc/svn/packages/fcl-xm l/units/x86_64-win64 -FuC:/fpc/svn/packages/chm/units/x86_64-win64 -FE. -FUunits /x86_64-win64 -dRELEASE -dNODEBUG -Xe -k--allow-multiple-definition fp.pas C:\fpc\fpc\2.4.3\bin\x86_64-win64\ld.exe: invalid BFD target `pei-x86-64' fp.pas(552,1) Error: Error while linking
fp.pas(552,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[4]: *** [fp.exe] Error 1
make[4]: Leaving directory `C:/fpc/svn/ide'
make[3]: *** [buildfp] Error 2
make[3]: Leaving directory `C:/fpc/svn/ide'
make[2]: *** [gdb] Error 2
make[2]: Leaving directory `C:/fpc/svn/ide'
make[1]: *** [ide_all] Error 2
make[1]: Leaving directory `C:/fpc/svn'
make: *** [build-stamp.x86_64-win64] Error 2

Best regards, José

Reply by email

Marco van de Voort
to José Mejuto

In our previous episode, Jos? Mejuto said:

I'm stuck trying to build fpc win64 svn. As a bootstrap I'm using 2.4.3 from a snapshot at http://www.hu.freepascal.org/lazarus/

Strictly speaking only 2.4.2 will do.

Show quoted text 5 lines
This snapshot is missing the cmp.exe file, so I had used the win32 one. After an error about not found as.exe I had used the win32 version too, but now I'm stuck at an ld.exe problem. The win32 version of ld.exe does not have a "pei-x86-64" target so the make process stops.

Use
ftp://ftp.freepascal.org/pub/fpc/contrib/cross/mingw/win64/

Reply by email

Vincent Snijders
to Marco van de Voort

2011/1/5 Marco van de Voort :

Show quoted text 5 lines
> This snapshot is missing the cmp.exe file, so I had used the win32 > one. After an error about not found as.exe I had used the win32 > version too, but now I'm stuck at an ld.exe problem. The win32 version > of ld.exe does not have a "pei-x86-64" target so the make process > stops.

I would not build the fp ide.

Use ftp://ftp.freepascal.org/pub/fpc/contrib/cross/mingw/win64/

I think the necessary files should be added to
http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw64/

Vincent

Reply by email

Marco van de Voort
to Vincent Snijders

In our previous episode, Vincent Snijders said:

Show quoted text 7 lines
>> This snapshot is missing the cmp.exe file, so I had used the win32 >> one. After an error about not found as.exe I had used the win32 >> version too, but now I'm stuck at an ld.exe problem. The win32 version >> of ld.exe does not have a "pei-x86-64" target so the make process >> stops. I would not build the fp ide.

Does that remark apply to 2.4.x or 2.5.1?

Reply by email

Vincent Snijders
to Marco van de Voort

2011/1/5 Marco van de Voort :

> > I would not build the fp ide. Does that remark apply to 2.4.x or 2.5.1?

2.5.1, because AFAIK, Pierre's work that requires the external linker on win64 is done in trunk only and not yet merged to 2.4.2.

Vincent

Reply by email

Marco van de Voort
to Vincent Snijders

In our previous episode, Vincent Snijders said:

Show quoted text 7 lines
>> >> I would not build the fp ide. > > Does that remark apply to 2.4.x or 2.5.1? 2.5.1, because AFAIK, Pierre's work that requires the external linker on win64 is done in trunk only and not yet merged to 2.4.2.

Because I made a makefile change somewhere around christmas that always enables the external linker for the IDE. This because of linking problems with mingw libs on win32, and to build proper ones on Win64.

Afaik both IDEs now work, with debugging even.

Reply by email

José Mejuto

Hello Darius,

Wednesday, January 5, 2011, 12:36:40 AM, you wrote:

DB> Doesn't mingw64 provide as and ld?

Yes but everywhere in the wiki binutils is referenced, mingw* is named only for crosscompiling and with the "known incompatibility" about different ports (mingw, cygwin, ...) I was looking for a binutils win64 without success.

Anyway I was looking for mingw binutils for win64 in the website without success, only win32 builds.
http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GNU-Binutils/binutils-2.21/

I think that would be desirable, specially for 64 bits versions, to have snapshots with all tools (add the four missing programs) but I do not know which one prepare this snapshots.

I think I would be able to compile it now. Thank you.

Best regards, José

Reply by email

José Mejuto
to Vincent Snijders: 2011/1/5 Marco van de Voort : I would not build the fp ide. I think the necessary files…

Hello FPC-Pascal,

Wednesday, January 5, 2011, 10:26:12 AM, you wrote:

VS> 2011/1/5 Marco van de Voort :

Show quoted text 5 lines
>> This snapshot is missing the cmp.exe file, so I had used the win32 >> one. After an error about not found as.exe I had used the win32 >> version too, but now I'm stuck at an ld.exe problem. The win32 version >> of ld.exe does not have a "pei-x86-64" target so the make process >> stops.

VS> I would not build the fp ide.

I'm building from the point of view of a Windows user, not familiar with make, not from the point of view that somebody that knows that fp.exe is the text mode IDE, so even as I do not use FP I always run "make clean all install ..." as it is the only way to detect releasing problems like this (bug or not, but hard to solve for a Windows user).

Best regards, José

Reply by email

José Mejuto
to Darius Blaszyk

Hello FPC-Pascal,

Wednesday, January 5, 2011, 4:50:20 PM, you wrote:

José Mejuto wrote
> Anyway I was looking for mingw binutils for win64 in the website > without success, only win32 builds. > http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GNU-Binutils/binutils-2.21/

DB> try: http://mingw-w64.sourceforge.net/

I had solved it using the files from freepascal ftp server ftp://ftp.freepascal.org/pub/fpc/contrib/cross/mingw/win64/ but even when those files are added to the "bootstrap" they are not copied to the newly created compiler via install, so lazarus projects fail to compile (some) due the lack of GoRC.exe in example.

Best regards, José

Reply by email

Pierre Free Pascal
to José Mejuto
Show quoted text 25 lines
-----Message d'origine----- De : [mailto:fpc-pascal- De la part de José Mejuto Envoyé : mercredi 5 janvier 2011 17:42 À : FPC-Pascal users discussions Objet : Re[4]: [fpc-pascal] Help building fpc svn Win64 Hello FPC-Pascal, Wednesday, January 5, 2011, 4:50:20 PM, you wrote: DB> On Jan 5, 2011, at 12:07 PM, José Mejuto wrote: >> Anyway I was looking for mingw binutils for win64 in the website >> without success, only win32 builds. >> http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GNU- Binutils/binutils-2.21/ DB> try: http://mingw-w64.sourceforge.net/ I had solved it using the files from freepascal ftp server ftp://ftp.freepascal.org/pub/fpc/contrib/cross/mingw/win64/ but even when those files are added to the "bootstrap" they are not copied to the newly created compiler via install, so lazarus projects fail to compile (some) due the lack of GoRC.exe in example.

You should be able to use the 32-bit version of GoRC there is no need of a 64-bit version, as the compiler adds the "/machine amd64 " option when calling it
for win64 OS target.

Could you test this out?

Pierre Muller

Reply by email

José Mejuto
to Pierre Free Pascal

Hello FPC-Pascal,

Tuesday, January 11, 2011, 12:21:19 PM, you wrote:

PFP> You should be able to use the 32-bit version of GoRC PFP> there is no need of a 64-bit version, as the compiler PFP> adds the "/machine amd64 " option when calling it PFP> for win64 OS target.
PFP> Could you test this out?

Yes, 32 bits version works fine, but the "problem" is that the user should search across wikis, messages and other resources the missing files. While in win32 everything needs is in an snapshot, for x64 versions you need the 32 bits snapshot and 64 bits one, and add to the 64 bits version the missing tools (taken from the 32 bits).

It's just a matter of make it simple.

Best regards, José

Reply by email