aurupdater

xxdiff-git

2026-09-22: armv6h build fails – bad atomic linker arg, not in our source

Final link line has BOTH the correct -latomic AND a bare trailing atomic token:

... -lpthread -latomic -lGLX -lOpenGL atomic
g++: error: atomic: No such file or directory

g++ treats the bare atomic as a filename to link, which doesn’t exist. Checked upstream xxdiff.pro/Makefile.bootstrap directly (fresh clone) – no mention of “atomic” anywhere in the source tree at all. This means the bad token is being generated by qmake6 itself on that armv6h board, almost certainly a Qt6 mkspec quirk for the armv6l target (some mkspecs append a bare atomic to QMAKE_LIBS_PRIVATE-style variables instead of using the -l-prefixed form qmake normally auto-adds).

Not fixed this pass – didn’t want to guess-patch the generated Makefile without being able to verify on real ARM hardware (each attempt costs a real build cycle on a slow board). If revisiting: try sed-fixing the qmake-generated Makefile in build() after the bootstrap step (strip the bare atomic token, or override QMAKE_LIBS_PRIVATE), or check whether a newer/older qmake6 on that board avoids the bug.