trunk: build failure with llvm-gcc-4.2 (rev >= 14226)

Bug #1471587 reported by su_v
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Krzysztof Kosinski

Bug Description

The latest 2geom update in rev 14226 breaks builds which use llvm-gcc-4.2 on OS X 10.7.5. Compiling with clang (based on LLVM 3.1svn) works ok though, on the same system. Both compilers are provided by Xcode (4.3.2).

Build log:

  CXX 2geom/bezier.o
In file included from ./2geom/d2.h:38,
                 from ./2geom/bezier.h:46,
                 from 2geom/bezier.cpp:38:
/usr/include/c++/4.2.1/bits/stl_iterator_base_types.h: In instantiation of ‘std::iterator_traits<Geom::Point>’:
./2geom/point.h:389: instantiated from here
/usr/include/c++/4.2.1/bits/stl_iterator_base_types.h:129: error: no type named ‘iterator_category’ in ‘class Geom::Point’
/usr/include/c++/4.2.1/bits/stl_iterator_base_types.h:130: error: no type named ‘value_type’ in ‘class Geom::Point’
/usr/include/c++/4.2.1/bits/stl_iterator_base_types.h:131: error: no type named ‘difference_type’ in ‘class Geom::Point’
/usr/include/c++/4.2.1/bits/stl_iterator_base_types.h:132: error: no type named ‘pointer’ in ‘class Geom::Point’
/usr/include/c++/4.2.1/bits/stl_iterator_base_types.h:133: error: no type named ‘reference’ in ‘class Geom::Point’
./2geom/point.h:416: error: specialization of ‘std::iterator_traits<Geom::Point>’ after instantiation
./2geom/point.h:416: error: redefinition of ‘class std::iterator_traits<Geom::Point>
/usr/include/c++/4.2.1/bits/stl_iterator_base_types.h:128: error: previous definition of ‘class std::iterator_traits<Geom::Point>
make[3]: *** [2geom/bezier.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Tags: 2geom build osx
Revision history for this message
su_v (suv-lp) wrote :
Changed in inkscape:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Krzysztof Kosinski (tweenk)
Revision history for this message
su_v (suv-lp) wrote :

'2geom/bezier.cpp' compiles successfully with r14327, but the build next fails in '2geom/path.cpp'. The attached build log is with boost 1.58.0; a similar build failure happens with boost 1.49.0 (different build env with older versions of dependencies).

Revision history for this message
su_v (suv-lp) wrote :

Attached is the full build log of 'make -k' (clean build) to spot any other obvious build failures with llvm-gcc-4.2 (AFAICT 'src/2geom/bezier.cpp' seems to be the only one).

--
The local changes are for debugging purposes only:
$ bzr revno
14237
$ bzr status -V
modified:
  src/ui/clipboard.cpp
  src/ui/dialog/aboutbox.cpp
3 shelves exist. See "bzr shelve --list" for details.
$

Revision history for this message
su_v (suv-lp) wrote :

Build fix confirmed (rev 14247) - thank you for your patience and time to continue supporting older compilers for now!

Changed in inkscape:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.