Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-03

Error when rebuilding the IDE in Lazarus 1.6.4, AMD64

12 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi all,

Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as downloaded from SourceForge, I upgraded an instance of 1.6.2 (from the same source) which was working just fine. I'm running 64-bit Linux Mint 'Betsy', i.e. the Debian-based version of Mint, on a AMD Phenom x2. The problem is that rebuilding the IDE doesn't seem to work.

The error is shown as 'Generic error while linking'. I don't think the source line is relevant, as it tags the 'end.' in lazarus.pp. The exit code returned is 512.

Any ideas, please?

Thanks,

Brian.

Reply by email

brian
to Unknown author
brian666--- wrote 14 lines
Hi all, Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as downloaded from SourceForge, I upgraded an instance of 1.6.2 (from the same source) which was working just fine. I'm running 64-bit Linux Mint 'Betsy', i.e. the Debian-based version of Mint, on a AMD Phenom x2. The problem is that rebuilding the IDE doesn't seem to work. The error is shown as 'Generic error while linking'. I don't think the source line is relevant, as it tags the 'end.' in lazarus.pp. The exit code returned is 512. Any ideas, please?

P.S. Same error when trying to build a 'Hello, World' simple program.

Reply by email

Mark Morgan Lloyd
to brian
brian wrote
On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote:> Hi all,> > Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as> downloaded from SourceForge, I upgraded an instance of 1.6.2 (from the> same source) which was working just fine. I'm running 64-bit Linux> Mint 'Betsy', i.e. the Debian-based version of Mint, on a AMD Phenom> x2. The problem is that rebuilding the IDE doesn't seem to work.> > The error is shown as 'Generic error while linking'. I don't think the> source line is relevant, as it tags the 'end.' in lazarus.pp. The exit> code returned is 512.> > Any ideas, please?> P.S. Same error when trying to build a 'Hello, World' simple program.

I built on amd64 using pukka Debian a couple of days ago with no problems. GNU ld (GNU Binutils for Debian) 2.25

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

brian
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 16 lines
On 05/03/17 15:00, brian via Lazarus wrote: > On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote:> Hi all,> > > Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 > as> downloaded from SourceForge, I upgraded an instance of 1.6.2 > (from the> same source) which was working just fine. I'm running > 64-bit Linux> Mint 'Betsy', i.e. the Debian-based version of Mint, > on a AMD Phenom> x2. The problem is that rebuilding the IDE doesn't > seem to work.> > The error is shown as 'Generic error while > linking'. I don't think the> source line is relevant, as it tags the > 'end.' in lazarus.pp. The exit> code returned is 512.> > Any ideas, > please?> > P.S. Same error when trying to build a 'Hello, World' simple program. I built on amd64 using pukka Debian a couple of days ago with no problems. GNU ld (GNU Binutils for Debian) 2.25

The version of binutils in the LMDE repositories is 2.25-5. I did do an apt-get update, upgrade and -f install before posting. Everything was up to date.

Brian.

Reply by email

Luca Olivetti
to Unknown author: Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as downloaded from…

El 05/03/17 a les 15:15, brian666--- via Lazarus ha escrit:

The error is shown as 'Generic error while linking'. I don't think the source line is relevant, as it tags the 'end.' in lazarus.pp. The exit code returned is 512.

Right click on the messages window, copy -> copy all/original messages to clipboard
Then open a text editor and paste what you just copied, so you can see the exact linker error.

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007

Reply by email

brian
to Luca Olivetti
Luca Olivetti wrote 13 lines
El 05/03/17 a les 15:15, brian666--- via Lazarus ha escrit: > > The error is shown as 'Generic error while linking'. I don't think the > source line is relevant, as it tags the 'end.' in lazarus.pp. The exit > code returned is 512. Right click on the messages window, copy -> copy all/original messages to clipboard Then open a text editor and paste what you just copied, so you can see the exact linker error. Bye

Thank you, that found more details of the problem, but I'm still at a loss how to fix it. I think this is the relevant section of the messages...

Show quoted text 17 lines
/usr/bin/ld: /usr/lib/fpc/3.0.2/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text' /usr/bin/ld: final link failed: Bad value /usr/share/lazarus/1.6.4/ide/lazarus.pp(154,1) Error: (9013) Error while linking /usr/share/lazarus/1.6.4/ide/lazarus.pp(154,1) Fatal: (10026) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted make[2]: *** [lazarus] Error 1 make[1]: *** [idepkg] Error 2 make: *** [idepkg] Error 2 Error: /usr/bin/ppcx64 returned an error exitcode Makefile:4004: recipe for target 'lazarus' failed make[2]: Leaving directory '/usr/share/lazarus/1.6.4/ide' Makefile:4430: recipe for target 'idepkg' failed make[1]: Leaving directory '/usr/share/lazarus/1.6.4/ide' Makefile:3074: recipe for target 'idepkg' failed make: Leaving directory '/usr/share/lazarus/1.6.4'

