GCC Cortex-A17, "genattrtab: unknown value `alu_sreg' for `type' attribute"
Kyrill Tkachov
kyrylo.tkachov@arm.com
Tue Nov 18 09:49:00 GMT 2014
Hi Abhisit,
CC'ing the gcc-help list as it's useful for others in the community.
GCC trunk just finished stage1 development and a large amount of
features/patches were committed recently and as it seems that the trunk
is broken at this point in time. I can confirm that the Cortex-A17 patch
builds ok on top of SVN r217661.
Kyrill
On 18/11/14 04:53, Abhisit Sangjan wrote:
> Hi Kyrylo Tkachov,
>
> What is your GCC/SVN revision use to compile? I check out GCC/SVN
> revision r217686.
> I got this error message "internal compiler error: in
> adjust_temp_type, at cp/constexpr.c:1020".
>
> make[2]: Entering directory
> `/opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3'
> make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc"
> "CC_FOR_TARGET=/opt/toolchain/build/gcc-2nd/./gcc/xgcc
> -B/opt/toolchain/build/gcc-2nd/./gcc/" "CFLAGS=-g -Os" "CXXFLAGS=-g
> -Os" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -Os"
> "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m
> 644" "INSTALL_PROGRAM=/usr/bin/install -c"
> "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -Os"
> "LIBCFLAGS_FOR_TARGET=-g -Os" "MAKE=make" "MAKEINFO=makeinfo
> --split-size=5000000 --split-size=5000000 " "SHELL=/bin/sh"
> "RUNTESTFLAGS=" "exec_prefix=/opt/toolchain/rk3288"
> "infodir=/opt/toolchain/rk3288/share/info"
> "libdir=/opt/toolchain/rk3288/lib"
> "includedir=/opt/toolchain/rk3288/include"
> "prefix=/opt/toolchain/rk3288"
> "tooldir=/opt/toolchain/rk3288/armv7a-linux-musleabihf"
> "gxx_include_dir=/opt/toolchain/rk3288/armv7a-linux-musleabihf/include/c++/5.0.0"
> "AR=/opt/toolchain/rk3288/armv7a-linux-musleabihf/bin/ar"
> "AS=/opt/toolchain/build/gcc-2nd/./gcc/as"
> "LD=/opt/toolchain/build/gcc-2nd/./gcc/collect-ld"
> "RANLIB=/opt/toolchain/rk3288/armv7a-linux-musleabihf/bin/ranlib"
> "NM=/opt/toolchain/build/gcc-2nd/./gcc/nm" "NM_FOR_BUILD="
> "NM_FOR_TARGET=/opt/toolchain/rk3288/armv7a-linux-musleabihf/bin/nm"
> "DESTDIR=" "WERROR=" all-recursive
> make[3]: Entering directory
> `/opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3'
> Making all in include
> make[4]: Entering directory
> `/opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3/include'
> mkdir -p ./armv7a-linux-musleabihf/bits/stdc++.h.gch
> /opt/toolchain/build/gcc-2nd/./gcc/xgcc -shared-libgcc
> -B/opt/toolchain/build/gcc-2nd/./gcc -nostdinc++
> -L/opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3/src -L/opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3/src/.libs
> -L/opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3/libsupc++/.libs
> -B/opt/toolchain/rk3288/armv7a-linux-musleabihf/bin/
> -B/opt/toolchain/rk3288/armv7a-linux-musleabihf/lib/ -isystem
> /opt/toolchain/rk3288/armv7a-linux-musleabihf/include -isystem
> /opt/toolchain/rk3288/armv7a-linux-musleabihf/sys-include -x
> c++-header -nostdinc++ -g -Os
> -I/opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3/include/armv7a-linux-musleabihf
> -I/opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3/include
> -I/opt/toolchain/src/gcc-r217686/libstdc++-v3/libsupc++ -O2 -g
> -std=gnu++0x
> /opt/toolchain/src/gcc-r217686/libstdc++-v3/include/precompiled/stdc++.h \
> -o armv7a-linux-musleabihf/bits/stdc++.h.gch/O2ggnu++0x.gch
> In file included from
> /opt/toolchain/src/gcc-r217686/libstdc++-v3/include/precompiled/stdc++.h:100:0:
> /opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3/include/chrono:723:49:
> in constexpr expansion of 'std::chrono::duration<_Rep,
> _Period>::min<long long int, std::ratio<1ll, 1000000000ll> >()'
> /opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3/include/chrono:725:66:
> in constexpr expansion of 'std::chrono::duration<long long int,
> std::ratio<1ll, 1000000000ll> >((* &
> std::chrono::duration_values<_Rep>::min<long long int>()))'
> /opt/toolchain/build/gcc-2nd/armv7a-linux-musleabihf/libstdc++-v3/include/chrono:725:66:
> internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020
> "a clock's minimum duration cannot be less than its epoch");
> ^
>
> Thank you,
> Abhisit.
>
> On Mon, Nov 17, 2014 at 5:36 AM, Kyrill Tkachov
> <kyrylo.tkachov@arm.com <mailto:kyrylo.tkachov@arm.com>> wrote:
>
> Hi Abhisit,
>
> The patch was made for the gcc trunk, not the 4.9.2 codebase. It's
> not expected to apply there.
> If accepted this patch will be part of the GCC 5 release.
> If you want to try it out I suggest you checkout the current gcc
> trunk and apply it there.
>
> Cheers,
> Kyrill
>
> On 17/11/14 03:12, Abhisit Sangjan wrote:
>
> Hello Kyrylo Tkachov,
>
> I am sorry, if I make disturb to you.
> I create GCC cross compile by GCC 4.9.2 for ARM Cortex-A17, I
> added your patch - > http://patchwork.ozlabs.org/patch/410511/.
>
> I got this message "genattrtab: unknown value `alu_sreg' for
> `type' attribute".
> Please help me, How can I fix it?
>
> make[2]: Entering directory `/opt/toolchain/build/gcc-1st/gcc'
> g++ -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC
> -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti
> -fasynchronous-unwind-tables -W -Wall -Wwrite-strings
> -Wcast-qual -Wmissing-format-attribute -pedantic
> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
> -DHAVE_CONFIG_H -I. -I. -I/opt/toolchain/src/gcc-4.9.2/gcc
> -I/opt/toolchain/src/gcc-4.9.2/gcc/.
> -I/opt/toolchain/src/gcc-4.9.2/gcc/../include
> -I/opt/toolchain/src/gcc-4.9.2/gcc/../libcpp/include
> -I/opt/toolchain/build/gcc-1st/./gmp
> -I/opt/toolchain/src/gcc-4.9.2/gmp
> -I/opt/toolchain/build/gcc-1st/./mpfr
> -I/opt/toolchain/src/gcc-4.9.2/mpfr
> -I/opt/toolchain/src/gcc-4.9.2/mpc/src
> -I/opt/toolchain/src/gcc-4.9.2/gcc/../libdecnumber
> -I/opt/toolchain/src/gcc-4.9.2/gcc/../libdecnumber/dpd
> -I../libdecnumber
> -I/opt/toolchain/src/gcc-4.9.2/gcc/../libbacktrace
> -DCLOOG_INT_GMP -I/opt/toolchain/build/gcc-1st/./cloog/include
> -I/opt/toolchain/src/gcc-4.9.2/cloog/include
> -I/opt/toolchain/src/gcc-4.9.2/cloog/include
> -I/opt/toolchain/build/gcc-1st/./isl/include
> -I/opt/toolchain/src/gcc-4.9.2/isl/include -o glibc-c.o -MT
> glibc-c.o -MMD -MP -MF ./.deps/glibc-c.TPo
> /opt/toolchain/src/gcc-4.9.2/gcc/config/glibc-c.c
> build/genattrtab
> /opt/toolchain/src/gcc-4.9.2/gcc/config/arm/arm.md
> <http://arm.md> <http://arm.md> insn-conditions.md
> <http://insn-conditions.md> <http://insn-conditions.md> \
> -Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c
> genattrtab: unknown value `alu_sreg' for `type' attribute
> make[2]: *** [s-attrtab] Error 1
> make[2]: Leaving directory `/opt/toolchain/build/gcc-1st/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/opt/toolchain/build/gcc-1st'
> make: *** [all] Error 2
>
> Thank you,
> Abhisit.
>
>
>
>
More information about the Gcc-help
mailing list