Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 467880

Summary: app-arch/p7zip-9.13 “DynamicBuffer.h:20:5: error: ‘SetCapacity’ was not declared in this scope” with gcc-4.7.2
Product: Gentoo Linux Reporter: Nathan Phillip Brink (binki) (RETIRED) <binki>
Component: Current packagesAssignee: Justin Lecher (RETIRED) <jlec>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 390247    
Attachments: p7zip-9.13-build.log
emerge--info.txt

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 ***