Source: odb
Version: 2.4.0-16
Severity: normal
Tags: patch
User: [email protected]
Usertags: loong64
Hi maintainers,
Compiling the odb failed for loong64 in the Debian Package Auto-Building
environment.
Build failed 14 times.
The build error log is as follows,
```
......
from cxx-lexer.cxx:5:
/usr/lib/gcc/loongarch64-linux-gnu/12/plugin/include/config/loongarch/loongarch-opts.h:31:10:
fatal error: loongarch-def.h: No such file or directory
31 | #include "loongarch-def.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
.....
```
The full log can be found at
https://buildd.debian.org/status/logs.php?pkg=odb&ver=2.4.0-16&arch=loong64.
It is recommended to change the dependency from gcc-12 to gcc-13 version.
The loong64 was supported and built successfully since gcc-13 in Debian
Auto-Building ENV.
Please consider the patch I attached.
I have built odb successfully in my local ENV.
```
dpkg-deb: building package 'odb' in '../odb_2.4.0-16_loong64.deb'.
dpkg-deb: building package 'odb-dbgsym' in
'../odb-dbgsym_2.4.0-16_loong64.deb'.
dpkg-genbuildinfo -O../odb_2.4.0-16_loong64.buildinfo
dpkg-genchanges -O../odb_2.4.0-16_loong64.changes
......
```
Your opinions are welcome.
Thanks,
Dandan Zhang
diff -Nru odb-2.4.0/debian/control odb-2.4.0/debian/control
--- odb-2.4.0/debian/control 2022-12-07 19:42:49.000000000 +0000
+++ odb-2.4.0/debian/control 2022-12-07 19:42:49.000000000 +0000
@@ -2,7 +2,7 @@
Section: devel
Priority: optional
Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
-Build-Depends: debhelper-compat (= 13), g++-12, gcc-12-plugin-dev,
libexpat1-dev, libcutl-dev
+Build-Depends: debhelper-compat (= 13), g++-13, gcc-13-plugin-dev,
libexpat1-dev, libcutl-dev
Standards-Version: 4.6.1
Homepage: https://www.codesynthesis.com/products/odb
diff -Nru odb-2.4.0/debian/rules odb-2.4.0/debian/rules
--- odb-2.4.0/debian/rules 2022-12-07 19:42:49.000000000 +0000
+++ odb-2.4.0/debian/rules 2022-12-07 19:42:49.000000000 +0000
@@ -19,7 +19,7 @@
rm -f $(CURDIR)/config.log $(CURDIR)/config.lt $(CURDIR)/libtool
override_dh_auto_configure:
- dh_auto_configure -- CC=gcc-12 CXX=g++-12
+ dh_auto_configure -- CC=gcc-13 CXX=g++-13
override_dh_install:
dh_install