Sign in Join

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

Mailing lists / fpc-pascal / 2011-09

Cannot build RTL for native NT

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Andre Tampubolon

These were the steps I did (based on http://wiki.freepascal.org/Target_NativeNT)

1. Check out svn.freepascal.org/svn/fpc/trunk (revision 19048), put it into C:\Downloads\Software\fpc

2. Build ppc386 and fpcmake, then put it into C:\fpc-nativent

4. Build the RTL:

C:\Downloads\Software\fpc\rtl>make FPC=C:\fpc-nativent\ppc386.exe OS_TARGET=nativent OPT="-dKMODE"
make -C nativent all
make[1]: Entering directory `C:/Downloads/Software/fpc/rtl/nativent' C:/fpc-nativent/ppc386.exe -Tnativent -XPi386-nativent- -Xr -Fi../inc -Fi../i386 -Fiddk -Findk -FE.
-FU../../rtl/units/i386-nativent -dKMODE -di386 -Us -Sg system.pp systhrd.inc(91,17) Warning: range check error while evaluating constants systhrd.inc(97,17) Warning: range check error while evaluating constants systhrd.inc(103,17) Warning: range check error while evaluating constants systhrd.inc(108,17) Warning: range check error while evaluating constants systhrd.inc(113,17) Warning: range check error while evaluating constants sysfile.inc(126,10) Warning: User defined: do_rename: Implement file copy! sysdir.inc(86,2) Warning: User defined: Add check for subdirectories system.pp(147,4) Warning: User defined: cmdline is not set system.pp(236,6) Warning: User defined: Use UnicodeToUTF8 for argument conversion
systemh.inc(1105,11) Error: Forward declaration not solved "SysInitStdIO;" system.pp(447) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[1]: *** [system.ppu] Error 1
make[1]: Leaving directory `C:/Downloads/Software/fpc/rtl/nativent' make: *** [nativent_all] Error 2

Any idea?
FYI, I'm using FPC 2.4.4

Reply by email

Sven Barth
to Andre Tampubolon
Andre Tampubolon wrote 31 lines
These were the steps I did (based onhttp://wiki.freepascal.org/Target_NativeNT) 1. Check outsvn.freepascal.org/svn/fpc/trunk <http://svn.freepascal.org/svn/fpc/trunk> (revision 19048), put it into C:\Downloads\Software\fpc 2. Build ppc386 and fpcmake, then put it into C:\fpc-nativent 4. Build the RTL: C:\Downloads\Software\fpc\rtl>make FPC=C:\fpc-nativent\ppc386.exe OS_TARGET=nativent OPT="-dKMODE" make -C nativent all make[1]: Entering directory `C:/Downloads/Software/fpc/rtl/nativent' C:/fpc-nativent/ppc386.exe -Tnativent -XPi386-nativent- -Xr -Fi../inc -Fi../i386 -Fiddk -Findk -FE. -FU../../rtl/units/i386-nativent -dKMODE -di386 -Us -Sg system.pp systhrd.inc(91,17) Warning: range check error while evaluating constants systhrd.inc(97,17) Warning: range check error while evaluating constants systhrd.inc(103,17) Warning: range check error while evaluating constants systhrd.inc(108,17) Warning: range check error while evaluating constants systhrd.inc(113,17) Warning: range check error while evaluating constants sysfile.inc(126,10) Warning: User defined: do_rename: Implement file copy! sysdir.inc(86,2) Warning: User defined: Add check for subdirectories system.pp(147,4) Warning: User defined: cmdline is not set system.pp(236,6) Warning: User defined: Use UnicodeToUTF8 for argument conversion systemh.inc(1105,11) Error: Forward declaration not solved"SysInitStdIO;" system.pp(447) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[1]: *** [system.ppu] Error 1 make[1]: Leaving directory `C:/Downloads/Software/fpc/rtl/nativent' make: *** [nativent_all] Error 2 Any idea? FYI, I'm using FPC 2.4.4

Seems like there where some changes in the RTL... can you wait until Thursday? Then I'm done with my Bachelor thesis and can work again on all this :)

Also note please: since the latest changes of mine for the user mode part of the port I haven't tested the kernel mode variant. It's one my todo list for the next round of improvements.

Regards,
Sven

Reply by email

Sven Barth
to anta40
anta40 wrote
Sure I can wait. It's not a high priority for me. You should finish your thesis first.

Sorry that it took so long, but I've now fixed the problem in my branch. It's located at
http://svn.freepascal.org/svn/fpc/branches/svenbarth/nativent and until the changes are merged to trunk you might want to use this (it's based on a recent 2.7.1).
Alternatively you can apply the changes I've done locally in your own source. Only %fpcdir%\rtl\nativent\system.pp was modified.

Regards,
Sven

Reply by email

Sven Barth
to Sven Barth
Sven Barth wrote 11 lines
On 12.09.2011 18:40, anta40 wrote: > Sure I can wait. It's not a high priority for me. You should finish your > thesis first. Sorry that it took so long, but I've now fixed the problem in my branch. It's located at http://svn.freepascal.org/svn/fpc/branches/svenbarth/nativent and until the changes are merged to trunk you might want to use this (it's based on a recent 2.7.1). Alternatively you can apply the changes I've done locally in your own source. Only %fpcdir%\rtl\nativent\system.pp was modified.

The changes are now part of trunk.

Regards,
Sven

Reply by email