Skip to content

Cannot build GDB arc-2019.09-rc1 in CentOS 6.x #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
abrodkin opened this issue Nov 12, 2019 · 2 comments
Closed

Cannot build GDB arc-2019.09-rc1 in CentOS 6.x #202

abrodkin opened this issue Nov 12, 2019 · 2 comments
Assignees
Labels
component: gdb release notes Items to mention in release notes
Milestone

Comments

@abrodkin
Copy link
Member

On configuration of host GDB in CentOS 6.x the following error message appears:

checking whether g++ supports C++11 features with -std=c++11... no
checking whether g++ supports C++11 features with +std=c++11... no
checking whether g++ supports C++11 features with -h std=c++11... no
checking whether g++ supports C++11 features with -std=c++0x... no
checking whether g++ supports C++11 features with +std=c++0x... no
make[4]: Leaving directory `/arc_gnu/bd-elf32/gdb/gprof'
make[3]: Leaving directory `/arc_gnu/bd-elf32/gdb/gprof'
make[2]: Leaving directory `/arc_gnu/bd-elf32/gdb/gprof'
checking whether g++ supports C++11 features with -h std=c++0x... no
configure: error: *** A compiler with support for C++11 language features is required.

That happens because in CentOS 6.x default GCC is 4.4.7 and it indeed doesn't support C++11:

# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-boot
strap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-u
nique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0
/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloo
g --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)
@abrodkin abrodkin added this to the 2019.09 milestone Nov 12, 2019
@abrodkin abrodkin self-assigned this Nov 12, 2019
@abrodkin abrodkin added component: gdb release notes Items to mention in release notes labels Nov 12, 2019
@abrodkin
Copy link
Member Author

Vanilla CentOS 6.x is not suitable for building up-to-date GDB as it requires compiler with C++11 support (see https://sourceware.org/gdb/current/onlinedocs/gdb/Requirements.html) and default GCC from CentOS 6.x (4.4.7) doesn't support it yet.

That might be worked-around with use of RedHat's so-called "software collections" (SCL), see https://access.redhat.com/documentation/en-us/red_hat_developer_toolset.

@abrodkin
Copy link
Member Author

We don't support CentOS 6.x hosts starting from arc-2019.09 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: gdb release notes Items to mention in release notes
Projects
None yet
Development

No branches or pull requests

1 participant