ardour 2.8.7 fails to compile with the following error: x86_64-pc-linux-gnu-g++ -o libs/ardour/audio_diskstream.os -c -Woverloaded-virtual -DGTK_NEW_TOOLTIP_API -DPACKAGE=\"libardour2\" -DLIBSIGC_DISABLE_DEPRECATED -DDATA_DIR=\"/usr/share\" -DMODULE_DIR=\"/usr/lib64\" -DVAMP_DIR=\"/usr/lib64/ardour2/vamp\" -DCONFIG_DIR=\"/etc\" -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_JACK_CLIENT_OPEN -DHAVE_JACK_ON_INFO_SHUTDOWN -DHAVE_JACK_RECOMPUTE_LATENCIES -DHAVE_JACK_VIDEO_SUPPORT -DHAVE_JACK_PORT_ENSURE_MONITOR -DHAVE_WORDEXP -DHAVE_SYS_VFS_H -DHAVE_LV2 -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -pipe -DARCH_X86 -mmmx -m3dnow -msse -mfpmath=sse -DUSE_XMMINTRIN -DBUILD_SSE_OPTIMIZATIONS -DUSE_X86_64_ASM -Wall -DHAVE_LIBLO -Ilibs -DENABLE_NLS -DHAVE_SLV2 -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Ilibs -pthread -pthread -DUSE_RUBBERBAND -fPIC -Ilibs/pbd -I/usr/include/glib-2.0 -Ilibs/surfaces/control_protocol -Ilibs/midi++2 -Ilibs/vamp-sdk -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -Ilibs/rubberband -I/usr/lib64/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/include/rasqal -I/usr/include/libxml2 -I/usr/lib64/sigc++-2.0/include -Ilibs/ardour libs/ardour/audio_diskstream.cc libs/ardour/audio_diskstream.cc: In member function 'virtual XMLNode& ARDOUR::AudioDiskstream::get_state()': libs/ardour/audio_diskstream.cc:1902:37: error: expected ')' before 'PRIu32' libs/ardour/audio_diskstream.cc:1902:56: warning: spurious trailing '%' in format libs/ardour/audio_diskstream.cc:1902:56: warning: too many arguments for format libs/ardour/audio_diskstream.cc:1902:56: warning: spurious trailing '%' in format libs/ardour/audio_diskstream.cc:1902:56: warning: too many arguments for format libs/ardour/audio_diskstream.cc:1904:37: error: expected ')' before 'PRIu32' libs/ardour/audio_diskstream.cc:1904:71: warning: spurious trailing '%' in format libs/ardour/audio_diskstream.cc:1904:71: warning: too many arguments for format libs/ardour/audio_diskstream.cc:1904:71: warning: spurious trailing '%' in format libs/ardour/audio_diskstream.cc:1904:71: warning: too many arguments for format libs/ardour/audio_diskstream.cc: In member function 'virtual int ARDOUR::AudioDiskstream::use_pending_capture_data(XMLNode&)': libs/ardour/audio_diskstream.cc:2286:41: error: expected ')' before 'PRIu32' libs/ardour/audio_diskstream.cc:2286:58: warning: spurious trailing '%' in format libs/ardour/audio_diskstream.cc:2286:58: warning: too many arguments for format scons: *** [libs/ardour/audio_diskstream.os] Error 1 scons: building terminated because of errors. Reproducible: Always Steps to Reproduce: 1. emerge ardour 2. just wait Actual Results: It doesn't compile. Expected Results: It should compile. app-shells/bash: 4.1_p9 dev-lang/python: 2.7, 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ABI="amd64" ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.1 AdobeFlash-10" ACCEPT_PROPERTIES="*" 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="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" ARCH="amd64" ASFLAGS_x86="--32" AUTOCLEAN="yes" BROWSER="firefox" CAMERAS="ptp2" CBUILD="x86_64-pc-linux-gnu" CDEFINE_amd64="__x86_64__" CDEFINE_x86="__i386__" CFLAGS="-O2 -march=native -pipe" CFLAGS_x86="-m32" CHOST="x86_64-pc-linux-gnu" CHOST_amd64="x86_64-pc-linux-gnu" CHOST_x86="i686-pc-linux-gnu" CLEAN_DELAY="5" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" COLLISION_IGNORE="/lib/modules" COLORFGBG="7;default" COLORTERM="rxvt" 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/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CVS_RSH="ssh" CXXFLAGS="-O2 -march=native -pipe" DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-ujZUKPxlDJ,guid=b58dbeb9656ca2de860673fd00000019" DEFAULT_ABI="amd64" DESKTOP_SESSION="KDE-4" DISPLAY=":0" DISTDIR="/usr/portage/distfiles" DM_CONTROL="/var/run/xdmctl" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_WARNING_DELAY="10" EPREFIX="" EROOT="/" FCFLAGS="" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FETCHCOMMAND="/usr/bin/wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}"" FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec sftp -P \${port} \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}"" FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}"" FFLAGS="" GDK_USE_XFT="1" GENTOO_MIRRORS="http://distfiles.gentoo.org" 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" GSETTINGS_BACKEND="gconf" GS_LIB="/home/i92guboj/.fonts" GTK2_RC_FILES="/root/.gtkrc-2.0:/root/.kde/share/config/gtkrc-2.0:/etc/gtk-2.0/gtkrc" GTK_RC_FILES="/etc/gtk/gtkrc:/home/i92guboj/.gtkrc::/home/i92guboj/.kde4/share/config/gtkrc" GUILE_LOAD_PATH="/usr/share/guile/1.8" HG="/usr/bin/hg" HOME="/root" INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.2/info" INPUT_DEVICES="ps2mouse evdev" KDE_FULL_SESSION="true" KDE_MULTIHEAD="false" KDE_SESSION_UID="1000" KDE_SESSION_VERSION="4" KERNEL="linux" LADSPA_PATH="/usr/lib64/ladspa" LANG="es_ES.utf8" LANGUAGE="es_ES:es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LC_COLLATE="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LDFLAGS_x86="-m elf_i386" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LIBDIR_amd64="lib64" LIBDIR_amd64_fbsd="lib64" LIBDIR_ppc="lib32" LIBDIR_ppc64="lib64" LIBDIR_sparc32="lib32" LIBDIR_sparc64="lib64" LIBDIR_x86="lib32" LIBDIR_x86_fbsd="lib32" LINGUAS="es es_ES en" LOGNAME="root" LS_COLORS="no=00:fi=00:di=01;35:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=04;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:*.flac=00;36:*.aac=00;36:" MAKEOPTS="-j3" MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.2/man" MULTILIB_ABIS="amd64 x86" MULTILIB_STRICT_DENY="64-bit.*shared object" MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib" MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)" NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" NOCOLOR="true" OLDPWD="/var/lib/portage/local_overlay/media-sound/ardour" OOO_FORCE_DESKTOP="gnome" OPENGL_PROFILE="xorg-x11" PAGER="/usr/bin/less" PATH="/root/bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" PHP_TARGETS="php5-3" PKGDIR="/usr/portage/packages" PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_BIN_PATH="/usr/lib64/portage/bin" PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png" PORTAGE_CONFIGROOT="/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="log warn error" PORTAGE_ELOG_MAILFROM="portage@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save_summary echo" PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5" PORTAGE_FETCH_RESUME_MIN_SIZE="350K" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_IONICE_COMMAND="ionice -c 3 -p ${PID}" PORTAGE_NICENESS="19" PORTAGE_PYM_PATH="/usr/lib64/portage/pym" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_RSYNC_RETRIES="-1" PORTAGE_SANDBOX_COMPAT_LEVEL="16" PORTAGE_SYNC_STALE="30" PORTAGE_TMPDIR="/var/tmp" PORTAGE_VERBOSE="1" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/portage/local_overlay" PRELINK_PATH_MASK="/usr/lib64/klibc:/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so" PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND" PWD="/var/lib/portage/local_overlay" PYTHONDONTWRITEBYTECODE="1" QT_PLUGIN_PATH="/home/i92guboj/.kde4/lib64/kde4/plugins/:/usr/lib64/kde4/plugins/" RESUMECOMMAND="/usr/bin/wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}"" RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}"" ROOT="/" ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2" RPMDIR="/usr/portage/rpm" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson" SESSION_MANAGER="local/jesgue:@/tmp/.ICE-unix/3031,unix/jesgue:/tmp/.ICE-unix/3031" SHELL="/bin/bash" SHLVL="4" STAGE1_USE="multilib nptl nptlonly unicode" STRIGI_PLUGIN_PATH="/usr/lib64/strigi:" SYMLINK_LIB="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" TERM="screen" TMUX="/tmp//tmux-1000/default,3141,0" USER="root" USERLAND="GNU" USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL PHP_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XFCE_PLUGINS XTABLES_ADDONS" USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d" VIDEO_CARDS="radeon vesa r600" WINDOWID="41943050" WINDOWPATH="3" XAUTHORITY="/root/.xauthN49ehn" XCURSOR_THEME="Vanilla-DMZ-AA" XDG_CONFIG_DIRS="/etc/xdg" XDG_DATA_DIRS="/usr/local/share:/usr/share" XDG_MENU_PREFIX="kde-4.6-" XDG_SESSION_COOKIE="8a422582aab36423db97c00046030548-1298301310.635195-1212436452" XDM_MANAGED="method=classic,auto" 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" XZ_OPT="--memory=max" _="/usr/bin/emerge" Portage 2.1.9.40 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r1, 2.6.37.1 x86_64) ================================================================= System uname: Linux-2.6.37.1-x86_64-AMD_Phenom-tm-_II_X2_545_Processor-with-gentoo-2.0.1 Timestamp of tree: Mon, 21 Feb 2011 07:30:01 +0000 USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner 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="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" 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="ps2mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="radeon vesa r600" 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"
While 'append-cppflags -D__STDC_FORMAT_MACROS' would have probably helped, the real question is why is it needed now.
(In reply to comment #1) > While 'append-cppflags -D__STDC_FORMAT_MACROS' would have probably helped, the > real question is why is it needed now. > I don't really understand what the problem is about, but I tried that in the ebuild, this way: --- /usr/portage/media-sound/ardour/ardour-2.8.7.ebuild 2010-10-15 20:50:05.000000000 +0200 +++ ardour-2.8.7.ebuild 2011-02-22 12:31:44.087000020 +0100 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/media-sound/ardour/ardour-2.8.7.ebuild,v 1.3 2010/10/15 18:50:05 ssuominen Exp $ EAPI=2 -inherit eutils toolchain-funcs +inherit eutils toolchain-funcs flag-o-matic DESCRIPTION="Digital Audio Workstation" HOMEPAGE="http://ardour.org/" @@ -54,6 +54,7 @@ tc-export CC CXX mkdir -p "${D}" + append-cppflags -D__STDC_FORMAT_MACROS scons \ CFLAGS="${CFLAGS}" \ $(ardour_use_enable DEBUG debug) \ It didn't change a thing. However, I noticed another problem above that might be related: >>> Compiling source in /var/tmp/portage/media-sound/ardour-2.8.7/work/ardour-2.8.7 ... scons: Reading SConscript files ... scons: warning: The Options class is deprecated; use the Variables class instead. File "/var/tmp/portage/media-sound/ardour-2.8.7/work/ardour-2.8.7/SConstruct", line 32, in <module> scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead. File "/var/tmp/portage/media-sound/ardour-2.8.7/work/ardour-2.8.7/SConstruct", line 36, in <module> scons: warning: The PathOption() function is deprecated; use the PathVariable() function instead. File "/var/tmp/portage/media-sound/ardour-2.8.7/work/ardour-2.8.7/SConstruct", line 42, in <module> scons: warning: The EnumOption() function is deprecated; use the EnumVariable() function instead. File "/var/tmp/portage/media-sound/ardour-2.8.7/work/ardour-2.8.7/SConstruct", line 43, in <module>
Created attachment 263429 [details] build log
Well, that was a general remark - on an autotools package it would likely help. scons is a different matter - as you see in the new log, the flags weren't passed. Try passing them same way CFLAGS are passed.
(In reply to comment #4) > Try passing them same way CFLAGS are passed. > I am trying but not having much luck for now. scons seems to ignore everything I try. --- /usr/portage/media-sound/ardour/ardour-2.8.7.ebuild 2010-10-15 20:50:05.000000000 +0200 +++ ardour-2.8.7.ebuild 2011-02-23 08:26:26.019000023 +0100 @@ -56,6 +56,8 @@ scons \ CFLAGS="${CFLAGS}" \ + CPPFLAGS="${CFLAGS} -D__STDC_FORMAT_MACROS" \ + CCFLAGS="${CPPFLAGS}" \ $(ardour_use_enable DEBUG debug) \ DESTDIR="${D}" \ $(ardour_use_enable FREESOUND curl) \ scons: done reading SConscript files. scons: Building targets ... Substituting vars from ardour.rc.in into ardour_system.rc x86_64-pc-linux-gnu-g++ -o libs/pbd/basename.os -c -Woverloaded-virtual -DGTK_NEW_TOOLTIP_API -DPACKAGE=\"libpbd\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DLIBSIGC_DISABLE_DEPRECATED -DHAVE_EXECINFO -DHAVE_LV2 -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -pipe -DARCH_X86 -mmmx -m3dnow -msse -mfpmath=sse -DUSE_XMMINTRIN -DBUILD_SSE_OPTIMIZATIONS -DUSE_X86_64_ASM -Wall -DHAVE_LIBLO -Ilibs -DENABLE_NLS -DHAVE_GETMNTENT -pthread -pthread -fPIC -I/usr/include/glib-2.0 -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/lib64/glib-2.0/include -Ilibs/pbd -I/usr/include/sigc++-2.0 -I/usr/include/libxml2 -I/usr/lib64/sigc++-2.0/include libs/pbd/basename.cc Maybe I am overlooking something simple.
Oh, I also tried CXXFLAGS of course, that above happens to be the current state of the ebuild after several tests.
Let's try ham-fisted way then: CFLAGS="${CFLAGS} -D__STDC_FORMAT_MACROS".
(In reply to comment #7) > Let's try ham-fisted way then: > CFLAGS="${CFLAGS} -D__STDC_FORMAT_MACROS". > No way. scons seems to completely ignore anything I try.
Bump. Exactly same problem here. Cheers, Oliver
Same problem here. Any workaround ?
Created attachment 265739 [details] A hack to make this ebuild work - DO NOT INCLUDE IN PORTAGE (In reply to comment #1) > While 'append-cppflags -D__STDC_FORMAT_MACROS' would have probably helped, the > real question is why is it needed now. This won't work because the ebuild does not respect CXXFLAGS: https://bugs.gentoo.org/show_bug.cgi?id=277983 To make matters even worse, it looks like it is passing the CFLAGS in place of the CXXFLAGS to the build system. I spent some time manually editing the affected files to put the needed preprocessor definitions into the files themselves and produced a patch. This will allow Ardour to build, but it doesn't address the issue of why -D__STDC_FORMAT_MACROS is not being passed to g++. Upstream seems to have published 2.8.11. I have not tried it yet, but if it resolves these issues, so fixing things for this version might be a wasted effort unless someone really needs this specific version: https://bugs.gentoo.org/show_bug.cgi?id=346019
Same problem with 2.8.11. Does anyone has a fix or workaround ?
I looked in the /usr/include/inttypes.h file where PRIu32 is defined. # define PRIu32 "u" Replacing PRIu32 with "u" in the libs/ardour/audio_diskstream.cc made it compile so perhaps the wrong header file is used? /Fredrik
Hello, same issue here on i386 32bits. emerge --info gives me Portage 2.2.2 (default/linux/x86/2008.0/desktop, gcc-4.4.5, libc-0-r0, 2.6.38-gentoo i686) ================================================================= System uname: Linux-2.6.38-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.1.8 Portage Tree: /usr/portage Portage HEAD: 9021f226394c86a4d15fd0bf2a2d862a3bae13d2 /usr/portage/.git/refs/heads/funtoo.org app-shells/bash: 4.1_p10 dev-java/java-config: 2.1.11-r3::funtoo dev-lang/python: 2.6.6-r1, 3.1.3-r1, 3.2 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.1.8-r2::funtoo sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13::funtoo, 2.68::funtoo sys-devel/automake: 1.9.6-r3::funtoo, 1.10.3::funtoo, 1.11.1-r1 sys-devel/binutils: 2.20.1::funtoo sys-devel/gcc: 4.4.5::funtoo sys-devel/gcc-config: 1.4.1::funtoo sys-devel/libtool: 2.4-r1::funtoo sys-devel/make: 3.81-r2::funtoo sys-kernel/linux-headers: 2.6.32::funtoo virtual/os-headers: 0 Repositories: gentoo ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" 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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=1.0 --with-bdeps y" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" MAKEOPTS="-j3 -l1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="git://github.com/funtoo/portage-mini-2010.git" SYNC_USER="root" USE="X a52 aac acl acpi alac alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr dvdread emboss encode esd exif fam ffmpeg firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg kde lame lcms libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3 qt3support qt4 readline sdl session spell ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb userlocales vorbis wavpack win32codecs x264 x86 xcb xcomposite xml xorg xulrunner xv xvid 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 mmap_emul 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 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" 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="vmware evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel vmware" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Fixed in 2.8.11 in CVS.
Hi, 2.8.11 fails for me with the following error: x86_64-pc-linux-gnu-g++ -o libs/surfaces/tranzport/general.os -c -march=native -mtune=generic -O2 -pipe -D__STDC_FORMAT_MACROS -Woverloaded-virtual -DPROGRAM_NAME=\"Ardour\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_RUBBERBAND -DGTK_NEW_TOOLTIP_API -DPACKAGE=\"ardour_tranzport\" -DLIBSIGC_DISABLE_DEPRECATED -DDATA_DIR=\"/usr/share\" -DCONFIG_DIR=\"/etc\" -DLOCALEDIR=\"/usr/share/locale\" -march=native -mtune=generic -O2 -pipe -DHAVE_LV2 -Wall -DHAVE_LIBLO -DPROGRAM_NAME=\"Ardour\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibs -DENABLE_NLS -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -pthread -pthread -fPIC -Ilibs/pbd -I/usr/include/glib-2.0 -Ilibs/surfaces/control_protocol -Ilibs/midi++2 -Ilibs/ardour -I/usr/include/glibmm-2.4 -I/usr/lib64/glib-2.0/include -Ilibs/surfaces/tranzport -I/usr/include/sigc++-2.0 -I/usr/include/libxml2 -I/usr/lib64/sigc++-2.0/include -I/usr/lib64/glibmm-2.4/include libs/surfaces/tranzport/general.cc In file included from libs/surfaces/tranzport/button_events.cc:21: libs/surfaces/tranzport/tranzport_common.h:29:1: warning: "__STDC_FORMAT_MACROS" redefined <command-line>: warning: this is the location of the previous definition In file included from libs/surfaces/tranzport/general.cc:21: libs/surfaces/tranzport/tranzport_common.h:29:1: warning: "__STDC_FORMAT_MACROS" redefined <command-line>: warning: this is the location of the previous definition libs/ardour/libardour.so: undefined reference to `setup_enum_writer()' collect2: ld returned 1 exit status scons: *** [gtk2_ardour/ardour-2.8.11] Error 1 scons: building terminated because of errors. * ERROR: media-sound/ardour-2.8.11-r1 failed (compile phase): * escons failed. * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2619: Called escons 'DESTDIR=/var/tmp/portage/media-sound/ardour-2.8.11-r1/image/' 'FPU_OPTIMIZATION=1' 'PREFIX=/usr' 'SYSLIBS=1' 'FREESOUND=0' 'DEBUG=0' 'NLS=1' 'LV2=1' * environment, line 1282: Called die * The specific snippet of code: * [[ ${ret} -ne 0 && ${EAPI:-0} -ge 4 ]] && die "escons failed."; * * If you need support, post the output of 'emerge --info =media-sound/ardour-2.8.11-r1', * the complete build log and the output of 'emerge -pqv =media-sound/ardour-2.8.11-r1'. * The complete build log is located at '/var/tmp/portage/media-sound/ardour-2.8.11-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/ardour-2.8.11-r1/temp/environment'. * S: '/var/tmp/portage/media-sound/ardour-2.8.11-r1/work/ardour-2.8.11' >>> Failed to emerge media-sound/ardour-2.8.11-r1, Log file: >>> '/var/tmp/portage/media-sound/ardour-2.8.11-r1/temp/build.log' * Messages for package media-sound/ardour-2.8.11-r1: * ERROR: media-sound/ardour-2.8.11-r1 failed (compile phase): * escons failed. * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2619: Called escons 'DESTDIR=/var/tmp/portage/media-sound/ardour-2.8.11-r1/image/' 'FPU_OPTIMIZATION=1' 'PREFIX=/usr' 'SYSLIBS=1' 'FREESOUND=0' 'DEBUG=0' 'NLS=1' 'LV2=1' * environment, line 1282: Called die * The specific snippet of code: * [[ ${ret} -ne 0 && ${EAPI:-0} -ge 4 ]] && die "escons failed."; * * If you need support, post the output of 'emerge --info =media-sound/ardour-2.8.11-r1', * the complete build log and the output of 'emerge -pqv =media-sound/ardour-2.8.11-r1'. * The complete build log is located at '/var/tmp/portage/media-sound/ardour-2.8.11-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/ardour-2.8.11-r1/temp/environment'. * S: '/var/tmp/portage/media-sound/ardour-2.8.11-r1/work/ardour-2.8.11'
(In reply to comment #16) > Hi, > > 2.8.11 fails for me with the following error: Sync, this was fixed earlier today.