Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639478 - sys-libs/libcxxrt-0.0_p20160922 - stdexcept.So: In function `std::exception::~exception()': stdexcept.cc:(.text+0xf3): undefined reference to `operator delete(void*, unsigned long)'
Summary: sys-libs/libcxxrt-0.0_p20160922 - stdexcept.So: In function `std::exception::...
Status: RESOLVED DUPLICATE of bug 594138
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-02 08:00 UTC by François Valenduc
Modified: 2017-12-03 17:22 UTC (History)
3 users (show)

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 François Valenduc 2017-12-02 08:00:54 UTC
I get this error when building libcxxrt:

make -j1 shared 
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o dynamic_cast.So dynamic_cast.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o exception.So exception.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o guard.So guard.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o stdexcept.So stdexcept.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o typeinfo.So typeinfo.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o memory.So memory.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o auxhelper.So auxhelper.cc
x86_64-pc-linux-gnu-gcc -fPIC -march=native -O2 -pipe  -c -o libelftc_dem_gnu3.So libelftc_dem_gnu3.c
libelftc_dem_gnu3.c: In function ‘cpp_demangle_read_number_as_string’:
libelftc_dem_gnu3.c:2000:6: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
  if (asprintf(str, "%ld", n) < 0) {
      ^~~~~~~~
x86_64-pc-linux-gnu-g++ -fPIC -nodefaultlibs -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,defs -shared -Wl,-soname,libcxxrt.so.1 -o libcxxrt.so.1 dynamic_cast.So exception.So guard.So stdexcept.So typeinfo.So memory.So auxhelper.So libelftc_dem_gnu3.So -ldl -lgcc_s -lc
stdexcept.So: In function `std::exception::~exception()':
stdexcept.cc:(.text+0xf3): undefined reference to `operator delete(void*, unsigned long)'
stdexcept.So: In function `std::bad_alloc::~bad_alloc()':
stdexcept.cc:(.text+0x113): undefined reference to `operator delete(void*, unsigned long)'
stdexcept.So: In function `std::bad_cast::~bad_cast()':
stdexcept.cc:(.text+0x133): undefined reference to `operator delete(void*, unsigned long)'
stdexcept.So: In function `std::bad_typeid::~bad_typeid()':
stdexcept.cc:(.text+0x153): undefined reference to `operator delete(void*, unsigned long)'
stdexcept.So: In function `std::bad_array_new_length::~bad_array_new_length()':
stdexcept.cc:(.text+0x173): undefined reference to `operator delete(void*, unsigned long)'
typeinfo.So:typeinfo.cc:(.text+0x34a): more undefined references to `operator delete(void*, unsigned long)' follow
collect2: error: ld returned 1 exit status
make: *** [Makefile:20: libcxxrt.so.1] Error 1

Reproducible: Always

Steps to Reproduce:
1. Try to build  sys-libs/libcxxrt-0.0_p20160922
2.
3.



Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r9, 4.14.3 x86_64)
=================================================================
System uname: Linux-4.14.3-x86_64-Intel-R-_Core-TM-_i5-3230M_CPU_@_2.60GHz-with-gentoo-2.4.1
KiB Mem:     3924196 total,    194200 free
KiB Swap:    3145724 total,   2602236 free
Timestamp of repository gentoo: Fri, 01 Dec 2017 17:30:01 +0000
Head commit of repository gentoo: d95c50ae51b1c5f33cc7a85e899e081744f0f584
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.5.4::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude='/lost+found'

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

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50

zugaina
    location: /var/lib/layman/zugaina
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude='/lost+found'"
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="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 java jpeg kerberos kpathsea lcms libnotify lzma mad mmx mng modules mp3 mp4 mpeg multilib musicbrainz ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf pkcs11 png policykit ppds qt5 readline samba scanner sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4 ssl ssse3 startup-notification svg systemd tcpd tiff truetype udev udisks unicode upnp upower usb v4l2 vim-syntax vorbis wxwidgets xattr xcb xml xosd xv xvid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="mouse evdev synaptics" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5 python2_7" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i915" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 François Valenduc 2017-12-02 08:44:46 UTC
I tested libxcxxrt-0.0_p20170515 and it compiles although it finds the same problem:

