[fpc-devel] Building trunk on Win32

Leonardo M. Ramé martinrame at yahoo.com
Sun Nov 27 14:45:36 CET 2011


----- Original Message -----

> From: Sergei Gorelkin <sergei_gorelkin at mail.ru>
> To: fpc-devel at lists.freepascal.org
> Cc: 
> Sent: Sunday, November 27, 2011 9:07 AM
> Subject: Re: [fpc-devel] Building trunk on Win32
> 
> 27.11.2011 13:26, Jonas Maebe пишет:
>> 
>>  On 27 Nov 2011, at 12:19, Sergei Gorelkin wrote:
>> 
>>>  27.11.2011 13:09, Jonas Maebe пишет:
>>>> 
>>>>  I regularly use OPT at the top level myself and I've never seen 
> it being ignored in that situation.
>>>> 
>>>  Earlier in this thread Leonardo wrote:
>>> 
>>>>>  Sven, I added OPT="-gl" but I got exactly the same 
> output. I also tried with clean all OPT="-gl" and got the same.
>>> 
>>>   From this I concluded that something goes wrong with OPT at top level 
> at least in this particular case.
>> 
>>  It can also mean that the code in the lineinfo unit didn't work for 
> some reason, which seems more likely to me. Even the -Xs added by the top level 
> "make all" doesn't cause problems in that case, because the OPT 
> parameters are added at the end of the command line and -g will disable -Xs if 
> it comes after it.
>> 
> After re-testing and seeing that OPT is indeed passed correctly, I agree that I 
> had made a wrong 
> conclusion here. But let's wait for feedback; if compiler alone can be 
> cycled with 
> DISABLE_TLS_DIRECTORY then the whole trunk is very probably can build that way 
> too.
> 
> Sergei
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 

Well, I found I had an e:\pp directory containing an fpc 2.5.1, and my PATH was pointing to it, so my previous tests could have been influenced by some files from that directory.

After deleting it, I compiled from top level directory using:

e:\fpc-bin\bin\i386-win32\make clean OPT="-dDISABLE_TLS_DIRECTORY"  all PP=e:\fpc-bin\bin\i386-win32\ppc386.exe

and it worked without issues.
 
Then, I did e:\fpc-bin\bin\i386-win32\make clean all PP=e:\fpc-bin\bin\i386-win32\ppc386.exe and got this:

...
win32/libimpvarutils.a E:/fpc/rtl/units/i386-win32/libimpsharemem.a E:/fpc/rtl/units/i386-win32/libimpfpintres.a
e:/FPC-bin/bin/i386-Win32/rm.exe -f E:/fpc/rtl/units/i386-win32/math.rst E:/fpc/rtl/units/i386-win32/varutils.rst E:/fpc/rtl/units/i386-win32/typinfo.rst E:/fpc/rtl/units/i386-win32/variants.rst E:/fpc/rtl/units/i386-win32/classes.rst E:/fpc/rtl/units/i386-win32/dateutils.rst E:/fpc/rtl/units/i386-win32/sysconst.rst
e:/FPC-bin/bin/i386-Win32/rm.exe -f fpcmade.i386-win32 Package.fpc ppas.bat script.res link.res  
e:/FPC-bin/bin/i386-Win32/rm.exe -f *.s *_ppas.bat
make[7]: Leaving directory `E:/fpc/rtl/win32'
make[6]: Leaving directory `E:/fpc/rtl'
e:/fpc-bin/bin/i386-win32/make -C E:/fpc/rtl 'OPT=' all
make[6]: Entering directory `E:/fpc/rtl'
e:/fpc-bin/bin/i386-win32/make -C win32 all
make[7]: Entering directory `E:/fpc/rtl/win32'
E:/fpc/compiler/ppc2.exe -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../win -FE. -FUE:/fpc/rtl/units/i386-win32 -di386 -dRELEASE -Us -Sg system.pp -Fi../win
make[7]: *** [system.ppu] Error 255
make[7]: Leaving directory `E:/fpc/rtl/win32'
make[6]: *** [win32_all] Error 2
make[6]: Leaving directory `E:/fpc/rtl'
make[5]: *** [rtl] Error 2
make[5]: Leaving directory `E:/fpc/compiler'
make[4]: *** [next] Error 2
make[4]: Leaving directory `E:/fpc/compiler'
make[3]: *** [ppc3.exe] Error 2
make[3]: Leaving directory `E:/fpc/compiler'
make[2]: *** [cycle] Error 2
make[2]: Leaving directory `E:/fpc/compiler'
make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory `E:/fpc'
e:\fpc-bin\bin\i386-win32\make: *** [build-stamp.i386-win32] Error 2

Conclussion, the DISABLE_TLS_DIRECTORY worked as expected. 

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the fpc-devel mailing list