Summary: | sci-geosciences/grass-6.4.2 - mm.cc:259:32: error: declaration of ‘void* operator new [](size_t)’ has a different exception specifier | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Sam Jorna (wraeth) <wraeth> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | kalin, kripton, proxy-maint, sci-geosciences, vmatare+gbug |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
bzip2ed /var/tmp/portage/sci-geosciences/grass-6.4.2/temp/build.log
Debian's backported patch (untested) grass-6.4.2.ebuild which uses the patch grass-7.0.0.ebuild |
Description
Juergen Rose
2013-04-21 09:23:45 UTC
Created attachment 346162 [details]
bzip2ed /var/tmp/portage/sci-geosciences/grass-6.4.2/temp/build.log
It fails a lot earlier than that, it seems. Any news, how to fix? This is the actual error (the first one): /var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/lib/iostream # make make OBJ.x86_64-pc-linux-gnu make[1]: Entering directory `/var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/lib/iostream' make[1]: `OBJ.x86_64-pc-linux-gnu' is up to date. make[1]: Leaving directory `/var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/lib/iostream' c++ -I/var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include -O2 -pipe -march=core2 -msse4.1 -mssse3 -msse3 -msse2 -msse -mmmx -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grasslibs"\" -I/var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include -o OBJ.x86_64-pc-linux-gnu/mm.o -c mm.cc mm.cc: In function 'void* operator new [](size_t)': mm.cc:259:32: error: declaration of 'void* operator new [](size_t)' has a different exception specifier In file included from mm.cc:29:0: /var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include/grass/iostream/mm.h:114:17: error: from previous declaration 'void* operator new [](std::size_t) throw (std::bad_alloc)' mm.cc: In function 'void* operator new(size_t)': mm.cc:310:30: error: declaration of 'void* operator new(size_t)' has a different exception specifier In file included from mm.cc:29:0: /var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include/grass/iostream/mm.h:113:17: error: from previous declaration 'void* operator new(std::size_t) throw (std::bad_alloc)' mm.cc: In function 'void operator delete(void*)': mm.cc:362:32: error: declaration of 'void operator delete(void*)' has a different exception specifier In file included from mm.cc:29:0: /var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include/grass/iostream/mm.h:115:15: error: from previous declaration 'void operator delete(void*) throw ()' mm.cc: In function 'void operator delete [](void*)': mm.cc:402:34: error: declaration of 'void operator delete [](void*)' has a different exception specifier In file included from mm.cc:29:0: /var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include/grass/iostream/mm.h:116:15: error: from previous declaration 'void operator delete [](void*) throw ()' make: *** [OBJ.x86_64-pc-linux-gnu/mm.o] Error 1 Upstream bug: http://trac.osgeo.org/grass/ticket/1533 Although I find the bugreport somewhat confusing since it seems to claim that the fix has been backported to 6.4.2, which is obviously not the case (cf. http://trac.osgeo.org/grass/changeset/50130) Created attachment 347462 [details, diff]
Debian's backported patch (untested)
Okay, just compiled successfully after manually injecting the attached patch into the unpacked source tree. Seems the second build error was just a consequence of the first. ...however on qmerge I get collisions: * Detected file collision(s): * * /usr/share/man/man1/display.1.bz2 * /usr/share/man/man1/index.1.bz2 * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * media-gfx/imagemagick-6.8.4.9:0::gentoo * /usr/share/man/man1/display.1.bz2 * * media-libs/netpbm-10.61.00:0::gentoo * /usr/share/man/man1/index.1.bz2 * Not sure how to deal with those in an orderly fashion. The patch worked for me with the attached ebuild. Created attachment 349420 [details]
grass-6.4.2.ebuild which uses the patch
I just hit the issue at the next system. Is there any reason that the patch is not transfered to the main portage tree? BTW., at all my systems I find now a /usr/portage/sci-geosciences/grass/grass-6.4.2.ebuild, which is from Jul 4th, which has again theo old iostream problem. (In reply to Victor Mataré from comment #5) > Created attachment 347462 [details, diff]: Debian's backported patch (untested) Dropping that into /etc/portage/patches/sci-geosciences/grass-6.4.2/ to be picked up by epatch_user did the trick. Thanks a lot! (In reply to Martin von Gagern from comment #12) > (In reply to Victor Mataré from comment #5) > > Created attachment 347462 [details, diff] [details, diff]: Debian's backported patch (untested) > > Dropping that into /etc/portage/patches/sci-geosciences/grass-6.4.2/ to be > picked up by epatch_user did the trick. Thanks a lot! Yep that worked for me too! Patch works for me. Thanks! I hit the error again. There is a new grass-6.4.2.ebuild in the tree. This new ebuild takes the new postgresql (without -base) into account. But the iostream patch is again not included. (In reply to Juergen Rose from comment #15) > I hit the error again. There is a new grass-6.4.2.ebuild in the tree. This > new ebuild takes the new postgresql (without -base) into account. But the > iostream patch is again not included. Fun isn't it? Neither are 6.4.3 nor 6.4.4 ebuilds, although former ones have been available in this tracker for long.. I tried to link to all relevant version bump requests in #466388 for reference. grass-7.0.0 is out and it can emerged with the attached ebuild. Created attachment 398314 [details]
grass-7.0.0.ebuild
Closing as OBSOLETE - sci-geosciences/grass-7.0.1 has been added to the tree as per bug 514514 and subsequently revbumped. Note that sci-geosciences/grass:6 has been masked and will be removed from the tree in the coming weeks. |