Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440990 - dev-util/boost-build-1.51.0 cannot be compiled
Summary: dev-util/boost-build-1.51.0 cannot be compiled
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 441866 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-02 18:13 UTC by Jimis Hol
Modified: 2012-11-06 15:12 UTC (History)
3 users (show)

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


Attachments
build.log of boost-1.51.0 (build.log,4.48 KB, text/plain)
2012-11-02 18:16 UTC, Jimis Hol
Details
enviroment of boost-1.51.0 (environment,201.85 KB, text/plain)
2012-11-02 18:19 UTC, Jimis Hol
Details
build.log of boost-1.51.0 in english i hope (build.log,4.41 KB, text/plain)
2012-11-02 18:28 UTC, Jimis Hol
Details
Proposed patch to strip LDFLAGS (boost-build-ldflags.patch,248 bytes, patch)
2012-11-02 19:41 UTC, Neil Dökkalfar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jimis Hol 2012-11-02 18:13:04 UTC
Last version of boost fails to be compiled. I couldn't find out if it is a dublicated of some other bug. Masking version 1.51.0 doesn't help update to be continued

Reproducible: Always




emerge --info '=dev-util/boost-build-1.51.0'
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.3, glibc-2.16.0, 3.5.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.5.6-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_460_@_2.53GHz-with-gentoo-2.2
Timestamp of tree: Fri, 02 Nov 2012 17:30:01 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Broadcom AdobeFlash-10.3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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/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 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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/"
LANG="el_GR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed "
LINGUAS="el"
MAKEOPTS="-j4 -l3.95"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 aperfmperf apic arat arch_perfmon berkdb branding bts bzip2 cairo cdda cdr clflush cli cmov colord consolekit constant_tsc cracklib crypt cups cx16 cx8 cxx dbus de dri ds_cpl dtes64 dts dvd dvdr eds emboss encode ept est evo exif fam firefox flac flexpriority fortran fpu fxsr gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ht iconv ida java jpeg lahf_lm lcms ldap libnotify lm mad mca mce mmx mng modules monitor mp3 mp4 mpeg msn msr mtrr mudflap multilib nautilus ncurses networkmanager nls nonstop_tsc nopl nptl nx ogg opengl openmp pae pam pango pat pbe pcre pdcm pdf pebs pge png pni policykit popcnt ppds pppd pse pse36 pulseaudio qt3support rdtscp readline rep_good sdl sep session socialweb spell ss sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg syscall tcpd tiff tm tm2 tpr_shadow truetype tsc udev udisks unicode upower usb v4l v4l2 vme vmx vnmi vorbis vpid wxwidgets x264 xcb xml xtopology xtpr xv xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="el" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jimis Hol 2012-11-02 18:16:25 UTC
Created attachment 328120 [details]
build.log of boost-1.51.0
Comment 2 Jimis Hol 2012-11-02 18:16:54 UTC
emerge -pqv '=dev-util/boost-build-1.51.0'
[ebuild     U ] dev-util/boost-build-1.51.0 [1.49.0] USE="-examples -python {-test%}"
Comment 3 Jimis Hol 2012-11-02 18:19:06 UTC
Created attachment 328122 [details]
enviroment of boost-1.51.0
Comment 4 Jimis Hol 2012-11-02 18:28:18 UTC
Created attachment 328124 [details]
build.log of boost-1.51.0 in english i hope
Comment 5 Douglas J Hunley 2012-11-02 18:31:27 UTC
I have this here as well. It fails building 'b2' and the error spewed indicated a file is missing somewhere. However, going into /var/tmp/portage/boost-build-1.51.0/blah and running the same command by hand produces the 'b2' binary w/o issue
Comment 6 Neil Dökkalfar 2012-11-02 19:27:15 UTC
Emerging dev-util/boost-build is known to failed when the LDFLAGS ends with a space, as in your case (from your emerge --info):

  LDFLAGS="-Wl,-O1 -Wl,--as-needed "

I suggest your track this error in your make.conf. Your probably have a LDFLAGS="${LDFLAGS} ${SOME_UNDEFVAR}" somewhere. The default make.defaults in /usr/portage/profiles/... is the first definition for LDFLAGS on Gentoo. 

Alternatively, you could emerge it with:

  LDFLAGS="-Wl,-O1 -Wl,--as-needed" emerge -av boost-build

and keep that in per-package ldflags (see the wiki: http://en.gentoo-wiki.com/wiki/Safe_LDFLAGS).
Comment 7 Neil Dökkalfar 2012-11-02 19:30:06 UTC
> and keep that in per-package ldflags (see the wiki:
> http://en.gentoo-wiki.com/wiki/Safe_LDFLAGS).

Actually, /etc/portage/env is probably better for that.
Comment 8 Neil Dökkalfar 2012-11-02 19:41:47 UTC
Created attachment 328138 [details, diff]
Proposed patch to strip LDFLAGS
Comment 9 Jimis Hol 2012-11-02 23:29:33 UTC
You are right. The first occurance of LDFLAGS in make.conf was

LDFLAGS="${LDFLAGS} ". So I changed it as LDFLAGS="${LDFLAGS}" and all is ok.

Thank you!
Comment 10 Douglas J Hunley 2012-11-02 23:51:33 UTC
The same is true of CFLAGS and CXXFLAGS, btw. The patch should, imho, deal with all three of these
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-05 12:57:42 UTC
*** Bug 441866 has been marked as a duplicate of this bug. ***
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-06 14:50:54 UTC
*** Bug 441866 has been marked as a duplicate of this bug. ***
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-06 15:12:52 UTC
*** Bug 441866 has been marked as a duplicate of this bug. ***