Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 577374 - dev-libs/boost-1.60.0::gentoo failed (compile phase)
Summary: dev-libs/boost-1.60.0::gentoo failed (compile phase)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-14 11:40 UTC by Conrad Kostecki
Modified: 2017-04-04 18:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2016-03-14 11:40:47 UTC
Hi!
I am unable to compile dev-libs/boost on my Raspberry Pi 3. It failing. I've also tried 1.56 and 1.58. Both are failing with exact the same error.

    "armv7a-hardfloat-linux-gnueabi-g++"  -ftemplate-depth-128 -march=armv8-a+crc -mcpu=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mtune=cortex-a53 -O3 -masm-syntax-unified -mfloat-abi=hard -mfp16-format=ieee -mneon-for-64bits -mstructure-size-boundary=32 -mthumb -mtls-dialect=gnu2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden -std=gnu++98 -finline-functions -Wno-inline -Wall -pthread -fPIC -fvisibility-inlines-hidden -fvisibility=hidden -DBOOST_ALL_NO_LIB=1 -DBOOST_SERIALIZATION_DYN_LINK=1 -DNDEBUG  -I"." -c -o "bin.v2/libs/serialization/build/gcc-5.3/gentoorelease/pch-off/threading-multi/binary_oarchive.o" "libs/serialization/src/binary_oarchive.cpp"

In file included from ./boost/integer.hpp:23:0,
                 from ./boost/archive/basic_binary_oprimitive.hpp:41,
                 from ./boost/archive/binary_oarchive_impl.hpp:21,
                 from ./boost/archive/binary_oarchive.hpp:21,
                 from libs/serialization/src/binary_oarchive.cpp:14:
./boost/archive/basic_binary_oarchive.hpp:85:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’
     BOOST_STATIC_ASSERT(sizeof(tracking_type) == sizeof(bool));
     ^
./boost/archive/basic_binary_oarchive.hpp:85:5: error: template argument 1 is invalid
     BOOST_STATIC_ASSERT(sizeof(tracking_type) == sizeof(bool));
     ^
./boost/archive/basic_binary_oarchive.hpp:87:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’
     BOOST_STATIC_ASSERT(sizeof(class_id_type) == sizeof(int_least16_t));
     ^
./boost/archive/basic_binary_oarchive.hpp:87:5: error: template argument 1 is invalid
     BOOST_STATIC_ASSERT(sizeof(class_id_type) == sizeof(int_least16_t));
     ^
./boost/archive/basic_binary_oarchive.hpp:88:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’
     BOOST_STATIC_ASSERT(sizeof(class_id_reference_type) == sizeof(int_least16_t));
     ^
./boost/archive/basic_binary_oarchive.hpp:88:5: error: template argument 1 is invalid
     BOOST_STATIC_ASSERT(sizeof(class_id_reference_type) == sizeof(int_least16_t));
     ^
gcc.compile.c++ bin.v2/libs/serialization/build/gcc-5.3/gentoorelease/pch-off/threading-multi/extended_type_info_typeid.o

    "armv7a-hardfloat-linux-gnueabi-g++"  -ftemplate-depth-128 -march=armv8-a+crc -mcpu=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mtune=cortex-a53 -O3 -masm-syntax-unified -mfloat-abi=hard -mfp16-format=ieee -mneon-for-64bits -mstructure-size-boundary=32 -mthumb -mtls-dialect=gnu2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden -std=gnu++98 -finline-functions -Wno-inline -Wall -pthread -fPIC -fvisibility-inlines-hidden -fvisibility=hidden -DBOOST_ALL_NO_LIB=1 -DBOOST_SERIALIZATION_DYN_LINK=1 -DNDEBUG  -I"." -c -o "bin.v2/libs/serialization/build/gcc-5.3/gentoorelease/pch-off/threading-multi/extended_type_info_typeid.o" "libs/serialization/src/extended_type_info_typeid.cpp"

