FPC RPM 3.0.4RC1 package for x86_64 fails to link on Fedora Core 21
Original Reporter info from Mantis: Mattias @lazidealist
-
Reporter name: Mattias Gaertner
Original Reporter info from Mantis: Mattias @lazidealist
- Reporter name: Mattias Gaertner
Description:
Linking fails with
/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: Bad value
test.pas(3,1) Error: Error while linking
Steps to reproduce:
Install FPC
ftp://freepascal.stack.nl/pub/mirrors/fpc/beta/3.0.4-rc1/fpc-3.0.4-0.rc1.x86_64.rpm
on Fedora Core 21.
When compiling a program, even the simplest "begin writeln; end.", I get the following:
Free Pascal Compiler version 3.0.4rc1 [2017/07/02] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Linking test
/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: Bad value
test.pas(3,1) Error: Error while linking
test.pas(3,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
GNU ld version 2.24
Notes:
- The i386 rpm works on the 32bit version of Fedora Core 21.
- The previous rpm FPC 3.0.2 works without problem.
- Building a FPC 3.0.4RC1 from svn works too and can link without error.
Mantis conversion info:
- Mantis ID: 32251
- Version: 3.0.4