Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678662 - sys-devel/gcc-8.3.0: gcc/c/c-parser.c:14626:33: error: ‘claus’ was not declared in this scope
Summary: sys-devel/gcc-8.3.0: gcc/c/c-parser.c:14626:33: error: ‘claus’ was not declar...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-24 09:22 UTC by Michał Górny
Modified: 2019-02-25 13:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/sys-devel:gcc-8.3.0:20190224-084829.log (sys-devel:gcc-8.3.0:20190224-084829.log,385.28 KB, text/x-log)
2019-02-24 09:22 UTC, Michał Górny
Details
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,79.84 KB, application/x-bzip)
2019-02-24 09:23 UTC, Michał Górny
Details
emerge-info.txt (emerge-info.txt,6.74 KB, text/plain)
2019-02-24 09:25 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-02-24 09:22:33 UTC
Created attachment 566248 [details]
/var/log/portage/sys-devel:gcc-8.3.0:20190224-084829.log

Apparently claus\0 is not around.

i686-pc-linux-gnu-g++-7.4.0 -std=gnu++98 -fno-PIE -c -fno-PIE   -DIN_GCC_FRONTEND  -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tab
les -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-v
ariadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Ic -I/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc -I/var/tmp/portage/sys-d
evel/gcc-8.3.0/work/gcc-8.3.0/gcc/c -I/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-8.3.0/wor
k/gcc-8.3.0/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-8.3.0
/work/gcc-8.3.0/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/../libbacktrace   -o c/c-objc-c
ommon.o -MT c/c-objc-common.o -MMD -MP -MF c/.deps/c-objc-common.TPo /var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/c/c-objc-common.c
i686-pc-linux-gnu-g++-7.4.0 -std=gnu++98 -fno-PIE -c -fno-PIE   -DIN_GCC_FRONTEND  -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tab
les -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-v
ariadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Ic -I/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc -I/var/tmp/portage/sys-d
evel/gcc-8.3.0/work/gcc-8.3.0/gcc/c -I/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-8.3.0/wor
k/gcc-8.3.0/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-8.3.0
/work/gcc-8.3.0/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/../libbacktrace   -o c/c-parser
.o -MT c/c-parser.o -MMD -MP -MF c/.deps/c-parser.TPo /var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/c/c-parser.c
/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/c/c-parser.c:14626:38: warning: null character(s) ignored
   OACC_DECLARE_CLAUSES (stmt) = claus      SET_EXPR_LOCATION (stmt, pragma_loc);
                                      ^
/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/c/c-parser.c: In function ‘void c_parser_oacc_declare(c_parser*)’:
/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/c/c-parser.c:14626:33: error: ‘claus’ was not declared in this scope
   OACC_DECLARE_CLAUSES (stmt) = claus      SET_EXPR_LOCATION (stmt, pragma_loc);
                                 ^~~~~
/var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/gcc/c/c-parser.c:14626:33: note: suggested alternative: ‘class’
   OACC_DECLARE_CLAUSES (stmt) = claus      SET_EXPR_LOCATION (stmt, pragma_loc);
                                 ^~~~~
                                 class
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-02-24 09:23:59 UTC
Created attachment 566252 [details]
gcc-build-logs.tar.bz2
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-02-24 09:25:14 UTC
Created attachment 566254 [details]
emerge-info.txt
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-24 10:07:11 UTC
> i686-pc-linux-gnu-g++-7.4.0 -std=gnu++98 -fno-PIE -c -fno-PIE  
> ...
> 38: warning: null character(s) ignored
>    OACC_DECLARE_CLAUSES (stmt) = claus      SET_EXPR_LOCATION (stmt,
> pragma_loc);
>                                       ^

This looks like a memory corruption in host compiler. Could be a compiler bug or hardware bug. bug #667032 looked similar on sparc and happened to be very non-deterministic.

If your bug is reproducible please extract preprocessed file using https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide.

If it's not reproducible then running single gcc command in a loop might allow triggering the problem in a somewhat reproducible manner.

If it's not reproducible even then it's worth checking the hardware.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-02-24 10:09:47 UTC
I'm trying a second time, I'll close the bug if it succeeds.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-02-25 13:51:26 UTC
Indeed seems to be a hardware problem.