Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602430 - sys-libs/libcxx does not install libc++experimental.a
Summary: sys-libs/libcxx does not install libc++experimental.a
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-12 12:29 UTC by Amit Prakash Ambasta
Modified: 2018-01-02 06:31 UTC (History)
2 users (show)

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


Attachments
Ebuild supporting experimental features from libcxx (libcxx-3.9.1.ebuild,6.82 KB, text/plain)
2017-01-13 12:03 UTC, Amit Prakash Ambasta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Prakash Ambasta 2016-12-12 12:29:10 UTC
libcxx exposes experimental functionality such as filesystem TS via libc++experimental.a 

The current ebuild ends up building this as:

[34/35] /usr/bin/x86_64-pc-linux-gnu-clang++  -D_DEBUG -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Iinclude -I/home/portage/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src/include  -DNDEBUG -O2 -pipe -march=haswell -mtune=haswell -flto=thin    -UNDEBUG -DLIBCXX_BUILDING_LIBCXXABI -std=c++14 -nostdinc++ -Wall -W -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Wno-user-defined-literals -Wno-covered-switch-default -Werror=return-type -Wno-error -fPIC -MD -MT lib/CMakeFiles/cxx_experimental.dir/__/src/experimental/filesystem/operations.cpp.o -MF lib/CMakeFiles/cxx_experimental.dir/__/src/experimental/filesystem/operations.cpp.o.d -o lib/CMakeFiles/cxx_experimental.dir/__/src/experimental/filesystem/operations.cpp.o -c /home/portage/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src/src/experimental/filesystem/operations.cpp
[35/35] : && /usr/bin/cmake -E remove lib64/libc++experimental.a && /usr/bin/x86_64-pc-linux-gnu-ar qc lib64/libc++experimental.a  lib/CMakeFiles/cxx_experimental.dir/__/src/experimental/memory_resource.cpp.o lib/CMakeFiles/cxx_experimental.dir/__/src/experimental/filesystem/directory_iterator.cpp.o lib/CMakeFiles/cxx_experimental.dir/__/src/experimental/filesystem/operations.cpp.o lib/CMakeFiles/cxx_experimental.dir/__/src/experimental/filesystem/path.cpp.o && /usr/bin/x86_64-pc-linux-gnu-ranlib lib64/libc++experimental.a && :


However the install phase entirely drops the archive, which means one can not link with -lc++experimental
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-12-15 10:30:35 UTC
It's kinda curious since -9999 installs it just fine. Maybe 3.9.1 will fix it.
Comment 2 Amit Prakash Ambasta 2016-12-22 08:01:54 UTC
The issue persists in 3.9.1
Comment 3 Amit Prakash Ambasta 2016-12-22 08:21:56 UTC
Adding emerge --info
-----------------------------------------------------------------------------
Portage 2.3.3 (python 3.5.2-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.4.0, glibc-2.23-r3, 4.9.0-gentoo x86_64)
=================================================================
System uname: Linux-4.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-4210U_CPU_@_1.70GHz-with-gentoo-2.3
KiB Mem:    16335528 total,   9721012 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 22 Dec 2016 07:42:28 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ambasta
    location: /var/lib/layman/ambasta
    masters: gentoo

delhivery
    location: /var/lib/layman/delhivery
    masters: gentoo

sublime-text
    location: /var/lib/layman/sublime-text
    sync-type: laymansync
    sync-uri: git://github.com/DamnWidget/sublime-text.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome Oracle-BCLA-JavaSE Sublime Google-TOS OPERA-2014 PUEL"
CBUILD="x86_64-pc-linux-gnu"
CC="x86_64-pc-linux-gnu-clang"
CFLAGS="-O2 -pipe -march=haswell -mtune=haswell -flto=thin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="x86_64-pc-linux-gnu-clang++"
CXXFLAGS="-O2 -pipe -march=haswell -mtune=haswell -flto=thin -stdlib=libc++"
DISTDIR="/home/portage/distfiles/"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://mirror.mdfnet.se/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 --exclude=/.git"
PORTAGE_TMPDIR="/home/portage/"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus directfb dri dri3 foomaticdb gdbm glamor gnome gnome-keyring gtk3 iconv infinality introspection libkms libsecret lz4 lzma mmx mmxext modules ncurses networkmanager nls nptl ntp opengl openmp pam pcre policykit ppds pulseaudio python3 readline seccomp session sna sse sse2 ssl systemd tcpd udev unicode vulkan xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5 python2_7" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Amit Prakash Ambasta 2017-01-13 12:01:59 UTC
This happens because libcxx experimental features such as filesystem require additional cmake flags not currently being passed by the ebuild i.e.

-DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY
-DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY
-DLIBCXX_ENABLE_FILESYSTEM
Comment 5 Amit Prakash Ambasta 2017-01-13 12:03:01 UTC
Created attachment 459864 [details]
Ebuild supporting experimental features from libcxx

This ebuild adds the missing cmake args
Comment 6 Amit Prakash Ambasta 2018-01-02 06:31:52 UTC
Rendered obsolete in >=sys-libs/libcxx-5.0