Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273971 - media-sound/audacity-1.3.* fails to build: libexpat not found
Summary: media-sound/audacity-1.3.* fails to build: libexpat not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 346277
  Show dependency tree
 
Reported: 2009-06-13 10:33 UTC by juantxorena@gmail.com
Modified: 2010-12-07 19:36 UTC (History)
9 users (show)

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


Attachments
build.log (build.log,24.06 KB, text/plain)
2009-06-13 10:35 UTC, juantxorena@gmail.com
Details
config.log (config.log,61.52 KB, text/plain)
2009-06-13 10:49 UTC, juantxorena@gmail.com
Details
ebuild patch (audacity-1.3.7.ebuild.patch,417 bytes, patch)
2009-07-16 07:00 UTC, Andrew Savchenko
Details | Diff
config.log of 1.3.8 after --cflags-only-I patch (config.log,69.68 KB, text/plain)
2010-05-25 00:49 UTC, Michael Weber (RETIRED)
Details
build.log 1.3.12 (audacity-1.3.12:20101205-142902.log,23.91 KB, text/plain)
2010-12-05 14:31 UTC, Michael Weber (RETIRED)
Details
config.log 1.3.12 (config.log,66.73 KB, text/plain)
2010-12-05 14:32 UTC, Michael Weber (RETIRED)
Details
Patch to stop lib-widget-extra from polluting cflags via it's pkg-config file (widget-extra-only-needed-cflags.patch,944 bytes, patch)
2010-12-06 22:22 UTC, Richard Ash
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description juantxorena@gmail.com 2009-06-13 10:33:26 UTC
Both 1.3.6 and 1.3.7 versions of audacity fails to build with this error:

configure: error: You requested using the system libraries for LIBEXPAT but they are not available

Rebuilding expat and audacity with and without different CFLAGS, CXXFLAGS and LDFLAGS doesn't help.

config.log for 1.3.7 version is coming.

Reproducible: Always
Comment 1 juantxorena@gmail.com 2009-06-13 10:35:53 UTC
Created attachment 194504 [details]
build.log

build.log, not config.log
Comment 2 Sebastian Luther (few) 2009-06-13 10:40:46 UTC
Please attach emerge --info and the config.log (it should be at ../work/<audacity>/ from where the build.log is). What gives emerge -pq dev-libs/expat?
Comment 3 Sebastian Luther (few) 2009-06-13 10:45:07 UTC
I just noticed that there is no 1.3.7 in the tree. Please run emerge --sync and use something newer.
Comment 4 juantxorena@gmail.com 2009-06-13 10:49:51 UTC
Created attachment 194506 [details]
config.log

Before somebody moan about CFLAGS, they are the same that "-march=native" uses in my arch, but I can use that since I use distcc with another arch, so they are safe.

emerge -pq dev-libs/expat:
[ebuild   R   ] dev-libs/expat-2.0.1-r1
(yes, I have expat installed)

