Sign in Join

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

Mailing lists / fpc-pascal / 2016-03

crosscompiling problem (.a file)

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

ulrich

Hello,

I have installed Lazarus 1.6 (64-bit version) in the windows directory c:\lazarus16. I downloaded the source compiler in c:\lazarus16\FPC - missing subdirectories. In c:\lazarus16\fpc\3.0.0\bin\arm-linux I have compiled ARM-Linux binutils (downloaded from ftp).

In Ming32 I ran the following command:
$ pwd
/c/lazarus16/fpc/3.0.0

$ make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=/c/lazarus16/FPC/3.0.0/bin OPT=-dFPC_ARMEL INSTALL_PREFIX=/c/lazarus16/FPC FPC=/c/lazarus16/FPC/3.0.0/bin/X86_ 64-win64/FPC.

The result is:
system.pp (620) Error: Can not create archive file: \c\lazarus16\fpc\3.0.0\RTL\units\x86_64-win64\libimpsystem.a

What am I doing wrong ?

Thank you for answer

Rumíšek

Jonas Maebe
to ulrich
ulrich wrote 12 lines
In Ming32 I ran the following command: $ pwd /c/lazarus16/fpc/3.0.0 $ make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=/c/lazarus16/FPC/3.0.0/bin OPT=-dFPC_ARMEL INSTALL_PREFIX=/c/lazarus16/FPC FPC=/c/lazarus16/FPC/3.0.0/bin/X86_ 64-win64/FPC. The result is: system.pp (620) Error: Can not create archive file: \c\lazarus16\fpc\3.0.0\RTL\units\x86_64-win64\libimpsystem.a

Don't do this in a Cygwin shell, and remove any Cygwin shells/utilities from your path before using the FPC/Lazarus makefiles.

Jonas

ulrich
to Jonas Maebe

Dne 16.3.2016 v 15:23 Jonas Maebe napsal(a):

Show quoted text 14 lines
ulrich wrote: > In Ming32 I ran the following command: > $ pwd > /c/lazarus16/fpc/3.0.0 > > $ make crossinstall CPU_TARGET=arm OS_TARGET=linux > CROSSBINDIR=/c/lazarus16/FPC/3.0.0/bin OPT=-dFPC_ARMEL > INSTALL_PREFIX=/c/lazarus16/FPC FPC=/c/lazarus16/FPC/3.0.0/bin/X86_ > 64-win64/FPC. > > The result is: > system.pp (620) Error: Can not create archive file: > \c\lazarus16\fpc\3.0.0\RTL\units\x86_64-win64\libimpsystem.a

I have not installed the cygwin. Running a compilation from mingw terminal.

Rumisek

Show quoted text 10 lines
Don't do this in a Cygwin shell, and remove any Cygwin shells/utilities from your path before using the FPC/Lazarus makefiles. Jonas _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Jonas Maebe
to ulrich
ulrich wrote 16 lines
Dne 16.3.2016 v 15:23 Jonas Maebe napsal(a): > ulrich wrote: >> In Ming32 I ran the following command: >> $ pwd >> /c/lazarus16/fpc/3.0.0 >> >> $ make crossinstall CPU_TARGET=arm OS_TARGET=linux >> CROSSBINDIR=/c/lazarus16/FPC/3.0.0/bin OPT=-dFPC_ARMEL >> INSTALL_PREFIX=/c/lazarus16/FPC FPC=/c/lazarus16/FPC/3.0.0/bin/X86_ >> 64-win64/FPC. >> >> The result is: >> system.pp (620) Error: Can not create archive file: >> \c\lazarus16\fpc\3.0.0\RTL\units\x86_64-win64\libimpsystem.a > I have not installed the cygwin. Running a compilation from mingw terminal.

Try from a plain cmd.exe prompt instead then.

Jonas

ulrich
to Jonas Maebe

Dne 18.3.2016 v 9:37 Jonas Maebe napsal(a):

Show quoted text 20 lines
ulrich wrote: > Dne 16.3.2016 v 15:23 Jonas Maebe napsal(a): >> ulrich wrote: >>> In Ming32 I ran the following command: >>> $ pwd >>> /c/lazarus16/fpc/3.0.0 >>> >>> $ make crossinstall CPU_TARGET=arm OS_TARGET=linux >>> CROSSBINDIR=/c/lazarus16/FPC/3.0.0/bin OPT=-dFPC_ARMEL >>> INSTALL_PREFIX=/c/lazarus16/FPC FPC=/c/lazarus16/FPC/3.0.0/bin/X86_ >>> 64-win64/FPC. >>> >>> The result is: >>> system.pp (620) Error: Can not create archive file: >>> \c\lazarus16\fpc\3.0.0\RTL\units\x86_64-win64\libimpsystem.a >> > I have not installed the cygwin. Running a compilation from mingw > terminal. Try from a plain cmd.exe prompt instead then.

Thanks for your answers.

But when I added mingw directory to the PATH, I got the following result.

C:\lazarus16\fpc\3.0.0>make all OS_TARGET=linux CPU_TARGET=x86_64 FPC=C:\lazarus16\fpc\3.0.0\bin\x86_64-win64\fpc.exe /c/lazarus16/fpc/3.0.0/"c:/mingw/msys/1.0/bin/make.EXE" compiler_cycle RELEASE=1
/bin/sh: /c/lazarus16/fpc/3.0.0/c:/mingw/msys/1.0/bin/make.EXE: No such file or directory
make.EXE": *** [build-stamp.x86_64-linux] Error 127

Rumisek

Show quoted text 8 lines
Jonas _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Jonas Maebe
to ulrich
ulrich wrote 6 lines
Dne 18.3.2016 v 9:37 Jonas Maebe napsal(a): > Try from a plain cmd.exe prompt instead then. Thanks for your answers. But when I added mingw directory to the PATH, I got the following result.

Don't add the mingw directory to the PATH. The problem is that the "make" program prefers any mingw/cygwin shell in the PATH over cmd.exe, and the FPC makefiles only work with cmd.exe as a shell under Windows.

Jonas