Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1256195 > unrolled thread
| Started by | zhangdandan <zhangdandan@loongson.cn> |
|---|---|
| First post | 2025-08-14 10:50 +0200 |
| Last post | 2025-08-15 22:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#1111064: laserboy: FTBFS: Fix build error on non-x86_64 architectures zhangdandan <zhangdandan@loongson.cn> - 2025-08-14 10:50 +0200
Bug#1111064: laserboy: FTBFS: Fix build error on non-x86_64 architectures Nicolas Schodet <nico@ni.fr.eu.org> - 2025-08-15 22:10 +0200
| From | zhangdandan <zhangdandan@loongson.cn> |
|---|---|
| Date | 2025-08-14 10:50 +0200 |
| Subject | Bug#1111064: laserboy: FTBFS: Fix build error on non-x86_64 architectures |
| Message-ID | <LjBON-7w9o-23@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Source: laserboy Version: 2024.03.08+dfsg-1 Severity: normal Tags: FTBFS patch User: debian-loongarch@lists.debian.org Usertags: loong64 Dear maintainers, Compiling the laserboy failed on loong64 and other non x86_64 architectures in the Debian Package Auto-Building environment. The error log is as follows, ``` ...... make[2]: Entering directory '/<<PKGBUILDDIR>>/src' g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -c LaserBoy.cpp -o ../build/LaserBoy.obj -D__WITH_SDL2__ -std=c++17 -O3 -msse2 -mfpmath=sse -Wall -Wextra -frounding-math -fsignaling-nans -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-misleading-indentation -Wno-unused-but-set-variable -Wno-mismatched-new-delete -fexpensive-optimizations -static -L/usr/local/lib -lSDL2 -lboost_filesystem -lboost_system -lpthread g++: error: unrecognized command-line option ‘-msse2’ g++: error: unrecognized command-line option ‘-mfpmath=sse’ ...... ``` The full build log can be found at https://buildd.debian.org/status/package.php?p=laserboy&suite=sid. Maybe we need to filter out '-msse2 -mfpmath=sse' on non-x86_64 architectures. Please consider the patch I attached. Based on attached patch, I have built laserboy (2024.03.08+dfsg-1+loong64) successfully on locally. ``` ...... dh_builddeb dpkg-deb: building package 'laserboy-indep' in '../laserboy-indep_2024.03.08+dfsg-1+loong64_all.deb'. dpkg-deb: building package 'laserboy' in '../laserboy_2024.03.08+dfsg-1+loong64_loong64.deb'. dpkg-deb: building package 'laserboy-dbgsym' in '../laserboy-dbgsym_2024.03.08+dfsg-1+loong64_loong64.deb'. dpkg-genbuildinfo -O../laserboy_2024.03.08+dfsg-1+loong64_loong64.buildinfo dpkg-genchanges -O../laserboy_2024.03.08+dfsg-1+loong64_loong64.changes ``` Your opinions are welcome. Best regards, Dandan Zhang
[toc] | [next] | [standalone]
| From | Nicolas Schodet <nico@ni.fr.eu.org> |
|---|---|
| Date | 2025-08-15 22:10 +0200 |
| Message-ID | <Lk8Up-7SLQ-7@gated-at.bofh.it> |
| In reply to | #1256195 |
* zhangdandan <zhangdandan@loongson.cn> [250815 19:47]: > Compiling the laserboy failed on loong64 and other non x86_64 architectures > in the Debian Package Auto-Building environment. > The error log is as follows, > ``` > ...... > make[2]: Entering directory '/<<PKGBUILDDIR>>/src' > g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 > -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat > -Werror=format-security -Wl,-z,relro -Wl,-z,now -c LaserBoy.cpp -o > ../build/LaserBoy.obj -D__WITH_SDL2__ -std=c++17 -O3 -msse2 -mfpmath=sse > -Wall -Wextra -frounding-math -fsignaling-nans -Wno-unused-parameter > -Wno-implicit-fallthrough -Wno-missing-field-initializers > -Wno-misleading-indentation -Wno-unused-but-set-variable > -Wno-mismatched-new-delete -fexpensive-optimizations -static > -L/usr/local/lib -lSDL2 -lboost_filesystem -lboost_system -lpthread > g++: error: unrecognized command-line option ‘-msse2’ > g++: error: unrecognized command-line option ‘-mfpmath=sse’ > ...... > ``` > The full build log can be found at > https://buildd.debian.org/status/package.php?p=laserboy&suite=sid. > Maybe we need to filter out '-msse2 -mfpmath=sse' on non-x86_64 > architectures. > Please consider the patch I attached. > Based on attached patch, I have built laserboy (2024.03.08+dfsg-1+loong64) > successfully on locally. > ``` > ...... > dh_builddeb > dpkg-deb: building package 'laserboy-indep' in > '../laserboy-indep_2024.03.08+dfsg-1+loong64_all.deb'. > dpkg-deb: building package 'laserboy' in > '../laserboy_2024.03.08+dfsg-1+loong64_loong64.deb'. > dpkg-deb: building package 'laserboy-dbgsym' in > '../laserboy-dbgsym_2024.03.08+dfsg-1+loong64_loong64.deb'. > dpkg-genbuildinfo -O../laserboy_2024.03.08+dfsg-1+loong64_loong64.buildinfo > dpkg-genchanges -O../laserboy_2024.03.08+dfsg-1+loong64_loong64.changes > ``` > Your opinions are welcome. Hi, I’m sorry, I uploaded a new version before seeing your bug report. In my patch, I removed the sse2 option completely because I think that a specific package is not supposed to restrict which CPU should be supported by a Debian package. Your opinions are welcome too. Kind regards, Nicolas.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web