emerge --info:

Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7200_@_2.53GHz-with-glibc2.2.5
Timestamp of tree: Sat, 13 Jun 2009 06:30:19 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 -O2 -pipe -ftree-vectorize"
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/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/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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -mtune=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 -O2 -pipe -ftree-vectorize"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going --jobs=2 --load-average=6"
FEATURES="ccache confcache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch usersync"
FFLAGS="-march=core2 -mtune=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 -O2 -pipe -ftree-vectorize"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://darkstar.ist.utl.pt/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo-euetib.upc.es/mirror/gentoo/"
LANG="s_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="es en"
MAKEOPTS="-j3 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="pbzip2"
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/portage/local/local /usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/portage/local/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amr amrnb amrwb asf audiofile bash-completion blas bluetooth branding bzip2 cairo cdaudio cdparanoia cdr cjk cleartype cli cracklib crypt css cups curl dbus djvu dri dssi dts dvd dvdr dvdread emboss enca encode evo exif expat fam ffmpeg fftw flac fontconfig fortran gdbm gif glibc-omitfp glut gmp gnuplot gphoto2 gpm hal hdf5 iconv icu idn imagemagick isdnlog jack javascript jpeg jpeg2k kde kdehiddenvisibility kpathsea ladspa lame lapack lash latex lcms libnotify libsamplerate lm_sensors lv2 lzma mad midi mikmod mmx mmxext mng mp3 mpeg mplayer mudflap multilib musepack musicbrainz ncurses network nls nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pch pcre pdf perl plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session sndfile speex spell spl sse sse2 sse3 sse4.1 ssl ssse3 startup-notification svg sysfs tcpd theora threads threadsafe tiff truetype unicode usb v4l v4l2 vcd vim-syntax vorbis wavpack wmf x264 xcb xcomposite xml xorg xulrunner xv xvid xvmc 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" 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 juantxorena@gmail.com 2009-06-13 10:52:39 UTC
(In reply to comment #3)
> I just noticed that there is no 1.3.7 in the tree. Please run emerge --sync and
> use something newer.
> 

Yes, there is, it was stabled yesterday.
Comment 6 Sebastian Luther (few) 2009-06-13 11:08:12 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > I just noticed that there is no 1.3.7 in the tree. Please run emerge --sync and
> > use something newer.
> > 
> 
> Yes, there is, it was stabled yesterday.
> 

I should learn to read :(

(In reply to comment #0)
> Rebuilding expat and audacity with and without different CFLAGS, CXXFLAGS and
> LDFLAGS doesn't help.

x86_64-pc-linux-gnu-g++: l1-cache-line-size=64: No such file or directory

Please try again with 
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
and attach the new config.log.
Comment 7 juantxorena@gmail.com 2009-06-13 11:26:03 UTC
(In reply to comment #6)
> 
> x86_64-pc-linux-gnu-g++: l1-cache-line-size=64: No such file or directory
> 
> Please try again with 
> CFLAGS="-O2 -pipe"
> CXXFLAGS="-O2 -pipe"
> and attach the new config.log.
> 
It works now, but after cleaning the temp build dir. It's still a bug IMHO, --param something is a valid flag for gcc and it shouldn't have that error. Strange thing is that this error doesn't happen when using "-march=native".
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-15 04:47:32 UTC
configure:5804: x86_64-pc-linux-gnu-g++ -o conftest -march=core2 -mtune=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 -O2 -pipe -ftree-vectorize  -Wall -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I$(top_srcdir)/lib-src/FileDialog -march=core2 -mtune=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 l1-cache-line-size=64 -O2 -pipe -ftree-vectorize -Wall -I/var/tmp/portage/media-sound/audacity-1.3.7/work/audacity-src-1.3.7/lib-src/lib-widget-extra     -Wall -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common conftest.cpp -lexpat   -L/usr/lib64 -pthread -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common  -L/usr/X11R6/lib64   -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8  >&5
x86_64-pc-linux-gnu-g++: l1-cache-line-size=64: No such file or directory

Obviously something out there is removing one instance of --param, but I don't readily see if it's inside this build system or in perhaps a pkgconfig that appears to be polluting the LIBS variable.

@Juan: Please figure out if perhaps a .pc file might be responsible:
# emerge portage-utils && fgrep 'l1-cache-size=32 l1-cache-line-size=64' /usr/lib/pkgconfig/* | qfile -f -

That should output a list of packages and related files that you need to re-emerge. If re-emerging does not help, then mention that here too.
Comment 9 juantxorena@gmail.com 2009-06-15 14:12:12 UTC
(In reply to comment #8)
> @Juan: Please figure out if perhaps a .pc file might be responsible:
> # emerge portage-utils && fgrep 'l1-cache-size=32 l1-cache-line-size=64'
> /usr/lib/pkgconfig/* | qfile -f -
> 
> That should output a list of packages and related files that you need to
> re-emerge. If re-emerging does not help, then mention that here too.
> 

I got no output from that, neither when grepping for 'l1', 'param' or the like, so it must be something in the build system. This is the only package that fails with these cflags, btw.
Comment 10 MageSlayer 2009-06-19 16:37:43 UTC
I confirm this bug.

It's exactly the same issue when using "--param l1-cache-size=64 --param l1-cache-line-size=64" gcc flags. Removing them gives a workaround.
Comment 11 Andrew Savchenko gentoo-dev 2009-07-16 06:20:20 UTC
Argh, I have the same problems with --param arg=value. That braindead build system really pisses me off.

(In reply to comment #9)
> I got no output from that, neither when grepping for 'l1', 'param' or the like,
> so it must be something in the build system. This is the only package that
> fails with these cflags, btw.

Not the only one 8-(. At least media-sound/timidity++-2.13.2-r10 (haven't reported yet) and dev-perl/GSSAPI-0.26 (see 276555).
Comment 12 Andrew Savchenko gentoo-dev 2009-07-16 07:00:35 UTC
Created attachment 198130 [details, diff]
ebuild patch

Ok, it occurs pkg-config --cflags was guilty.
I replaced it with pkg-config --cflags-only-I, this helps.
Comment 13 Alexis Ballier gentoo-dev 2009-08-03 06:26:06 UTC
does this still happen with 1.3.8?
Comment 14 juantxorena@gmail.com 2009-08-03 06:46:15 UTC
(In reply to comment #13)
> does this still happen with 1.3.8?
> 

Yep
Comment 15 Ian Young 2009-10-05 22:41:04 UTC
Here's my experience, in case it helps someone else. Audacity failed out halfway through a big upgrade world. I tried revdep-rebuild until that reported no problems, tried the temporary cflags, tried Andrew's patch (I even tried unmasking and patching 1.3.9), all to no avail. 

Then I skipped audacity and finished the rest of the upgrade, which broke more libraries. After another round of revdep-rebuild, I tried emerging audacity again and it worked.
Comment 16 Andrew Savchenko gentoo-dev 2009-12-06 16:27:09 UTC
This is still an issue with 1.3.10.
Reported upstream: http://forum.audacityteam.org/viewtopic.php?f=19&t=18770
Comment 17 G. Náray 2009-12-31 00:25:55 UTC
I had the same problem:
configure: error: You requested using the system libraries for LIBEXPAT but they are not available

I read that Ian Young suggested running revdep-rebuild (which usually helps). Indeed, after it finished its job, audacity compiled! (Yes, sometimes you have to emerge what revdep-rebuild would, in the case when it stops emerging a package due to a problem.)

A short comment: It can be clearly seen that the dependency management of Gentoo is not perfect, i simply can not believe that revdep-rebuild must be a separated program. I wonder when the dependency management will be cleaned, improved, and finished. Hopefully in the near future! :)
Comment 18 Alexis Ballier gentoo-dev 2010-01-15 06:55:13 UTC
(In reply to comment #12)
> Created an attachment (id=198130) [details]
> ebuild patch
> 
> Ok, it occurs pkg-config --cflags was guilty.
> I replaced it with pkg-config --cflags-only-I, this helps.


thats weird, what does:
grep -- 'l1-cache-line-size' /usr/lib/pkgconfig/*
returns for you? .pc files shouldnt contain the cflags you used to build the package.
Comment 19 Andrew Savchenko gentoo-dev 2010-01-16 05:35:12 UTC
(In reply to comment #18)
> thats weird, what does:
> grep -- 'l1-cache-line-size' /usr/lib/pkgconfig/*
> returns for you? .pc files shouldnt contain the cflags you used to build the
> package.
 
But five of them does:

$ grep -- 'l1-cache-line-size' /usr/lib/pkgconfig/*
/usr/lib/pkgconfig/libcurl.pc:Libs.private: -lidn -lrt -Wl,-rpath -Wl,/usr/lib -march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe -g0 -Wno-system-headers -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -Wl,-rpath -Wl,/usr/lib -march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe -g0 -Wno-system-headers -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lz -lgnutls

/usr/lib/pkgconfig/libgnomecups-1.0.pc:Libs: -L${libdir} -lgnomecups-1.0 -lcups -Wl,-rpath -Wl,/usr/lib -march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lgnutls -lz -lpthread -lm -lcrypt

/usr/lib/pkgconfig/neon.pc:Libs.private:  -lz -lgnutls   -Wl,-rpath -Wl,/usr/lib -march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lexpat

/usr/lib/pkgconfig/raptor.pc:Libs.private:  -lm -lcurl -lidn -lrt -Wl,-rpath -Wl,/usr/lib -march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe -g0 -Wno-system-headers -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -Wl,-rpath -Wl,/usr/lib -march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe -g0 -Wno-system-headers -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lz -lgnutls -lexpat

/usr/lib/pkgconfig/snort.pc:Cflags: -march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe -fvisibility=hidden -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -fno-strict-aliasing -Wall -DDYNAMIC_PLUGIN -DSUP_IP6 -DGRE -DGIDS -I/usr/include/libipq -I/usr/include/mysql -DENABLE_MYSQL -DENABLE_RESPOND -DENABLE_RESPONSE2 -I/usr/include
Comment 20 Michael Weber (RETIRED) gentoo-dev 2010-05-25 00:49:53 UTC
Created attachment 232795 [details]
config.log of 1.3.8 after --cflags-only-I patch
Comment 21 Jeremy Murphy 2010-11-21 09:19:36 UTC
Could you please test and confirm this bug with the latest version of Audacity (1.3.12), thanks.
Comment 22 Andrew Savchenko gentoo-dev 2010-11-21 10:57:18 UTC
(In reply to comment #21)
> Could you please test and confirm this bug with the latest version of Audacity
> (1.3.12), thanks.

Exactly the same bug is still here with 1.3.12. It works for me with fix proposed earlier. And I'm really tired to reapply the patch for each new audacity version.
Comment 23 Jeremy Murphy 2010-11-21 11:32:57 UTC
(In reply to comment #22)
> 
> Exactly the same bug is still here with 1.3.12. It works for me with fix
> proposed earlier. And I'm really tired to reapply the patch for each new
> audacity version.

Thanks for testing it so quickly.  Stop complaining, your life is not so hard.  :)

As per comment #18, is this potentially a bug in something else, not Audacity?  A few people have reported being able to solve this bug with the right sequence of dependency rebuilding.  Are other packages putting the wrong flags in their pkgconfig files?

Maintainers, what do you think the way forward is?
Comment 24 Richard Ash 2010-11-26 22:47:50 UTC
(In reply to comment #23)
> Maintainers, what do you think the way forward is?

For someone affected by this to work out which call to pkg-config needs to be altered?

The "patch" runs sed on configure to blindly change all calls to use --cflags-only-I which is inviting trouble if any library has a legitimate other flag in there (e.g. a -D option?) either now or in the future. So I won't take this upstream until I know which pkg-config invocation needs to change, and someone has posted the .pc file being read (on the system where the problem occurs).
Comment 25 Michael Weber (RETIRED) gentoo-dev 2010-12-05 14:31:25 UTC
Created attachment 256399 [details]
build.log 1.3.12
Comment 26 Michael Weber (RETIRED) gentoo-dev 2010-12-05 14:32:35 UTC
Created attachment 256401 [details]
config.log 1.3.12

Portage 2.1.9.24 (default/linux/amd64/10.0/developer, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-gentoo-r3-io.3 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r3-io.3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Unknown
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.5-r3, 2.7.1, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.7
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mcx16 -msahf -mtune=core2 -mfpmath=sse -O2 -pipe -ggdb -Wall"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=core2 -mfpmath=sse -O2 -pipe -ggdb -Wall"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="assume-digests binpkg-logs collision-protect digest distlocks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign split-log splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
LINGUAS="de en en_US en_GB"
MAKEOPTS="-j4"
PKGDIR="/var/cache/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 /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/gnome-live /var/lib/layman/java-overlay /var/lib/layman/gnome /var/lib/layman/xmw /var/lib/layman/x11 /var/lib/layman/msp430"
SYNC="cvs://xmw@cvs.gentoo.org:/var/cvsroot"
USE="X a52 aac aalib acl alsa amd64 ao bash-completion berkdb bzip2 cairo cdda cddb cdparanoia cdr cli consolekit cracklib crypt cups curl cxx dbus dga djvu dri dts dv dvb dvd dvdr dvdread emboss encode exif faac faad fbcon ffmpeg fftw firefox flac fontconfig fortran gdbm gif gimp glut gnome-keyring gnutls gphoto2 gpm gs gstreamer gtk iconv id3tag imagemagick introspection ipv6 java java6 jbig joystick jpeg jpeg2k lame latex lcms libsamplerate lm_sensors lzma lzo mad mikmod mmap mmx mng modules mp3 mp4 mpeg mpi mplayer mudflap multilib nas nautilus ncurses nls nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pango pch pcmcia pcre pdf perl png policykit ppds pppd python qt3support quicktime raw readline rle samba scanner sdl session smp snmp speex spell sqlite sse sse2 ssl startup-notification subversion svg symlink sysfs syslog taglib tcl tcpd theora threads tiff tk truetype unicode upnp usb vim-syntax vorbis wavpack webkit x264 xcb xine xinerama xml xorg xscreensaver xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="intel-hda" 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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_US en_GB" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 27 Jeremy Murphy 2010-12-05 21:42:08 UTC
Hey Michael, why did you add this bug as a blocker of #346277?  It's my understanding that since this bug affects all versions of Audacity, not just 1.3.12, then it's not a valid blocker of stabilization, as was discussed in the first few comments.
Comment 28 Richard Ash 2010-12-06 22:02:30 UTC
(In reply to comment #27)
> Hey Michael, why did you add this bug as a blocker of #346277?  It's my
> understanding that since this bug affects all versions of Audacity, not just
> 1.3.12, then it's not a valid blocker of stabilization, as was discussed in the
> first few comments.

In the log, I can see we get to the configuration of the lib-src/lib-widget-extra/ subdirectory fine (flags are not corrupted when that configure is kicked off), and it's broken by the time we look for expat.

In between we have configured lib-widget-extra (whose log I can't of course see), used pkg-config to locate it, then found libsndfile using pkg-config. Note we don't use pkg-config to locate expat, so it can't be the cause of the flag corruption.

I'd like to see the output of the grep on pkg-config from above
$ grep -- 'l1-cache-line-size' /usr/lib/pkgconfig/*
for his system, along with the following pkg-config commands:
$ pkg-config --cflags "sndfile >= 1.0.0"
(should be blank)
$ pkg-config --libs "sndfile >= 1.0.0"
(-lsndfile)

In the failed audacity source tree (after configure has failed):
$ PKG_CONFIG_PATH="$(pwd)/lib-src/lib-widget-extra/:$PKG_CONFIG_PATH"
$ export PKG_CONFIG_PATH
$ pkg-config --cflags libwidgetextra
(should have -I flags to the build dir in it)
$ pkg-config --libs libwidgetextra
(should have a -L for wx-widgets, and a load of -l for the bits of wxwidgets)

My current suspicion is that the lib-src/lib-widget-extra/libwidgetextra-uninstalled.pc file generated by the configuring of libwidgetextra is the culprit, so seeing that would also be good.

As to the original question, none of these files have changed since December 2008, so it's not in any sense a new bug for 1.3.12, so I don't believe it should block the stabilisation, although it might be an argument to stable the fixed ebuild when we have one (should be a fairly simple fix to the autotools files).
Comment 29 Richard Ash 2010-12-06 22:22:25 UTC
Created attachment 256542 [details, diff]
Patch to stop lib-widget-extra from polluting cflags via it's pkg-config file

OK, the problem is in lib-widget-extra. This patch should fix the problem (doesn't need autoconf run because it only touches .in files) by only passing needed flags through the internal usage of pkg-config (which also explains where a duplicate specification of the wx flags I've known about for ages but never traced was coming from).
Comment 30 Andrew Savchenko gentoo-dev 2010-12-06 22:54:17 UTC
(In reply to comment #29)
> Created an attachment (id=256542) [details]
> Patch to stop lib-widget-extra from polluting cflags via it's pkg-config file

This patch helps in my case, finally ;-).
Thank you.
Comment 31 Tim Harder gentoo-dev 2010-12-06 23:23:18 UTC
I added the patch to 1.3.12 in the tree. I probably won't add it for 1.3.8 since that version will be dropped from the tree once 1.3.12 is stabilized across all arches.

Thanks for the patch.
Comment 32 Richard Ash 2010-12-07 19:36:53 UTC
Thanks for the test feedback, this is now committed upstream so will be in 1.3.13 release.