Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295472 - dev-util/boost-build-1.41.0 failed compile
Summary: dev-util/boost-build-1.41.0 failed compile
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-02 18:36 UTC by Oschtan
Modified: 2010-06-26 05:52 UTC (History)
1 user (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 Oschtan 2009-12-02 18:36:34 UTC
>>> Emerging (1 of 2) dev-util/boost-build-1.41.0
 * boost_1_41_0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * CPV:  dev-util/boost-build-1.41.0                                           
 * REPO: gentoo                                                                
 * USE:  amd64 elibc_glibc kernel_linux multilib python userland_GNU           
 * Compilation of boost-build is known to break if {C,LD}FLAGS contain         
 * extra white space (bug 293652)                                              
>>> Unpacking source...                                                        
>>> Source unpacked in /var/tmp/portage/dev-util/boost-build-1.41.0/work       
>>> Preparing source in /var/tmp/portage/dev-util/boost-build-1.41.0/work/boost_1_41_0/tools ...
 * Applying boost-1.41-fix-mpich2-detection.patch ...                                                                                                  [ ok ]
>>> Source prepared.                                                                                                                                         
>>> Configuring source in /var/tmp/portage/dev-util/boost-build-1.41.0/work/boost_1_41_0/tools ...                                                           
>>> Source configured.                                                                                                                                       
>>> Compiling source in /var/tmp/portage/dev-util/boost-build-1.41.0/work/boost_1_41_0/tools ...                                                             
###                                                                                                                                                          
### Using 'cc' toolset.                                                                                                                                      
###                                                                                                                                                          
rm -rf bootstrap                                                                                                                                             
mkdir bootstrap                                                                                                                                              
x86_64-pc-linux-gnu-gcc -o bootstrap/mkjambase0 -O2 -pipe -march=amdfam10 -mtune=amdfam10 -fno-strict-aliasing -Wl,-O1 mkjambase.c                           
./bootstrap/mkjambase0 jambase.c Jambase                                                                                                                     
x86_64-pc-linux-gnu-gcc -o bootstrap/jam0 -O2 -pipe -march=amdfam10 -mtune=amdfam10 -fno-strict-aliasing -Wl,-O1 command.c compile.c debug.c expand.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c output.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c pwd.c class.c native.c w32_getreg.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c execunix.c fileunix.c                                                                         
expand.c: In function 'var_expand':                                                                                                                          
expand.c:85: warning: field precision should have type 'int', but argument 2 has type 'long int'                                                             
variable.c: In function 'var_string_to_file':                                                                                                                
variable.c:408: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result                                                       
variable.c:409: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result                                                       
./bootstrap/jam0 -f build.jam --toolset=cc --toolset-root= clean                                                                                             
...found 1 target...                                                                                                                                         
...updating 1 target...                                                                                                                                      
...updated 1 target...                                                                                                                                       
./bootstrap/jam0 -f build.jam --toolset=cc --toolset-root= --with-python                                                                                     
...found 47 targets...                                                                                                                                       
...updating 2 targets...                                                                                                                                     
[MKDIR] bin.linuxx86_64                                                                                                                                      
[COMPILE] bin.linuxx86_64/bjam                                                                                                                               
x86_64-pc-linux-gnu-gcc: : No such file or directory                                                                                                         
expand.c: In function 'var_expand':                                                                                                                          
expand.c:85: warning: field precision should have type 'int', but argument 2 has type 'long int'                                                             
variable.c: In function 'var_string_to_file':                                                                                                                
variable.c:408: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result                                                       
variable.c:409: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result                                                       

    "x86_64-pc-linux-gnu-gcc"   -o bin.linuxx86_64/bjam "-DNDEBUG" "-DOPT_HEADER_CACHE_EXT" "-DOPT_GRAPH_DEBUG_EXT" "-DOPT_SEMAPHORE" "-DOPT_AT_FILES" "-DOPT_DEBUG_PROFILE" "-DOPT_FIX_TARGET_VARIABLES_EXT" "-DOPT_IMPROVED_PATIENCE_EXT" "-DYYSTACKSIZE=5000" "" "-O2" "-pipe" "-march=amdfam10" "-mtune=amdfam10" "-fno-strict-aliasing" "-O" "-Wl,-O1" "command.c" "compile.c" "debug.c" "expand.c" "glob.c" "hash.c" "hcache.c" "headers.c" "hdrmacro.c" "jam.c" "jambase.c" "jamgram.c" "lists.c" "make.c" "make1.c" "mem.c" "newstr.c" "option.c" "output.c" "parse.c" "regexp.c" "rules.c" "scan.c" "search.c" "subst.c" "w32_getreg.c" "timestamp.c" "variable.c" "modules.c" "strings.c" "filesys.c" "builtins.c" "pwd.c" "class.c" "native.c" "modules/set.c" "modules/path.c" "modules/regex.c" "modules/property-set.c" "modules/sequence.c" "modules/order.c" "execunix.c" "fileunix.c" "pathunix.c"                                                           

...failed [COMPILE] bin.linuxx86_64/bjam...
...failed updating 1 target...             
...updated 1 target...                     
 * ERROR: dev-util/boost-build-1.41.0 failed:
 *   building bjam failed                    
 *                                           
 * Call stack:                               
 *     ebuild.sh, line  49:  Called src_compile
 *   environment, line 2942:  Called die       
 * The specific snippet of code:               
 *           LIBS=${LDFLAGS} CC=$(tc-getCC) ./build.sh ${toolset} $(use_with python) || die "building bjam failed";

Reproducible: Always

Steps to Reproduce:




Portage 2.2_rc54 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r6 x86_64)
=================================================================                             
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Phenom-tm-_8450_Triple-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Wed, 02 Dec 2009 17:45:02 +0000                                                     
ccache version 2.4 [enabled]                                                                           
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL sun-prerelease-jdk7"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sets sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://trumpetti.atm.tut.fi/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi additions alsa amd64 amr ao apm berkdb bindist bzip2 cairo cgi clamav cleartype cli consolekit cracklib crypt ctype custom-cflags dbus djvu dri dv dvd emerald enca encode exif extras faac faad fastcgi fbcondecor ffmpeg fontconfig fortran ftp fuse gd gecko gif git glitz google-gadgets gphoto2 gpm hal hddtemp iconv imagemagick imlib jabber java jbig jpeg jpeg2k kde lame lastfm latin1 lcms libnotify lm_sensors lzma mad midi mikmod mjpeg mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib multitarget mysql ncurses nls npp nptl nptlonly nsplugin objc objc++ objc-gc ogg opencore-amr openexr opengl openmp oscar pam pcre pdf perl php plasma png povray pppd python python3 qt3 qt3support qt4 quicktime rar rcc readline reflection rtc samba schroedinger sdl sensord session skey slang smbclient sndfile source speex spell spl sqlite sqlite3 srt sse sse2 ssl startup-notification subversion suid svg symlink sysfs syslog tcpd templates theora tidy tiff truetype unicode unsupported usb utempter vcd vorbis webdav-neon wmf x264 xattr xcb xcomposite xine xml xorg xpm xscreensaver xulrunner xv xvid yv12 zip zlib" ALSA_CARDS="hda-intel" 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" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11 jl2005a topfield" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sebastian Luther (few) 2009-12-02 18:46:58 UTC
Please remove the leading white space from your CFLAGS.
Comment 2 Zeev Tarantov 2009-12-02 22:06:19 UTC
This: "-DYYSTACKSIZE=5000" "" "-O2" "-pipe"