Reply by email

Luca Olivetti
to brian

El 05/03/17 a les 18:53, brian via Lazarus ha escrit:

Show quoted text 18 lines
On 03/05/2017 11:59 AM, Luca Olivetti via Lazarus wrote: > El 05/03/17 a les 15:15, brian666--- via Lazarus ha escrit: > >> >> The error is shown as 'Generic error while linking'. I don't think the >> source line is relevant, as it tags the 'end.' in lazarus.pp. The exit >> code returned is 512. > > Right click on the messages window, copy -> copy all/original messages > to clipboard > Then open a text editor and paste what you just copied, so you can see > the exact linker error. > > Bye Thank you, that found more details of the problem, but I'm still at a loss how to fix it. I think this is the relevant section of the messages...

I don't know how to fix it either, but try searching google for the message "unrecognized relocation (0x2a)": there are a couple of bug reports against ubuntu and debian and maybe they apply to your distribution.

Show quoted text 21 lines
> > > /usr/bin/ld: /usr/lib/fpc/3.0.2/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text' > /usr/bin/ld: final link failed: Bad value > /usr/share/lazarus/1.6.4/ide/lazarus.pp(154,1) Error: (9013) Error while linking > /usr/share/lazarus/1.6.4/ide/lazarus.pp(154,1) Fatal: (10026) There were 1 errors compiling module, stopping > Fatal: (1018) Compilation aborted > make[2]: *** [lazarus] Error 1 > make[1]: *** [idepkg] Error 2 > make: *** [idepkg] Error 2 > Error: /usr/bin/ppcx64 returned an error exitcode > Makefile:4004: recipe for target 'lazarus' failed > make[2]: Leaving directory '/usr/share/lazarus/1.6.4/ide' > Makefile:4430: recipe for target 'idepkg' failed > make[1]: Leaving directory '/usr/share/lazarus/1.6.4/ide' > Makefile:3074: recipe for target 'idepkg' failed > make: Leaving directory '/usr/share/lazarus/1.6.4'
Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007

Reply by email

brian
to Luca Olivetti
Luca Olivetti wrote 27 lines
El 05/03/17 a les 18:53, brian via Lazarus ha escrit: > On 03/05/2017 11:59 AM, Luca Olivetti via Lazarus wrote: >> El 05/03/17 a les 15:15, brian666--- via Lazarus ha escrit: >> >>> >>> The error is shown as 'Generic error while linking'. I don't think >>> the >>> source line is relevant, as it tags the 'end.' in lazarus.pp. The >>> exit >>> code returned is 512. >> >> Right click on the messages window, copy -> copy all/original messages >> to clipboard >> Then open a text editor and paste what you just copied, so you can see >> the exact linker error. >> >> Bye > > Thank you, that found more details of the problem, but I'm still at a > loss how to fix it. I think this is the relevant section of the > messages... I don't know how to fix it either, but try searching google for the message "unrecognized relocation (0x2a)": there are a couple of bug reports against ubuntu and debian and maybe they apply to your distribution.

The bug reports are against the version of libc6 (2.21) found in Debian testing. Mint Debian uses Jessie, aka stable, and my libc6 is definitely not the version which is supposed to exhibit the bug.

Show quoted text 8 lines
brian at brian ~ $ dpkg -l libc6:amd64 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-========================-=================-=================-====================================================== ii libc6:amd64 2.19-18+deb8u7 amd64 GNU C Library: Shared libraries brian at brian ~ $

Reply by email

