| Summary: |
=sys-devel/gcc-6.3.0 (and older) fails to build with gcc-7.1.0: gcc/ubsan.c: error: ISO C++ forbids comparison between pointer and integer |
| Product: |
Gentoo Linux
|
Reporter: |
Sergei Trofimovich (RETIRED) <slyfox> |
| Component: |
Current packages | Assignee: |
Gentoo Toolchain Maintainers <toolchain> |
| Status: |
RESOLVED
FIXED
|
|
|
| Severity: |
normal
|
CC: |
anarchy, herrtimson, robink, tamiko
|
| Priority: |
Normal
|
Keywords: |
PATCH |
| Version: |
unspecified | |
|
| Hardware: |
All | |
|
| OS: |
Linux | |
|
| Whiteboard: |
|
|
Package list:
|
|
Runtime testing required:
|
---
|
| Attachments: |
gcc-6.3.0-ubsan-on-gcc-7.patch
|
Created attachment 472510 [details, diff] gcc-6.3.0-ubsan-on-gcc-7.patch I've caught it when updated my cross-compilers: /tmp/portage-tmpdir/portage/cross-hppa-unknown-linux-gnu/gcc-6.3.0/work/gcc-6.3.0/gcc/ubsan.c: In function ‘bool ubsan_use_new_style_p(location_t)’: /tmp/portage-tmpdir/portage/cross-hppa-unknown-linux-gnu/gcc-6.3.0/work/gcc-6.3.0/gcc/ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] || xloc.file == '\0' || xloc.file[0] == '\xff' ^~~~ Attached upstream patch. It fixes building cross-compiler for me. Tested as: --- a/sys-devel/gcc/gcc-6.3.0.ebuild +++ b/sys-devel/gcc/gcc-6.3.0.ebuild @@ -21,4 +21,5 @@ fi src_prepare() { toolchain_src_prepare + epatch "${FILESDIR}"/6.3.0/gcc-6.3.0-ubsan-on-gcc-7.patch }