See the quoted empty string? bug #293652.
Comment 3 Alexander Vershilov (RETIRED) gentoo-dev 2010-03-31 20:17:00 UTC
(In reply to comment #1)
> Please remove the leading white space from your CFLAGS.
> 

Don't work if not correct CFLAGS added (for me one of  -mssse3 -mfpmath=sse,387 -mpc80  -pipe).
Resolved by adding /etc/portage/package/env/dev-util/boost-build. 

Maybe we should add sed "s/  / /", "s/( )*$//" for CFLAGS to delete extra spaces?
Comment 4 Sebastian Luther (few) 2010-03-31 20:23:36 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > Please remove the leading white space from your CFLAGS.
> > 
> 
> Don't work if not correct CFLAGS added (for me one of  -mssse3 -mfpmath=sse,387
> -mpc80  -pipe).
> Resolved by adding /etc/portage/package/env/dev-util/boost-build. 
> 
> Maybe we should add sed "s/  / /", "s/( )*$//" for CFLAGS to delete extra
> spaces?
> 

This is already fixed upstream. Expect it to be found some time in the future in the ebuilds. 
Comment 5 Mike Bryce 2010-06-26 05:52:19 UTC
Just thought I'd add one more way to fall prey to this bug.

If you have an invalid CFLAG (I typed -march-k8 instead of -march=k8) then the ebuild strips that invalid flag and apparently leaves in the space that used to seperate it from the rest of the list.

eg I had CFLAGS="-O2 -pipe -march-k8"
which seemed to create "-O2 -pipe " and cause the failure documented here.

Mike