/var/tmp/portage/dev-libs/leatherman-1.12.0-r1/work/leatherman-1.12.0/util/src/environment.cc:2:10: fatal error: boost/nowide/cenv.hpp: No such file or directory 2 | #include <boost/nowide/cenv.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-20200527-021953 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-10.1.0 * clang version 10.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.7 [2] python3.8 (fallback) [3] python3.6 (fallback) [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.43.1 * The Glorious Glasgow Haskell Compilation System, version 8.0.2 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Sun 31 May 2020 08:05:34 PM UTC emerge -qpvO dev-libs/leatherman [ebuild N ] dev-libs/leatherman-1.12.0-r1 USE="-debug -static-libs -test"
Created attachment 642940 [details] emerge-info.txt
Created attachment 642942 [details] dev-libs:leatherman-1.12.0-r1:20200531-204350.log
Created attachment 642944 [details] emerge-history.txt
Created attachment 642946 [details] environment
Created attachment 642948 [details] etc.portage.tbz2
Created attachment 642950 [details] logs.tbz2
Created attachment 642952 [details] temp.tbz2
soap, can you confirm that boost/nowide/cenv.hpp is missing from boost-1.73.0?
I'm also seeing this (on arm64), and yes, it looks like cenv.hpp is missing from boost-1.73.0 (or at least not installed with current ebuild): # eix -I --format '<installedversions:NAMEVERSION>' dev-libs/boost dev-libs/boost-1.73.0 # equery f dev-libs/boost | grep nowide/ /usr/include/boost/nowide/args.hpp /usr/include/boost/nowide/config.hpp /usr/include/boost/nowide/convert.hpp /usr/include/boost/nowide/cstdio.hpp /usr/include/boost/nowide/cstdlib.hpp /usr/include/boost/nowide/detail /usr/include/boost/nowide/detail/convert.hpp /usr/include/boost/nowide/detail/utf.hpp /usr/include/boost/nowide/filebuf.hpp /usr/include/boost/nowide/filesystem.hpp /usr/include/boost/nowide/fstream.hpp /usr/include/boost/nowide/iostream.hpp /usr/include/boost/nowide/replacement.hpp /usr/include/boost/nowide/stackstring.hpp /usr/include/boost/nowide/utf8_codecvt.hpp /usr/include/boost/nowide/windows.hpp
I wonder if I should still build the nowide stuff in boost and only install the missing files. I'm not sure what to do with this half support type of thing that boost is doing.
Boost merged cenv.hpp into cstdlib.hpp. Fedora has a patch for leatherman: https://src.fedoraproject.org/rpms/leatherman/blob/d32134d9f5764503a1fff65cbf26606c4c20d051/f/shared_nowide.patch. Adding it to PATCHES and removing the "nowide" lines from src_prepare fixes the build.
Seeing this bug with leatherman-1.12.1 also.
(In reply to Thomas Arnett from comment #11) > Boost merged cenv.hpp into cstdlib.hpp. > > Fedora has a patch for leatherman: > https://src.fedoraproject.org/rpms/leatherman/blob/ > d32134d9f5764503a1fff65cbf26606c4c20d051/f/shared_nowide.patch. Adding it to > PATCHES and removing the "nowide" lines from src_prepare fixes the build. Following these instructions I got the following error during compile (on arm64): /var/tmp/portage/dev-libs/leatherman-1.12.0-r1/work/leatherman-1.12.0/util/src/environment.cc: In static member function ‘static int leatherman::util::environment::get_int(const string&, int)’: /var/tmp/portage/dev-libs/leatherman-1.12.0-r1/work/leatherman-1.12.0/util/src/environment.cc:18:16: error: ‘invalid_argument’ does not name a type 18 | catch (invalid_argument&) { | ^~~~~~~~~~~~~~~~ If you manage to get a successful build, could you attach the ebuild and patch in this bug?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12e5f1d672606e05f94b4f0be48f468106521c8f commit 12e5f1d672606e05f94b4f0be48f468106521c8f Author: Matthew Thode <prometheanfire@gentoo.org> AuthorDate: 2020-08-10 14:22:09 +0000 Commit: Matthew Thode <prometheanfire@gentoo.org> CommitDate: 2020-08-10 14:22:29 +0000 dev-libs/leatherman: 1.12.1-r1 switch to fedora's nowide patch Fixes: https://bugs.gentoo.org/726512 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org> dev-libs/leatherman/files/shared_nowide.patch | 107 ++++++++++++++++++++++++ dev-libs/leatherman/leatherman-1.12.1-r1.ebuild | 60 +++++++++++++ 2 files changed, 167 insertions(+)