Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202554 - dev-util/subversion-1.4.5 failed - unrecognized option `-Wdeclaration-after-statement'
Summary: dev-util/subversion-1.4.5 failed - unrecognized option `-Wdeclaration-after-s...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-17 07:46 UTC by bob
Modified: 2007-12-17 07:49 UTC (History)
0 users

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 bob 2007-12-17 07:46:34 UTC
I tried to emerge subversion and th process failed while compiling the perl bindings notably with this line:

cc1: error: unrecognized option `-Wdeclaration-after-statement'

Reproducible: Always

Steps to Reproduce:
1.emerge subvesrion
2. it fails

Actual Results:  
the compilation failed inside the perl bindings

Expected Results:  
compiled properly

dev-util/subversion-1.4.5/work/subversion-1.4.5/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c
cd /var/tmp/portage/dev-util/subversion-1.4.5/work/subversion-1.4.5/subversion/bindings/swig/perl/native; /usr/bin/perl Makefi                                        
le.PL INSTALLDIRS=vendor
cc1: error: unrecognized option `-Wdeclaration-after-statement'
make: *** [subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.lo] Error 1
make: *** Waiting for unfinished jobs....
Note (probably harmless): No library found for -lsvn_swig_perl-1
Writing Makefile for SVN::_Core
Note (probably harmless): No library found for -lsvn_swig_perl-1
Writing Makefile.client for SVN::_Client
Note (probably harmless): No library found for -lsvn_swig_perl-1
Writing Makefile.delta for SVN::_Delta
Note (probably harmless): No library found for -lsvn_swig_perl-1
Writing Makefile.fs for SVN::_Fs
Note (probably harmless): No library found for -lsvn_swig_perl-1
Writing Makefile.ra for SVN::_Ra
Note (probably harmless): No library found for -lsvn_swig_perl-1
Writing Makefile.repos for SVN::_Repos
Note (probably harmless): No library found for -lsvn_swig_perl-1

Writing Makefile.wc for SVN::_Wc
 * 
 * ERROR: dev-util/subversion-1.4.5 failed.
 * Call stack:
 *                 ebuild.sh, line 1701:  Called dyn_compile
 *                 ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                 ebuild.sh, line   44:  Called src_compile
 *   subversion-1.4.5.ebuild, line  149:  Called die
 * The specific snippet of code:
 *              emake swig-pl || die "Compilation of ${PN} Perl bindings failed"
 *  The die message:
 *   Compilation of subversion Perl bindings failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-util/subversion-1.4.5/temp/build.log'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info

----------------------------------------------------------

 emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-3.3.6, glibc-2.5-r0, 2.6.22-gentoo-r2 i686)
=================================================================
System uname: 2.6.22-gentoo-r2 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Wed, 12 Dec 2007 01:46:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.4.0
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa apache2 berkdb bitmap-fonts cgi cli cracklib crypt cups cvs debugger dri dvd dvdr dvdread encode faad flaac flac fortran gd gdbm glitz gnutls gpm gtk iconv imlib isdnlog jpeg jpg kde lm_sensors mad maps midi mmx mp3 mpd mpeg mpg msn mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python qt qt3 readline reflection sdl session spl sse sse2 ssl svg tcpd tk truetype-fonts type1-fonts unicode vorbis win32codecs wxGTK wxwindows x86 xcomposite xorg xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

--------------
 gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/specs
Configured with: /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.6 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --disable-libgcj --with-arch=i686 --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.3.6 (Gentoo 3.3.6-r1 p1.4, ssp-3.3.6-1.0, pie-8.7.8)

----------

use flags on at compile time:

 dev-util/subversion-1.4.5  USE="apache2 berkdb nls perl python
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-17 07:49:03 UTC
Unsupported gcc version.

http://www.gentoo.org/doc/en/gcc-upgrading.xml