[fpc-pascal] 64 bit cross binutils on a 32 bit OS
Marcos Douglas
md at delfire.net
Thu Apr 11 16:45:45 CEST 2013
On Thu, Apr 11, 2013 at 8:15 AM, Pierre Free Pascal
<pierre at freepascal.org> wrote:
>
>
>
> > -----Message d'origine-----
> > De : fpc-pascal-bounces at lists.freepascal.org [mailto:fpc-pascal-
> > bounces at lists.freepascal.org] De la part de patspiper
> > Envoyé : jeudi 11 avril 2013 13:01
> > À : FPC-Pascal users discussions
> > Objet : Re: [fpc-pascal] 64 bit cross binutils on a 32 bit OS
> >
> > On 11/04/13 11:33, Sven Barth wrote:
> > > Am 11.04.2013 10:16, schrieb patspiper:
> > >> Hi,
> > >>
> > >> Is it possible to build cross binutils to produce win 64 bit files on
> > >> a 32 bit Linux OS (Ubuntu 32 bit)?
> > >>
> > >> If I set target=x86_64-cygwin, the error is:
> > >> 'BFD does not support target x86_64-pc-cygwin'
> > >>
> > > Why don't you install binutils-mingw-w64 package? [Note: I don't have
> > > Ubuntu, so I don't know whether it exists for your specific version of
> > > Ubuntu]
> > binutils-mingw-w64 package does not exist for Ubuntu 11.04 (my OS),
> > although it is available in Ubuntu 12.10.
> >
> > In any case, I have built myself cross binutils for i386/Win32 (cygwin
> > and mingw32), x86_64/Linux, arm/WinCE, and arm/Linux. As an exercise, I
> > would like to do the same for Win64.
>
> The i386-win32 to x86_64-win64 cross-tools give this information:
>
> E:\pas>x86_64-win64-as --version
> GNU assembler (GNU Binutils) 2.22
> Copyright 2011 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or later.
> This program has absolutely no warranty.
> This assembler was configured for a target of `x86_64-w64-mingw32'.
>
> So building Binutils with --target=x86_64-w64-mingw32
> should work for you.
>
> Pierre Muller
On Windows, using FPC 2.7.1, I use:
make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64
But this not works. I always got the error:
================================================
W:/md/dev/freepascal/compiler/2.7.1/compiler/ppc.exe fpmake.pp -FuW:/md/dev/fre
epascal/compiler/2.7.1/packages/fpmkunit/units_bs/i386-win32 -FuW:/md/dev/freepa
scal/compiler/2.7.1/rtl/units/i386-win32
Fatal: Can't find unit process used by fpmkunit
Fatal: Compilation aborted
make[3]: *** [fpmake] Error 1
make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1/packages'
make[2]: *** [packages_all] Error 2
make[2]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1'
make[1]: *** [build-stamp.x86_64-win64] Error 2
make[1]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1'
make: *** [crossinstall] Error 2
================================================
Using FPC 2.6.2 works perfectly.
Best regards,
Marcos Douglas
More information about the fpc-pascal
mailing list