Compilation error with fpcOPT -dTEST_WIN64_SEH
Original Reporter info from Mantis: BigChimp
-
Reporter name: Reinier Olislagers
Original Reporter info from Mantis: BigChimp
- Reporter name: Reinier Olislagers
Description:
Compiling trunk r23487 with fpcup and fpcOPT -dTEST_WIN64_SEH gives a compilation error (see below)
Compiling without -dTEST_WIN64_SEH gives no problems
The installer encountered the following error:
External command "C:/development/fpctrunk/compiler/ppcx64.exe -Twin64 -FUfcl-stl
\units\x86_64-win64\ -FuC:\development\fpctrunk\rtl\units\x86_64-win64\ -Fufcl-s
tl\src -Ur -Xs -O2 -n -FuC:/development/fpctrunk/rtl/units/x86_64-win64 -gw -gl
-dTEST_WIN64_SEH -dx86_64 -dRELEASE -S2h -viq fcl-stl\BuildUnit_fcl_stl.pp" fail
ed with exit code 1. Console output:
Target OS: Win64 for x64
Compiling fcl-stl\BuildUnit_fcl_stl.pp
Compiling .\fcl-stl\src\garrayutils.pp
Compiling .\fcl-stl\src\gdeque.pp
Compiling .\fcl-stl\src\gset.pp
Compiling .\fcl-stl\src\gmap.pp
Compiling .\fcl-stl\src\gvector.pp
Compiling .\fcl-stl\src\gpriorityqueue.pp
Compiling .\fcl-stl\src\gqueue.pp
Compiling .\fcl-stl\src\gtree.pp
Compiling .\fcl-stl\src\gstack.pp
gtree.pp(88,4) Error: Generic methods cannot have nested procedures
gtree.pp(118,4) Error: Generic methods cannot have nested procedures
gtree.pp(136,4) Error: Generic methods cannot have nested procedures
gtree.pp(140) Fatal: There were 3 errors compiling module, stopping
Fatal: Compilation aborted
Steps to reproduce:
Run fpcup with - formatted for clarity; the --fpcOPT is probably the only relevant parameter:
--binutilsdir="c:\development\fpcbootstrap64" --fpcbootstrapdir="c:\development\fpcbootstrap64" --fpcdir="c:\development\fpctrunk" --lazdir="c:\development\lazarus64_fpctrunk" --fpcuplinkname="" --fpcOPT="-gw -gl -dTEST_WIN64_SEH" --keeplocalchanges --lazlinkname="Laz64FPCTrunk" --lazOPT="-gw -gl" --primary-config-path="c:\development\lazarus64settings_fpctrunk" --noconfirm --fpcURL="http://svn.freepascal.org/svn/fpc/trunk" --verbose
Presumably compiling by hand gives the same result.
Additional information:
Originally reported on the forum; see http://lazarus.freepascal.org/index.php/topic,19631.msg111886.html#msg111886
Mantis conversion info:
- Mantis ID: 23724
- OS: Windows
- OS Build: Vista
- Build: r23487
- Platform: x64 (with x86 compiler)
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 23519 (#cb1098c2)
- Target version: 2.7.1