linker error when building on arm64 in Database.cpp
hi. we've been trying to get git builds happening on the NEON buildservers. amd64 links fine but unfortunately on arm64 there are linker errors:
09:38:56 [100%] Linking CXX executable ../bin/kaidan
09:39:00 /usr/bin/ld: CMakeFiles/kaidan.dir/Database.cpp.o: in function `DbConnection::DbConnection()':
09:39:00 ./obj-aarch64-linux-gnu/src/./src/Database.cpp:124: undefined reference to `oldDatabaseFilenames()'
09:39:00 collect2: error: ld returned 1 exit status
in the latest build - https://build.neon.kde.org/job/jammy_unstable_forks_kaidan_bin_arm64/42/console
i have even fed the build "export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
" as the previous errors suggested that lto was the problem - https://build.neon.kde.org/job/jammy_unstable_forks_kaidan_bin_arm64/41/console
09:15:50 [100%] Linking CXX executable ../bin/kaidan
09:16:49 /usr/bin/ld: /tmp/cc7pWqRR.ltrans7.ltrans.o: in function `DbConnection::DbConnection() [clone .lto_priv.0]':
09:16:49 ./obj-aarch64-linux-gnu/src/./src/Database.cpp:124: undefined reference to `oldDatabaseFilenames()'
09:16:49 collect2: error: ld returned 1 exit status
Any thoughts?
Edited by Linus Jahn