Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The new full boost package doesn't install on Gentoo if boost-build is installed #20776

Closed
kiwifb opened this issue Jun 4, 2016 · 6 comments
Closed

Comments

@kiwifb
Copy link
Member

kiwifb commented Jun 4, 2016

And it will always be installed if you install boost. The boost-build bit is packaged with the rest of boost and are the build system bit of boost. b2 and the associated bjam build system. Very few things apart from boost uses bjam.

In a standard install you only care about the libraries and headers but if the boost build system is installed in a standard location, i.e. you have the file /usr/share/boost-build/site-config.jam in that precise location the spkg will fail to build like so

boost-1_61_0
====================================================
Setting up build directory for boost-1_61_0
Finished set up
****************************************************
Host system:
Linux QCD-nzi3 4.1.12-gentoo #1 SMP Fri Dec 18 16:06:42 NZDT 2015 x86_64 Intel(R) Core(TM) i7 CPU 970 @ 3.20GHz GenuineIntel GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/5.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /scratch2/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.3.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.3.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.3.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/g++-v5 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/5.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 5.3.0 p1.1, pie-0.6.5' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-libcilkrts --disable-libmpx --enable-vtable-verify --enable-libvtv --enable-lto --with-isl --disable-isl-version-check --enable-libsanitizer
Thread model: posix
gcc version 5.3.0 (Gentoo 5.3.0 p1.1, pie-0.6.5)
****************************************************
Running boost bootstrap
Building Boost.Build engine with toolset gcc... tools/build/src/engine/bin.linuxx86_64/b2
Detecting Python version... 2.7
Detecting Python root... /home/fbissey/sandbox/git-fork/sage/local
Unicode/ICU support for Boost.Regex?... /usr
Generating Boost.Build configuration in project-config.jam...

Bootstrapping is done. To build, run:

./b2

To adjust configuration, edit 'project-config.jam'.
Further information:

- Command line help:
./b2 --help

- Getting started guide:
http://www.boost.org/more/getting_started/unix-variants.html

- Boost.Build documentation:
http://www.boost.org/build/doc/html/index.html

Building boost
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/tools/build/src/build/feature.jam:494: in feature.validate-value-string from module feature
error: "none" is not a known value of feature <optimization>
error: legal values: "off" "speed" "space"
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/tools/build/src/build/property.jam:276: in validate1 from module property
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/tools/build/src/build/property.jam:302: in property.validate from module property
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/tools/build/src/tools/builtin.jam:381: in variant from module builtin
/usr/share/boost-build/site-config.jam:9: in modules.load from module site-config
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/tools/build/src/build-system.jam:249: in load-config from module build-system
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/tools/build/src/build-system.jam:351: in load-configuration-files from module build-system
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/tools/build/src/build-system.jam:524: in load from module build-system
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/tools/build/src/kernel/modules.jam:295: in import from module modules
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module
/home/fbissey/sandbox/git-fork/sage/local/var/tmp/sage/build/boost-1_61_0/src/boost-build.jam:17: in module scope from module

Failed to build boost.

real	0m10.184s
user	0m9.091s
sys	0m0.755s
************************************************************************
Error installing package boost-1_61_0
************************************************************************

CC: @jhpalmieri @tscrim

Component: packages: optional

Author: François Bissey

Branch/Commit: 903dd9b

Reviewer: Volker Braun

Issue created by migration from https://trac.sagemath.org/ticket/20776

@kiwifb kiwifb added this to the sage-7.3 milestone Jun 4, 2016
@kiwifb
Copy link
Member Author

kiwifb commented Jun 5, 2016

Author: François Bissey

@kiwifb
Copy link
Member Author

kiwifb commented Jun 5, 2016

comment:1

For review.


New commits:

fa6a5e8Full boost optional package
d35390fBoost: don't delete the old headers until the new version builds.
903dd9bFix building of boost on Gentoo (and other) when boost-build is installed.

@kiwifb
Copy link
Member Author

kiwifb commented Jun 5, 2016

Commit: 903dd9b

@kiwifb
Copy link
Member Author

kiwifb commented Jun 5, 2016

Branch: u/fbissey/full_boost_gentoo_fix

@vbraun
Copy link
Member

vbraun commented Jul 3, 2016

Reviewer: Volker Braun

@vbraun
Copy link
Member

vbraun commented Jul 3, 2016

Changed branch from u/fbissey/full_boost_gentoo_fix to 903dd9b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants