View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014912GCC-XML(No Category)public2014-05-11 01:112015-03-26 11:59
Assigned ToBrad King 
PlatformLinuxOSFedoraOS Version21
Summary0014912: gccxml lacks support for gcc 4.9
DescriptionThere are no support files for gcc 4.9.
Steps To ReproduceTry to compile gccxmk using gcc 4.9. Test suite fails.
TagsNo tags attached.
Attached Filespatch file icon stl_algo.patch [^] (758 bytes) 2014-07-01 13:48 [Show Content]


Mathieu Malaterre (reporter)
2014-06-03 09:19

This is currently blocking gccxml/ and gdcm in debian, see: [^] for example.
Gert Wollny (reporter)
2014-07-01 05:48

Even the latest GIT version that supposently introduced g++4.9 support [a012b8] does not not work when compiling ITK python bindings on Debian with g++4.9. [^]


/usr/share/gccxml-0.9/GCC/4.9/bits/stl_algo.h: In function
'_OutputIterator std::__unique_copy(_InputIterator, _InputIterator,
_OutputIterator, _BinaryPredicate, std::input_iterator_tag,
/usr/share/gccxml-0.9/GCC/4.9/bits/stl_algo.h:1086: error: expected `;'
before '__rebound_pred'
Steve Robbins (reporter)
2014-07-01 13:49

Turns out the stl_algo.h issue Gert noted is easily fixed. Patch uploaded.

I'm checking now if this enables all of ITK to build.
Brad King (manager)
2014-07-14 09:02

These commits add 4.9 support and fix the problem in 0014912:0036292.

Add gccxml_builtins.h for GCC 4.9 starting with 4.8 version [^]

Override GCC 4.9 <bits/c++config.h> to disable __int128 [^]

Add GCC 4.9 original headers [^]

Update GCC 4.9 headers to work with gccxml's GCC 4.2 parser [^]

Update GCC 4.9 bits/stl_algo.h to work with 4.2 parser [^]
Mark Moll (reporter)
2014-12-03 12:28

I get the following errors on Ubuntu 14.10, where the default compiler is gcc 4.9.1:

 gccxml cmd: /usr/local/bin/gccxml -I"." -I"/home/mmoll/omplapp-1.0.0-Source/ompl/src" -I"/home/mmoll/omplapp-1.0.0-Source/src" -I"/usr/include/python2.7" -I"/usr/include" -I"/usr/include/assimp" "bindings/geometric.h" -fxml="/tmp/tmpmSfvke.xml"
In file included from /usr/include/boost/atomic/detail/platform.hpp:22,
                 from /usr/include/boost/atomic/atomic.hpp:17,
                 from /usr/include/boost/atomic.hpp:12,
                 from /usr/include/boost/thread/pthread/once_atomic.hpp:20,
                 from /usr/include/boost/thread/once.hpp:20,
                 from /usr/include/boost/thread.hpp:17,
                 from bindings/geometric.h:1236:
/usr/include/boost/atomic/detail/gcc-atomic.hpp: In member function 'bool boost::atomic_flag::test_and_set(boost::memory_order) volatile':
/usr/include/boost/atomic/detail/gcc-atomic.hpp:59: error: '__atomic_test_and_set' was not declared in this scope
/usr/include/boost/atomic/detail/gcc-atomic.hpp: In member function 'void boost::atomic_flag::clear(boost::memory_order) volatile':
/usr/include/boost/atomic/detail/gcc-atomic.hpp:64: error: '__atomic_clear' was not declared in this scope
In file included from /usr/include/boost/atomic/detail/platform.hpp:22,
                 from /usr/include/boost/atomic/atomic.hpp:17,
                 from /usr/include/boost/atomic.hpp:12,
                 from /usr/include/boost/thread/pthread/once_atomic.hpp:20,
                 from /usr/include/boost/thread/once.hpp:20,
                 from /usr/include/boost/thread.hpp:17,
                 from bindings/geometric.h:1236:
/usr/include/boost/atomic/detail/gcc-atomic.hpp: In function 'void boost::atomic_thread_fence(boost::memory_order)':
/usr/include/boost/atomic/detail/gcc-atomic.hpp:117: error: '__atomic_thread_fence' was not declared in this scope
/usr/include/boost/atomic/detail/gcc-atomic.hpp: In function 'void boost::atomic_signal_fence(boost::memory_order)':
/usr/include/boost/atomic/detail/gcc-atomic.hpp:123: error: '__atomic_signal_fence' was not declared in this scope

I am using the latest version of gccxml from the repo.
Oliver Kurz (reporter)
2014-12-08 15:34

Mark, I think your issue might be more related to boost than gccxml. I can confirm that gccxml works with gcc 4.9.1 including a project using boost-python. So I guess this issue can be fixed as well as [^] about gcc 4.8 which implicitly is also done.
Brad King (manager)
2015-03-26 11:59

As announced here:

 [ANNOUNCE] GCC-XML maintenance moving to Github [^] [^]

gccxml will no longer be developed by its original author, who will instead focus on CastXML: [^]

The original GCC-XML issue tracker is now closed. In order to facilitate ongoing maintenance by community participants, issues will now be tracked on the Github repository page: [^]

 Issue History
Date Modified Username Field Change
2014-05-11 01:11 ellert New Issue
2014-06-03 09:19 Mathieu Malaterre Note Added: 0036106
2014-07-01 05:48 Gert Wollny Note Added: 0036292
2014-07-01 13:48 Steve Robbins File Added: stl_algo.patch
2014-07-01 13:49 Steve Robbins Note Added: 0036299
2014-07-14 09:02 Brad King Note Added: 0036359
2014-12-03 12:28 Mark Moll Note Added: 0037369
2014-12-08 15:34 Oliver Kurz Note Added: 0037417
2015-03-26 11:59 Brad King Note Added: 0038303
2015-03-26 11:59 Brad King Status new => resolved
2015-03-26 11:59 Brad King Resolution open => suspended
2015-03-26 11:59 Brad King Assigned To => Brad King

Copyright © 2000 - 2018 MantisBT Team