gcc.link.dll bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/libboost_program_options.so.1.60.0

    "armv7a-hardfloat-linux-gnueabi-g++"    -o "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/libboost_program_options.so.1.60.0" -Wl,-h -Wl,libboost_program_options.so.1.60.0 -shared -Wl,--start-group "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/cmdline.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/config_file.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/options_description.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/parsers.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/variables_map.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/value_semantic.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/positional_options.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/utf8_codecvt_facet.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/convert.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/winmain.o" "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/split.o"  -Wl,-Bstatic  -Wl,-Bdynamic -lrt -Wl,--end-group -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now -pthread 

common.copy stage/lib/libboost_program_options.so.1.60.0

    cp "bin.v2/libs/program_options/build/gcc-5.3/gentoorelease/pch-off/threading-multi/libboost_program_options.so.1.60.0"  "stage/lib/libboost_program_options.so.1.60.0"

...failed updating 2 targets...
Comment 1 Conrad Kostecki gentoo-dev 2016-03-14 11:41:02 UTC
Portage 2.2.26 (python 3.4.3-final-0, default/linux/arm/13.0/armv7a/desktop, gcc-5.3.0, glibc-2.22-r2, 4.4.3-raspberrypi-v7+ armv7l)
=================================================================
System uname: Linux-4.4.3-raspberrypi-v7+-armv7l-with-gentoo-2.2
KiB Mem:      947536 total,    799696 free
KiB Swap:    2097148 total,   2091808 free
Timestamp of repository gentoo: Sun, 13 Mar 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r1::gentoo, 3.5.1-r2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --delete-before --delete-excluded --exclude-from=/etc/portage/rsync_excludes --stats

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="*"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-march=armv8-a+crc -mcpu=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mtune=cortex-a53 -O3 -masm-syntax-unified -mfloat-abi=hard -mfp16-format=ieee -mneon-for-64bits -mstructure-size-boundary=32 -mthumb -mtls-dialect=gnu2 -pipe -fomit-frame-pointer"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=armv8-a+crc -mcpu=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mtune=cortex-a53 -O3 -masm-syntax-unified -mfloat-abi=hard -mfp16-format=ieee -mneon-for-64bits -mstructure-size-boundary=32 -mthumb -mtls-dialect=gnu2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK="/etc/systemd/network/* /etc/systemd/system/* /etc/xinetd.d/* /usr/lib64/systemd/system/* /usr/lib64/systemd/system-shutdown/*"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--delete-before --delete-excluded --exclude-from=/etc/portage/rsync_excludes --stats"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="arm armv5te armv6 armv6t2 bzip2 curl cxx gmp gnutls gpm iconv icu idn ipv6 jit ncurses neon nls nptl openmp pam pcre pie png readline slang ssl suid symlink threads udev unicode vim-syntax xml zlib" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LINGUAS="de" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" USERLAND="GNU" VIDEO_CARDS="fbdev"
USE_PYTHON="2.7 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BUNZIP2_COMMAND
Comment 2 Pacho Ramos gentoo-dev 2016-03-14 16:52:17 UTC
I wonder if that CFLAGS are "sane"... but I don't know if maybe for RPI is needed or similar :/
Comment 3 Conrad Kostecki gentoo-dev 2016-03-14 16:53:54 UTC
(In reply to Pacho Ramos from comment #2)
> I wonder if that CFLAGS are "sane"... but I don't know if maybe for RPI is
> needed or similar :/

I've tried also CFLAGS="-march=armv8-a -O2 -pipe"
Did not help. I've even took a fresh stage3, upgraded GCC and still failing to compile boost with that relaxed CFLAGS.
Comment 4 Conrad Kostecki gentoo-dev 2016-03-14 23:46:51 UTC
As a workaround:

Adding "-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT=1" to CXXFLAGS does the trick. After that, dev-libs/boost is compiling fine..
Comment 5 David Seifert gentoo-dev 2016-03-30 07:37:55 UTC
Seems to be a somewhat lingering issue...
http://lists.boost.org/boost-users/2012/05/74658.php
Comment 6 David Seifert gentoo-dev 2017-04-04 18:00:45 UTC
Obsolete, reopen if issue persists.

commit 400e20295bf062a0bf697acce718e78116b143e2
Author: David Seifert <soap@gentoo.org>
Date:   Tue Apr 4 19:33:14 2017 +0200

    dev-libs/boost: Remove old