Hello i written a paper in SL Ezine , you can download here , Bye Matias Vara .
4 comments:
Anonymous
said...
Hello, Matias. I'm very interested in Toro, but somehow I can't compile it well. I'm using fpc 2.2.0, so there MUST be changes (coz I've seen some errors due to the change of, i.e, TMemoryManager). Perhaps you could tell me what to do since I don't have much experience about OS. Btw, keep up the good work. Perhaps, Toro can be a Unix-C competitor (as Toro-Pascal, maybe?)
Begin 0.01 version TORO is for Embedded System you can dedicate the OS for one application . The last version as real Operative System is a 1.1.3 . This version has all code necesary for do an Operative System , only need some drivers . The tutorials for compile toro 0.02 works fine please give me more information about the problem . Un saludo.
Sorry for a long wait, here's the detailed error after running Compile.cmd:
C:\Toro32>cd rtl
C:\Toro32\rtl>fpc.exe -Us System.pas -Fii386/ -FEunits/ Free Pascal Compiler version 2.2.0 [2007/10/04] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Win32 for i386 Compiling System.pas i386.inc(897,19) Error: overloaded identifier "Get_Frame" isn't a function System.pas(6170,50) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast System.pas(6763,18) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(6782,18) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(6814,18) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(6850,18) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(7872,48) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast System.pas(7888,32) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast System.pas(8537,23) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(8537,23) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(8541,23) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(8837,5) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(8840,3) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(8840,3) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(8840,3) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(8841,3) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array" System.pas(8862,16) Warning: Use of +offset(%ebp) for parameters invalid here System.pas(8868,2) Warning: Use of +offset(%ebp) for parameters invalid here System.pas(11144) Fatal: There were 13 errors compiling module, stopping Fatal: Compilation aborted Error: C:\fpc\2.2.0\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)
C:\Toro32\rtl>fpc.exe -Us ObjPas.pas -FEunits/ Free Pascal Compiler version 2.2.0 [2007/10/04] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Win32 for i386 Compiling ObjPas.pas 27 lines compiled, 0.0 sec
C:\Toro32\rtl>as.exe i386\wprt0.as -ounits/wprt0.o i386\wprt0.as: Assembler messages: i386\wprt0.as:29: Warning: using `%eax' instead of `%ax' due to `l' suffix i386\wprt0.as:30: Warning: using `%eax' instead of `%ax' due to `l' suffix i386\wprt0.as:31: Warning: using `%eax' instead of `%ax' due to `l' suffix i386\wprt0.as:32: Warning: using `%eax' instead of `%ax' due to `l' suffix
C:\Toro32\rtl>cd ..
C:\Toro32>FPC -Furtl/units/ toro.lpr -vwn Free Pascal Compiler version 2.2.0 [2007/10/04] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Win32 for i386 Compiling toro.lpr Compiling rtl\Kernel.pas Compiling rtl\i386\Arch.pas Compiling rtl\Console.pas Compiling rtl\Process.pas Compiling rtl\Errno.pas Compiling rtl\Console.pas Compiling rtl\Memory.pas Memory.pas(707,15) Error: Incompatible types: got "<address of function(var Pointer, LongInt, LongInt):^untyped;Register>" expected "<procedure variable type of function(var Pointer, LongInt):^untyped;Register>" Memory.pas(719) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Error: C:\fpc\2.2.0\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)
C:\Toro32>boot\build.exe 1 toro.exe boot/boot.bin An unhandled exception occurred at $004011A1 : EInOutError : File not found $004011A1 $00401548
C:\Toro32>del kernel.bin Could Not Find C:\Toro32\kernel.bin
C:\Toro32>del toro.o Could Not Find C:\Toro32\toro.o
C:\Toro32>del toro.exe Could Not Find C:\Toro32\toro.exe
Hello , I must d32o some modification for compile TORO32 on FPC 2.2.0, but TORO64 is compiled fine using fpc 2.2.1 . In version 0.03 i will do the modifications for compile TORO32 using fpc 2.2.0 for the moment you must use the version 2.0.2 . Un saludo Matias Vara.
4 comments:
Hello, Matias. I'm very interested in Toro, but somehow I can't compile it well. I'm using fpc 2.2.0, so there MUST be changes (coz I've seen some errors due to the change of, i.e, TMemoryManager). Perhaps you could tell me what to do since I don't have much experience about OS. Btw, keep up the good work. Perhaps, Toro can be a Unix-C competitor (as Toro-Pascal, maybe?)
Begin 0.01 version TORO is for Embedded System you can dedicate the OS for one application .
The last version as real Operative System is a 1.1.3 .
This version has all code necesary for do an Operative System , only need some drivers .
The tutorials for compile toro 0.02 works fine please give me more information about the problem .
Un saludo.
Sorry for a long wait, here's the detailed error after running Compile.cmd:
C:\Toro32>cd rtl
C:\Toro32\rtl>fpc.exe -Us System.pas -Fii386/ -FEunits/
Free Pascal Compiler version 2.2.0 [2007/10/04] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling System.pas
i386.inc(897,19) Error: overloaded identifier "Get_Frame" isn't a function
System.pas(6170,50) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast
System.pas(6763,18) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(6782,18) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(6814,18) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(6850,18) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(7872,48) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast
System.pas(7888,32) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast
System.pas(8537,23) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(8537,23) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(8541,23) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(8837,5) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(8840,3) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(8840,3) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(8840,3) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(8841,3) Error: Wrong number of parameters specified for call to "fpc_Write_Text_Pchar_as_Array"
System.pas(8862,16) Warning: Use of +offset(%ebp) for parameters invalid here
System.pas(8868,2) Warning: Use of +offset(%ebp) for parameters invalid here
System.pas(11144) Fatal: There were 13 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\fpc\2.2.0\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)
C:\Toro32\rtl>fpc.exe -Us ObjPas.pas -FEunits/
Free Pascal Compiler version 2.2.0 [2007/10/04] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling ObjPas.pas
27 lines compiled, 0.0 sec
C:\Toro32\rtl>as.exe i386\wprt0.as -ounits/wprt0.o
i386\wprt0.as: Assembler messages:
i386\wprt0.as:29: Warning: using `%eax' instead of `%ax' due to `l' suffix
i386\wprt0.as:30: Warning: using `%eax' instead of `%ax' due to `l' suffix
i386\wprt0.as:31: Warning: using `%eax' instead of `%ax' due to `l' suffix
i386\wprt0.as:32: Warning: using `%eax' instead of `%ax' due to `l' suffix
C:\Toro32\rtl>cd ..
C:\Toro32>FPC -Furtl/units/ toro.lpr -vwn
Free Pascal Compiler version 2.2.0 [2007/10/04] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling toro.lpr
Compiling rtl\Kernel.pas
Compiling rtl\i386\Arch.pas
Compiling rtl\Console.pas
Compiling rtl\Process.pas
Compiling rtl\Errno.pas
Compiling rtl\Console.pas
Compiling rtl\Memory.pas
Memory.pas(707,15) Error: Incompatible types: got "<address of function(var Pointer, LongInt, LongInt):^untyped;Register>" expected "<procedure variable type of function(var Pointer, LongInt):^untyped;Register>"
Memory.pas(719) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\fpc\2.2.0\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)
C:\Toro32>boot\build.exe 1 toro.exe boot/boot.bin
An unhandled exception occurred at $004011A1 :
EInOutError : File not found
$004011A1
$00401548
C:\Toro32>del kernel.bin
Could Not Find C:\Toro32\kernel.bin
C:\Toro32>del toro.o
Could Not Find C:\Toro32\toro.o
C:\Toro32>del toro.exe
Could Not Find C:\Toro32\toro.exe
C:\Toro32>cd ..
Press any key to continue . . .
Hello , I must d32o some modification for compile TORO32 on FPC 2.2.0, but TORO64 is compiled fine using fpc 2.2.1 . In version 0.03 i will do the modifications for compile TORO32 using fpc 2.2.0 for the moment you must use the version 2.0.2 .
Un saludo Matias Vara.
Post a Comment