synopse / mORMot2

OpenSource RESTful ORM/SOA/MVC Framework for Delphi and FreePascal
https://synopse.info
Other
485 stars 122 forks source link

sqlite3.o: undefined reference to `fcntl64' #247

Closed velissariouc closed 2 months ago

velissariouc commented 2 months ago

I crosscompile in windows 11 using Lazarus with target aarch64 and I get the following message:

Debug: C:\fpcupdeluxe\cross\bin\aarch64-linux\aarch64-linux-gnu-ld.exe: E:\sw\mORMot2-2.2.stable\src\db....\static\aarch64-linux\sqlite3.o:(.data+0x268): undefined reference to `fcntl64'

Before migrating to mormot2 I tried with mormot and I got the same message.

synopse commented 2 months ago

I don't have this issue here. And aarch64-linux seems fine with nightly builds. https://luti.tranquil.it/history/tis-test-mormot2

Try with the statics from https://synopse.info/files/mormot2static.7z

My guess is that they are correct. Time for a new release perhaps.

velissariouc commented 2 months ago

I used the statics from your link but it didn't work. I tried also with https://github.com/synopse/mORMot2/archive/refs/heads/master.zip and it did not work.

I tried to cross compile from a virtual linux machine but with no luck: Error: /home/costas/fpcupdeluxe/cross/bin/aarch64-linux/aarch64-linux-ld: /home/costas/sw/mORMot2-master/src/db/../../static/aarch64-linux/sqlite3.o:(.data+0x268): undefined reference to `fcntl64'

On Mon, Apr 8, 2024 at 1:07 PM ab @.***> wrote:

I don't have this issue here. And aarch64-linux seems fine with nightly builds. https://luti.tranquil.it/history/tis-test-mormot2

Try with the statics from https://synopse.info/files/mormot2static.7z

My guess is that they are correct. Time for a new release perhaps.

— Reply to this email directly, view it on GitHub https://github.com/synopse/mORMot2/issues/247#issuecomment-2042357789, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJBCVDGCQT5UGI2IBOAIHDY4JT7HAVCNFSM6AAAAABF4GQ6KCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSGM2TONZYHE . You are receiving this because you authored the thread.Message ID: @.***>

synopse commented 2 months ago

Sounds like a libc library version issue on your setup. Your available local .so may be old, and missing fcntl64. Did you try to download the latest cross-compiler and .so from fpcupdeluxe?

synopse commented 2 months ago

No reaction from @velissariouc

Please use the forum to discuss this issue, and reopen if needed.