Forum > Linux

[Solved] graphics32 package compilation fails on fresh FPC/Lazarus Linux x64

(1/1)

Jerome Lioret:
Hello,

This is my first post and I wonder if I have chosen the right forum channel.

I have the following config on a fresh VirtualBox Debian 10.7 machine:
Lazarus 2.0.10 r63526 FPC 3.2.0 x86_64-linux-gtk2

Trying to compile GR32_Lazarus.lpk ends up with error:


--- Quote ---GR32_BlendSSE2.pas(282,23) Error: Generating PIC, but reference is not PIC-safe
--- End quote ---

The error occurs in an ASM block in function:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---207      procedure BlendMems_SSE2(F: TColor32; B: PColor32; Count: Integer); {$IFDEF FPC} assembler; nostackframe; {$ENDIF}
Code block:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---279      MOVD      XMM4,ECX280      PXOR      XMM3,XMM3281      PUNPCKLBW XMM4,XMM3282      MOV       RAX,bias_ptr
Did someone already face difficulties to install graphics32 on such a config, or on another, who could help to solve?

Thank you,
Jerome

Jerome Lioret:
Hello,

I finally managed to install graphics32 using the Online Package Manager.
It is really straightforward.

Marking my own post as solved (if possible :)).

Jerome Lioret

marcov:
On x86_64 globals generally need to addressed indirectly using RIP so if biasptr is the global

lea   rax, rip+biasptr

or so.

Navigation

[0] Message Index

Go to full version