On Mon, 7 Feb 2011, Kjow wrote:
I was trying to compile FPC 2.5.1 from sources and this was the output: C:/Develop/fpc/2.5.1/compiler/ppc386.exe -di386 -Ur -Xs -O2 -n -Sg -FuC:/Develop /fpc/2.5.1/rtl/units/i386-win32 -FuC:/Develop/fpc/2.5.1/packages/fv/units/i386-w in32 -FuC:/Develop/fpc/2.5.1/packages/gdbint/units/i386-win32 -FuC:/Develop/fpc/ 2.5.1/packages/regexpr/units/i386-win32 -FuC:/Develop/fpc/2.5.1/packages/fcl-bas e/units/i386-win32 -FuC:/Develop/fpc/2.5.1/packages/fcl-xml/units/i386-win32 -Fu C:/Develop/fpc/2.5.1/packages/chm/units/i386-win32 -FE. -FUunits/i386-win32 -dRE LEASE -dNODEBUG -Xe -k--allow-multiple-definition fp.pas C:\Program Files (x86)\ATI Stream\bin\x86_64\ld.exe: unrecognised emulation mode : i386pe Supported emulations: i386pep fp.pas(552,1) Error: Error while linking fp.pas(552,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[4]: *** [fp.exe] Error 1 make[4]: Leaving directory `C:/Develop/fpc/2.5.1/ide' make[3]: *** [buildfp] Error 2 make[3]: Leaving directory `C:/Develop/fpc/2.5.1/ide' make[2]: *** [gdb] Error 2 make[2]: Leaving directory `C:/Develop/fpc/2.5.1/ide' make[1]: *** [ide_all] Error 2 make[1]: Leaving directory `C:/Develop/fpc/2.5.1' make: *** [build-stamp.i386-win32] Error 2 C:\Develop\fpc\2.5.1> Simply removing ATI Stream from Windows, FPC compiled well. Is it a bug?
No. FPC looks in the PATH environment variable for the external tools. Obviously, ATI stream adds something to the path before the FPC path itself.
Just reorder the PATH so the FPC path is before the ATI stream path. Or use the -FD option to set the path where the externa tools are searched. Michael. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