brian
to Mark Morgan Lloyd: I built on amd64 using pukka Debian a couple of days ago with no problems. GNU ld (GNU…
Mark Morgan Lloyd wrote 16 lines
On 05/03/17 15:00, brian via Lazarus wrote: > On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote:> Hi all,> > > Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 > as> downloaded from SourceForge, I upgraded an instance of 1.6.2 > (from the> same source) which was working just fine. I'm running > 64-bit Linux> Mint 'Betsy', i.e. the Debian-based version of Mint, > on a AMD Phenom> x2. The problem is that rebuilding the IDE doesn't > seem to work.> > The error is shown as 'Generic error while > linking'. I don't think the> source line is relevant, as it tags the > 'end.' in lazarus.pp. The exit> code returned is 512.> > Any ideas, > please?> > P.S. Same error when trying to build a 'Hello, World' simple program. I built on amd64 using pukka Debian a couple of days ago with no problems. GNU ld (GNU Binutils for Debian) 2.25

Mark, could you please check your version of libc6?

Thanks.

Reply by email

Mark Morgan Lloyd
to brian
brian wrote
On 03/05/2017 10:35 AM, Mark Morgan Lloyd via Lazarus wrote:> On 05/03/17 15:00, brian via Lazarus wrote:>> On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote:> Hi all,> >>> Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4>> as> downloaded from SourceForge, I upgraded an instance of 1.6.2>> (from the> same source) which was working just fine. I'm running>> 64-bit Linux> Mint 'Betsy', i.e. the Debian-based version of Mint,>> on a AMD Phenom> x2. The problem is that rebuilding the IDE doesn't>> seem to work.> > The error is shown as 'Generic error while>> linking'. I don't think the> source line is relevant, as it tags the>> 'end.' in lazarus.pp. The exit> code returned is 512.> > Any ideas,>> please?>>> P.S. Same error when trying to build a 'Hello, World' simple program.> > I built on amd64 using pukka Debian a couple of days ago with no> problems. GNU ld (GNU Binutils for Debian) 2.25> Mark, could you please check your version of libc6?

Like this?

$ sudo ldconfig -v |grep libc
..
libc.so.6 -> libc-2.19.so

ar, as and ld .

$ uname -a
Linux pye-dev-04 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux

That should be an ablutions-standard Debian "Jessie". In the interest of full disclosure it's had deb-multimedia enabled to install something like Flash at some point, but apart from that I'd expect no surprises.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

brian
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 35 lines
On 06/03/17 00:30, brian via Lazarus wrote: > On 03/05/2017 10:35 AM, Mark Morgan Lloyd via Lazarus wrote:> On > 05/03/17 15:00, brian via Lazarus wrote:>> On 03/05/2017 09:15 AM, > brian666--- via Lazarus wrote:> Hi all,> >>> Just upgraded to the > AMD 64 versions of FPC 3.02 and Lazarus 1.6.4>> as> downloaded from > SourceForge, I upgraded an instance of 1.6.2>> (from the> same > source) which was working just fine. I'm running>> 64-bit Linux> > Mint 'Betsy', i.e. the Debian-based version of Mint,>> on a AMD > Phenom> x2. The problem is that rebuilding the IDE doesn't>> seem to > work.> > The error is shown as 'Generic error while>> linking'. I > don't think the> source line is relevant, as it tags the>> 'end.' in > lazarus.pp. The exit> code returned is 512.> > Any ideas,>> > please?>>> P.S. Same error when trying to build a 'Hello, World' > simple program.> > I built on amd64 using pukka Debian a couple of > days ago with no> problems. GNU ld (GNU Binutils for Debian) 2.25> > Mark, could you please check your version of libc6? Like this? $ sudo ldconfig -v |grep libc .. libc.so.6 -> libc-2.19.so ar, as and ld . $ uname -a Linux pye-dev-04 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux That should be an ablutions-standard Debian "Jessie". In the interest of full disclosure it's had deb-multimedia enabled to install something like Flash at some point, but apart from that I'd expect no surprises.

Thanks. The bug reports I read (pointed to by Luca) suggested that it was the version of libc6 on the system which indicated the problem would occur, but the suggestion was that it has to be the version in testing (2.21, I think). You have exactly the same version as I do, which is what I would expect, LMDE is explicitly said to be based on Jessie. I think it's time to put a vanilla Jessie in a VM and set up Lazarus and FPC in that (takes a day or so thanks to this @#$%^*& satellite internet!) - unless someone else surprises me and comes up with a fix. I recall it being some kind of problem with a much earlier version of LMDE and Lazarus/FPC which drove me from Mint to Debian in the first place. I don't know how they do it... :(

Brian.

Reply by email

brian
to Unknown author: Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as downloaded from…
brian666--- wrote 14 lines
Hi all, Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as downloaded from SourceForge, I upgraded an instance of 1.6.2 (from the same source) which was working just fine. I'm running 64-bit Linux Mint 'Betsy', i.e. the Debian-based version of Mint, on a AMD Phenom x2. The problem is that rebuilding the IDE doesn't seem to work. The error is shown as 'Generic error while linking'. I don't think the source line is relevant, as it tags the 'end.' in lazarus.pp. The exit code returned is 512. Any ideas, please?

Well, the problem appears to be with FPC 3.0.2. Writing just a simple 'Hello World' using the FP IDE exhibits the same problem. Downgrading to FP 3.0.0 and Lazarus 1.6.2-1 means everything is back to normal. I guess I'd better head over to the Pascal group and post details there, unless somebody has beaten me to it.

Brian.

Reply by email