This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"expected primary-expression" error building gcc 4.8.3


Hi,

Trying to build gcc 4.8.3 on a RHEL 5.11 system (current gcc is 4.1.2).

I ran the 'contrib/download_prerequisites' script and 'configure' as per
instructions.

Running 'make' it goes for a good while and then I get the errors
below. I am guessing at a problem with the _GLIBCXX_STDIO definitions?
Does this indicate something missing from the build environment?


make[9]: Entering directory `/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include'
mkdir -p ./x86_64-unknown-linux-gnu/bits/stdc++.h.gch
/root/source/gcc-4.8.3-objdir/./gcc/xgcc -shared-libgcc -B/root/source/gcc-4.8.3-objdir/./gcc -nostdinc++ -L/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/src -L/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs -B/N/soft/gcc-4.8.3/x86_64-unknown-linux-gnu/bin/ -B/N/soft/gcc-4.8.3/x86_64-unknown-linux-gnu/lib/ -isystem /N/soft/gcc-4.8.3/x86_64-unknown-linux-gnu/include -isystem /N/soft/gcc-4.8.3/x86_64-unknown-linux-gnu/sys-include  -m32 -x c++-header -nostdinc++ -g -O2 -D_GNU_SOURCE  -m32 -I/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include -I/root/source/gcc-4.8.3/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x /root/source/gcc-4.8.3/libstdc++-v3/include/precompiled/stdc++.h \
        -o x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/ios:40:0,
                 from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/istream:38,
                 from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/sstream:38,
                 from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/complex:45,
                 from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/ccomplex:38,
                 from /root/source/gcc-4.8.3/libstdc++-v3/include/precompiled/stdc++.h:52:
/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/bits/char_traits.h: In static member function âstatic constexpr __gnu_cxx::char_traits<_CharT>::int_type __gnu_cxx::char_traits<_CharT>::eof()â:
/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/bits/char_traits.h:135:56: error: expected primary-expression before â)â token
       { return static_cast<int_type>(_GLIBCXX_STDIO_EOF); }
                                                        ^
/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/bits/char_traits.h: In static member function âstatic constexpr std::char_traits<char>::int_type std::char_traits<char>::eof()â:
/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/bits/char_traits.h:293:56: error: expected primary-expression before â)â token
       { return static_cast<int_type>(_GLIBCXX_STDIO_EOF); }
                                                        ^
/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/bits/char_traits.h:293:59: error: body of constexpr function âstatic constexpr std::char_traits<char>::int_type std::char_traits<char>::eof()â not a return-statement
       { return static_cast<int_type>(_GLIBCXX_STDIO_EOF); }
                                                           ^
In file included from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/ios:42:0,
                 from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/istream:38,
                 from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/sstream:38,
                 from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/complex:45,
                 from /root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/ccomplex:38,
                 from /root/source/gcc-4.8.3/libstdc++-v3/include/precompiled/stdc++.h:52:
/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/bits/ios_base.h: At global scope:
/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/bits/ios_base.h:184:39: error: expected primary-expression before â,â token
       _S_cur = _GLIBCXX_STDIO_SEEK_CUR,
                                       ^
/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/bits/ios_base.h:185:39: error: expected primary-expression before â,â token
       _S_end = _GLIBCXX_STDIO_SEEK_END,
                                       ^
make[9]: *** [x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
make[9]: Leaving directory `/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/include'
make[8]: *** [all-recursive] Error 1
make[8]: Leaving directory `/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3'
make[7]: *** [all] Error 2
make[7]: Leaving directory `/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3'
make[6]: *** [multi-do] Error 1
make[6]: Leaving directory `/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/libstdc++-v3'
make[5]: *** [all-multi] Error 2
make[5]: Leaving directory `/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/libstdc++-v3'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/libstdc++-v3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/source/gcc-4.8.3-objdir/x86_64-unknown-linux-gnu/libstdc++-v3'
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory `/root/source/gcc-4.8.3-objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/source/gcc-4.8.3-objdir'
make: *** [all] Error 2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]