I am a newer for lazarus(I have used the delphi for several years),After i installed the Lazarus on linux,then i test the fpc,the error displayed on console:
[xty@localhost lazarus1.8.4]$ fpc hello.pas -T
Error: Illegal parameter: -T
Error: /usr/bin/ppcx64 returned an error exitcode
[xty@localhost lazarus1.8.4]$ fpc hello.pas
Free Pascal Compiler version 3.0.4 [2017/10/02] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling hello.pas
Linking hello
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: /usr/lib64/fpc/3.0.4/units/x86_64-linux/rtl/prt0.o: unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: 错误的值
hello.pas(4,1) Error: Error while linking
hello.pas(4,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
The version
fpc-3.0.4-1.x86_64.rpm
lazarus-1.8.4-0.x86_64.rpm
The linux version
cat /proc/version
Linux version 4.4.13-200.nd7.3.x86_64 (mockbuild@kojibuilder8) (gcc version 4.9.3 20150626 (4.9.3-3) (GCC) ) #1 SMP Sat Jul 8 23:22:12 CST 2017
Linux localhost 4.4.13-200.nd7.3.x86_64 #1 SMP Sat Jul 8 23:22:12 CST 2017 x86_64 x86_64 x86_64 GNU/Linux
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Release: 5.0
Codename: x86
GNU ld version 2.24
Any one can help me?
Thank you very much!