EDIT, after reverting my /etc/makepkg.conf
file to an older version I used, it builds without issue. I had to remove the "lto" option in the OPTIONS
line.
I fixed the PKGBUILD to disable this automatically for this package only.
@bczhc I don't get that error, but I get different ones:
[ 62%] Linking CXX executable jt65sim
/usr/src/debug/wsjtx-git/wsjtx/lib/rs.h:17:5: error: type of ‘decode_rs_int’ does not match original declaration [-Werror=lto-type-mismatch]
/usr/src/debug/wsjtx-git/wsjtx/lib/ftrsd/decode_rs.c:24:5: note: type mismatch in parameter 5
/usr/src/debug/wsjtx-git/wsjtx/lib/ftrsd/decode_rs.c:24:5: note: type ‘int’ should match type ‘void’
/usr/src/debug/wsjtx-git/wsjtx/lib/ftrsd/decode_rs.c:24:5: note: ‘decode_rs_int’ was previously declared here
/usr/src/debug/wsjtx-git/wsjtx/lib/rs.h:18:7: error: type of ‘init_rs_int’ does not match original declaration [-Werror=lto-type-mismatch]
/usr/src/debug/wsjtx-git/wsjtx/lib/ftrsd/init_rs.c:32:7: note: type mismatch in parameter 1
/usr/src/debug/wsjtx-git/wsjtx/lib/ftrsd/init_rs.c:32:7: note: type ‘unsigned int’ should match type ‘int’
/usr/src/debug/wsjtx-git/wsjtx/lib/ftrsd/init_rs.c:32:7: note: ‘init_rs_int’ was previously declared here
lto1: all warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/jt65sim.dir/build.make:110: jt65sim] Error 1
make[1]: *** [CMakeFiles/Makefile2:570: CMakeFiles/jt65sim.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Not sure why yet though
Pinned Comments
KI9N commented on 2025-01-14 03:26 (UTC) (edited on 2025-01-15 02:22 (UTC) by KI9N)
EDIT, after reverting my
/etc/makepkg.conf
file to an older version I used, it builds without issue. I had to remove the "lto" option in theOPTIONS
line. I fixed the PKGBUILD to disable this automatically for this package only.@bczhc I don't get that error, but I get different ones:
Not sure why yet though