Recent

Author Topic: [SOLVED] Can't find unit gset  (Read 285 times)

julkas

  • Hero Member
  • *****
  • Posts: 537
  • KISS principle / Lazarus 2.0.6 / FPC 3.0.4
[SOLVED] Can't find unit gset
« on: May 31, 2019, 11:15:53 am »
My code compiles and runs on Linux and OSX without problems. On Windows compilation fails. Any idea ?

Code: Text  [Select]
  1. $ fpc -O3 -XX -CX ftreapbench.lpr
  2. ftreapbench.lpr(5,20) Fatal: Can't find unit gset used by ftreapbench
  3. Fatal: Compilation aborted
  4. Error: C:\Users\travis\build\JulStrat\ftreap\fpc\bin\i386-win32\ppc386.exe returned an error exitcode
  5. The command "fpc -O3 -XX -CX ftreapbench.lpr" failed and exited with 1 during .
  6.  
« Last Edit: May 31, 2019, 12:10:47 pm by julkas »
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7918
Re: [FATAL] Can't find unit gset
« Reply #1 on: May 31, 2019, 11:37:11 am »
gset is a standard unit afaik. So seems some misconfiguration. The RTL is found, but packages files are not.

Check your -Fu line in your fpc.cfg

julkas

  • Hero Member
  • *****
  • Posts: 537
  • KISS principle / Lazarus 2.0.6 / FPC 3.0.4
Re: [FATAL] Can't find unit gset
« Reply #2 on: May 31, 2019, 12:10:27 pm »
Thanks @marcov.
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;