Closed hartwork closed 1 year ago
PS: I just found this patch in Arch AUR. It seems to work: https://aur.archlinux.org/cgit/aur.git/tree/Makefile.in.diff?h=spnavcfg
Are you sure you didn't change something else between attempts? That patch simply changes the order of object files in the makefile. Doing that should make absolutely no difference.
@jtsiomb I am 100% sure, yes. I believe the key is "removing duplicate words", see https://www.gnu.org/software/make/manual/html_node/Text-Functions.html#index-sort and the "Fix linker problem caused by duplicate object file" commit message at https://aur.archlinux.org/cgit/aur.git/commit/Makefile.in.diff?h=spnavcfg&id=7daaa4a5ca4a10ea6d7e3067c556f57bd6370133 .
Ok I see what's going on. The problem is with the generated src/ui.moc.cc
file which is added explicitly to the obj list, because it does not exist before the build starts.
If for some reason that file exists before starting the build, it will also be picked up by the wildcard, and therefore added twice to the list. The problem is I don't see how it could possibly exist before starting the build...
Anyway, this is a good stopgap. I wish I had the time to figure out why this happens and fix it properly, but for now this will do.
edit: btw I can't reproduce here. I still only see one copy of ui.moc.o in the linker command line here.
Thanks. Maybe it has to do with the version of GNU make. Arch and me both have GNU make 4.4.
Hi!
I'm running into link errors with release 1.1 is this known?
To reproduce:
This is with GCC 11.3.1 and Qt 5.15.7 if it matters.
Any ideas for a fix?
Best, Sebastian