Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467880 - app-arch/p7zip-9.13 “DynamicBuffer.h:20:5: error: ‘SetCapacity’ was not declared in this scope” with gcc-4.7.2
Summary: app-arch/p7zip-9.13 “DynamicBuffer.h:20:5: error: ‘SetCapacity’ was not decla...
Status: RESOLVED DUPLICATE of bug 437890
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.7
  Show dependency tree
 
Reported: 2013-04-29 15:24 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2013-04-30 06:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
p7zip-9.13-build.log (p7zip-9.13-build.log,67.75 KB, text/plain)
2013-04-29 15:24 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
emerge--info.txt (emerge--info.txt,4.79 KB, text/plain)
2013-04-29 15:25 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2013-04-29 15:24:02 UTC
Created attachment 346894 [details]
p7zip-9.13-build.log

x86_64-pc-linux-gnu-g++ -m64 -O2 -pipe -fno-strict-aliasing -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -D_NO_CRYPTO -D_NO_CRYPTO -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../Common/StreamObjects.cpp
In file included from ../../Common/StreamObjects.h:6:0,
                 from ../../Common/StreamObjects.cpp:5:
../../Common/../../Common/DynamicBuffer.h: In instantiation of ‘void CDynamicBuffer<T>::GrowLength(size_t) [with T = unsigned char; size_t = long unsigned int]’:
../../Common/../../Common/DynamicBuffer.h:39:7:   required from ‘void CDynamicBuffer<T>::EnsureCapacity(size_t) [with T = unsigned char; size_t = long unsigned int]’
../../Common/StreamObjects.cpp:41:37:   required from here
../../Common/../../Common/DynamicBuffer.h:20:5: error: ‘SetCapacity’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../Common/../../Common/DynamicBuffer.h:20:5: note: declarations in dependent base ‘CBuffer<unsigned char>’ are not found by unqualified lookup
../../Common/../../Common/DynamicBuffer.h:20:5: note: use ‘this->SetCapacity’ instead
make[1]: *** [StreamObjects.o] Error 1
x86_64-pc-linux-gnu-g++ -m64 -O2 -pipe -fno-strict-aliasing -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../Common/LimitedStreams.cpp
make[1]: *** Waiting for unfinished jobs....

sam ~ # gcc --version
gcc (Gentoo Hardened 4.7.2-r1 p1.6, pie-0.5.5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Tested to compile fine with gcc-4.6.3; this is a gcc-4.7 increased strictness break.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2013-04-29 15:25:09 UTC
Created attachment 346896 [details]
emerge--info.txt
Comment 2 Alexander Tsoy 2013-04-29 15:37:32 UTC
This is a dublicate of bug 437890
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2013-04-29 21:45:21 UTC
(In reply to comment #2)
> This is a dublicate of bug 437890

But p7zip-9.20* isn’t stable yet… I think some sort of bug should be open until a stable p7zip supports gcc-4.7(?)
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2013-04-30 06:39:23 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > This is a dublicate of bug 437890
> 
> But p7zip-9.20* isn’t stable yet… I think some sort of bug should be open
> until a stable p7zip supports gcc-4.7(?)

gcc-4.7 isn't stable either. We have the gcc-4.7 tracker bug for knowing which packages need to be stabilized before gcc-4.7 can go stable.

*** This bug has been marked as a duplicate of bug 437890 ***