#1 2024-03-24 14:57:22

slapshot
Member
Registered: 2020-01-21
Posts: 17

Building mvc-blog example broken in Linux

Hello, just trying to build the example project here in Manjaro Linux but I got a ld error. I'm not able to understand the real problem here. Thank you

Compile Project, Mode: Default, Target: /home/antonio/fpcupdeluxe/ccr/mORMot2/ex/mvc-blog/exe/MVCServer: Exit code 1, Errors: 2, Warnings: 1, Hints: 2
Hint: Start of reading config file /home/antonio/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/antonio/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.2.2-r0d122c49 [2024/02/28] for x86_64
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Linux for x86-64
Verbose: Compiling MVCServer.dpr
Verbose: Compiling MVCModel.pas
Verbose: Compiling MVCViewModel.pas
Verbose: Writing Resource String Table file: MVCViewModel.rsj
Verbose: Linking /home/antonio/fpcupdeluxe/ccr/mORMot2/ex/mvc-blog/exe/MVCServer
Warning: linker: /usr/bin/ld: /home/antonio/fpcupdeluxe/ccr/mORMot2/ex/mvc-blog/lib/x86_64-linux/MVCViewModel.o: in function `.La6':
Error: MVCViewModel.pas:(.debug_info+0x36c): undefined reference to `DBG2_$MORMOT.REST.MVC_$$_IMVCAPPLICATION'
MVCServer.dpr(85,1) Error: Error while linking
MVCServer.dpr(85,1) Verbose: There were 1 errors compiling module, stopping
Verbose: Compilation aborted
Verbose: /home/antonio/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode

p.s. Windows is fine.

Last edited by slapshot (2024-03-24 14:57:48)

Offline

#2 2024-03-24 19:47:09

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,242
Website

Re: Building mvc-blog example broken in Linux

I am not able to reproduce it here.

Perhaps something wrong with your compiler?
How did you compile it?

Or did you try to force a rebuild of the package?

Or perhaps try to switch your debug info to Dwarf 3.
I guess the problem may be from Dwarf 2 debugging info error.
Ensure both the mormot package and the project has the same kind of debugging info.

Offline

#3 2024-03-25 19:01:04

slapshot
Member
Registered: 2020-01-21
Posts: 17

Re: Building mvc-blog example broken in Linux

ab wrote:

Or perhaps try to switch your debug info to Dwarf 3.
I guess the problem may be from Dwarf 2 debugging info error.
Ensure both the mormot package and the project has the same kind of debugging info.

Thank you Arnaud, this last one did the magic !

Antonio

Offline

Board footer

Powered by FluxBB