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

Bug 793011

Summary: sci-physics/espresso-4.1.3 fails to compile with gcc-11
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Science Physics related packages <sci-physics>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-05-30 09:42:22 UTC

Issue: sci-physics/espresso-4.1.3 fails to compile with gcc-11.
Discovered on: amd64 (internal ref: tinderbox)

This machine uses GCC-11:
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-30 09:42:24 UTC
Created attachment 712515 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-30 09:42:27 UTC
Possible context of error(s):

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Could NOT find GSL (missing: GSL_INCLUDE_DIR GSL_LIBRARY) (found version "")
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE SPHINX_API_DOC_EXE) (Required is at least version "1.6.6")
/var/tmp/portage/sci-physics/espresso-4.1.3/work/espresso/src/utils/include/utils/NumeratedContainer.hpp:160:3: error: ‘size_t’ does not name a type
Comment 3 Larry the Git Cow gentoo-dev 2021-08-30 21:23:19 UTC
The bug has been closed via the following commit(s):

commit 4709d8e4ea9ec149753b98cabf365b3520070d65
Author:     Jakov Smolić <>
AuthorDate: 2021-08-30 21:18:46 +0000
Commit:     Jakov Smolić <>
CommitDate: 2021-08-30 21:22:07 +0000

    sci-physics/espresso: Fix build with gcc-11
    * Call python_optimize for non byte-compiled modules
    * Builds with >=boost-1.75 versions
    Signed-off-by: Jakov Smolić <>

 sci-physics/espresso/espresso-4.1.3.ebuild         |  6 ++++
 .../espresso/files/espresso-4.1.3-gcc-11.patch     | 37 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)