#1074246 odb: Recommend to change the dependency from gcc-12 to gcc-13

Package:
src:odb
Source:
src:odb
Submitter:
zhangdandan
Date:
2024-06-25 07:18:04 UTC
Severity:
normal
Tags:
#1074246#5
Date:
2024-06-25 06:31:22 UTC
From:
To:
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