>>> Compiling source in /var/tmp/portage/sys-libs/libcxxrt-0.0_p20170515/work/libcxxrt-0.0_p20170515 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j9 -l7 shared 
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o dynamic_cast.So dynamic_cast.cc
x86_64-pc-linux-gnu-gcc -fPIC -march=native -O2 -pipe  -c -o libelftc_dem_gnu3.So libelftc_dem_gnu3.c
libelftc_dem_gnu3.c: In function ‘cpp_demangle_read_number_as_string’:
libelftc_dem_gnu3.c:2000:6: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
  if (asprintf(str, "%ld", n) < 0) {
      ^~~~~~~~
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o auxhelper.So auxhelper.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o memory.So memory.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o typeinfo.So typeinfo.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o stdexcept.So stdexcept.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o guard.So guard.cc
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe  -c -o exception.So exception.cc
x86_64-pc-linux-gnu-g++ -fPIC -nodefaultlibs -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,defs -shared -Wl,-soname,libcxxrt.so.1 -o libcxxrt.so.1 dynamic_cast.So exception.So guard.So stdexcept.So typeinfo.So memory.So auxhelper.So libelftc_dem_gnu3.So -ldl -lunwind -lc
ln -s libcxxrt.so.1 libcxxrt.so
make -j9 -l7 static 
x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe   -c -o dynamic_cast.o dynamic_cast.cc
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe   -c -o libelftc_dem_gnu3.o libelftc_dem_gnu3.c
libelftc_dem_gnu3.c: In function ‘cpp_demangle_read_number_as_string’:
libelftc_dem_gnu3.c:2000:6: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
  if (asprintf(str, "%ld", n) < 0) {
      ^~~~~~~~
x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe   -c -o auxhelper.o auxhelper.cc
x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe   -c -o memory.o memory.cc
x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe   -c -o typeinfo.o typeinfo.cc
x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe   -c -o stdexcept.o stdexcept.cc
x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe   -c -o guard.o guard.cc
x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe   -c -o exception.o exception.cc
x86_64-pc-linux-gnu-ar cr libcxxrt.a dynamic_cast.o exception.o guard.o stdexcept.o typeinfo.o memory.o auxhelper.o libelftc_dem_gnu3.o
>>> Source compiled.
>>> Test phase [not enabled]: sys-libs/libcxxrt-0.0_p20170515

>>> Install libcxxrt-0.0_p20170515 into /var/tmp/portage/sys-libs/libcxxrt-0.0_p20170515/image/ category sys-libs
 * abi_x86_64.amd64: running multilib-minimal_abi_src_install
>>> Completed installing libcxxrt-0.0_p20170515 into /var/tmp/portage/sys-libs/libcxxrt-0.0_p20170515/image/

 * Final size of build directory: 1464 KiB (1.4 MiB)
 * Final size of installed tree:   352 KiB


 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
Comment 2 Marco Genasci 2017-12-02 10:56:15 UTC
Upstream discussion https://github.com/pathscale/libcxxrt/pull/48
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-02 22:15:46 UTC
(In reply to François Valenduc from comment #1)
> I tested libxcxxrt-0.0_p20170515 and it compiles although it finds the same
> problem:

Because you found the wrong problem. Warnings are not errors.
Comment 4 Ben Kohler gentoo-dev 2017-12-03 17:16:32 UTC
Upstream fixed this in https://github.com/pathscale/libcxxrt/commit/db54f535fc67703b2993b9b2d3fc7ede7a608936 which our 0.0_p20170515 snapshot has.

We need to stabilize this new version.
Comment 5 Brian Evans (RETIRED) gentoo-dev 2017-12-03 17:22:23 UTC

*** This bug has been marked as a duplicate of bug 594138 ***