Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561342 - sys-apps/sandbox-2.8: CFLAGS=-O0: libsandbox.la failed with: undefined reference to xgetcwd
Summary: sys-apps/sandbox-2.8: CFLAGS=-O0: libsandbox.la failed with: undefined refere...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-24 11:30 UTC by Pryka
Modified: 2015-09-27 09:26 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,27.29 KB, text/x-log)
2015-09-24 15:51 UTC, Pryka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pryka 2015-09-24 11:30:27 UTC
Crash when building.

Reproducible: Always

Actual Results:  
Making all in libsandbox
  GEN      libsandbox.map
  CC       libsandbox_la-lock.lo
  GEN      symbols.h
  CC       libsandbox_la-memory.lo
  GEN      trace_syscalls.h
  CC       libsandbox_la-canonicalize.lo
  GEN      sb_nr.h
  CC       libsandbox_la-wrappers.lo
  CC       libsandbox_la-libsandbox.lo
  CC       libsandbox_la-trace.lo
  CCLD     libsandbox.la

*** Warning: Linking the shared library libsandbox.la against the
*** static library ../libsbutil/.libs/libsbutil.a is not portable!
../libsbutil/.libs/libsbutil.a(canonicalize.o): In function `canonicalize_filename_mode':
canonicalize.c:(.text.canonicalize_filename_mode+0xe3): undefined reference to `xgetcwd'
collect2: error: ld returned 1 exit status
Makefile:458: recipe for target 'libsandbox.la' failed
make[2]: *** [libsandbox.la] Error 1
Makefile:483: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:395: recipe for target 'all' failed
make: *** [all] Error 2
emake failed


Portage 2.2.21 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.1.6 x86_64)
=================================================================
System uname: Linux-4.1.6-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-gentoo-2.2
KiB Mem:     4047080 total,    610496 free
KiB Swap:    2016120 total,   2013424 free
Timestamp of repository gentoo: Thu, 24 Sep 2015 10:45:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.2::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://ftp.vectranet.pl/gentoo-portage
    priority: -1000

foo-overlay
    location: /var/lib/layman/foo-overlay
    sync-type: laymansync
    sync-uri: git://github.com/slashbeast/foo-overlay.git
    masters: gentoo
    priority: 50                                                                                                                                                     
                                                                                                                                                                     
roslin                                                                                                                                                               
    location: /var/lib/layman/roslin                                                                                                                                 
    sync-type: laymansync                                                                                                                                            
    sync-uri: https://gitlab.com/roslin-uberlay/roslin.git                                                                                                           
    masters: gentoo                                                                                                                                                  
    priority: 50                                                                                                                                                     
                                                                                                                                                                     
sunrise                                                                                                                                                              
    location: /var/lib/layman/sunrise                                                                                                                                
    sync-type: laymansync                                                                                                                                            
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 googleearth google-chrome Oracle-BCLA-JavaSE skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="64bit X a52 aac accessibility acl acpi alsa amd64 bash-completion bazaar berkdb binary-drivers bluetooth branding bzip2 cairo cdda cdr cjk cli color consolekit cracklib crashreporter crypt css cups cxx dbus declarative device-mapper dri dts dvd dvdnav dvdr embedded emboss encode exif fam fat fbcon fbcondecor ffmpeg firefox flac fontconfig fortran gcj gdbm gif glamor gpm gtk handbook hddtemp iconv idn imlib ipv6 java jpeg kde kipi lame lcms ldap legacy-systray libnotify lua mad mercurial mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nss ntfs ogg opengl openmp pam pango pcre pdf phonon plasma png policykit postproc ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session slang spell sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink sync-plugin-portage syslog tcpd tiff truetype udev udisks unicode upower usb vorbis webm widgets wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvfb 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" CURL_SSL="openssl" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 SpanKY gentoo-dev 2015-09-24 13:40:01 UTC
please include the *full* build log as an attachment in every report
Comment 2 Pryka 2015-09-24 15:51:23 UTC
Created attachment 412800 [details]
build.log
Comment 3 SpanKY gentoo-dev 2015-09-26 22:40:51 UTC
guess it's because you're building w/out any optimization.  that seems like a bad idea in general.
Comment 5 Pryka 2015-09-27 08:53:57 UTC
Actually i have -O2 set in my make.conf.
Comment 6 Pryka 2015-09-27 09:26:15 UTC
(In reply to Pryka from comment #5)
> Actually i have -O2 set in my make.conf.

My bad, u are right, i was checking something some time ago, and didn't set -02 again... :|