Sign in Join

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

Mailing lists / fpc-devel / 2011-01

Building Linux RTL from win32

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Alex Shishkin

When I tried to compile linux RTL from win32 (2.5.1.trunk) I got error: D:\src\fpc\rtl>make OS_TARGET=linux
make -C linux all
make[1]: Entering directory `D:/src/fpc/rtl/linux' d:/pp/bin/i386-win32/ppc386.exe -Tlinux -XPi386-linux- -Xr -Fi../inc -Fi../i386
-Fi../unix -Fii386 -FE. -FU../../rtl/units/i386-linux -di386 si_prc.pp Free Pascal Compiler version 2.5.1 [2011/01/24] for i386 Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for i386
Compiling si_prc.pp
Fatal: Can't find unit objpas used by si_prc
Fatal: Compilation aborted
make[1]: *** [si_prc.ppu] Error 1
make[1]: Leaving directory `D:/src/fpc/rtl/linux'
make: *** [linux_all] Error 2

Something wrong with makefiles or I'm doing something wrong?

Reply by email

Pierre Free Pascal
to Alex Shishkin

I tried it on my trunk checkout
and got no problems.

Did you try with -n option
to avoid reading your default fpc.cfg configuration file?

make OS_TARGET=linux OPT=-n

Pierre Muller

Show quoted text 28 lines
-----Message d'origine----- De : [mailto:fpc-devel- De la part de Alex Shishkin Envoyé : lundi 24 janvier 2011 19:34 À : FPC developers' list Objet : [fpc-devel] Building Linux RTL from win32 When I tried to compile linux RTL from win32 (2.5.1.trunk) I got error: D:\src\fpc\rtl>make OS_TARGET=linux make -C linux all make[1]: Entering directory `D:/src/fpc/rtl/linux' d:/pp/bin/i386-win32/ppc386.exe -Tlinux -XPi386-linux- -Xr -Fi../inc -Fi../i386 -Fi../unix -Fii386 -FE. -FU../../rtl/units/i386-linux -di386 si_prc.pp Free Pascal Compiler version 2.5.1 [2011/01/24] for i386 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for i386 Compiling si_prc.pp Fatal: Can't find unit objpas used by si_prc Fatal: Compilation aborted make[1]: *** [si_prc.ppu] Error 1 make[1]: Leaving directory `D:/src/fpc/rtl/linux' make: *** [linux_all] Error 2 Something wrong with makefiles or I'm doing something wrong? _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Alex Shishkin
to Pierre Free Pascal

25.01.2011 19:27, Pierre Free Pascal пишет:

Show quoted text 10 lines
I tried it on my trunk checkout and got no problems. Did you try with -n option to avoid reading your default fpc.cfg configuration file? make OS_TARGET=linux OPT=-n Pierre Muller

Thanks. With -n option it works.

Alex

Reply by email

Jonas Maebe
to Alex Shishkin
Alex Shishkin wrote 12 lines
25.01.2011 19:27, Pierre Free Pascal пишет: > I tried it on my trunk checkout > and got no problems. > > Did you try with -n option > to avoid reading your default fpc.cfg configuration file? > > make OS_TARGET=linux OPT=-n > > Pierre Muller > Thanks. With -n option it works.

You should always use the top-level Makefile in the fpc directory, it automatically passes several options that will prevent this and other problems.

Jonas

Reply by email