On 06/09/2012 09:20 PM, Atte André Jensen wrote:
  On 2012-06-09 07:22, David Adler wrote:
> Maybe recompile jack2 with -O0 (instead of -O2, the default from
> /etc/makepkg.conf). Just a guess, but that cured similar hiccups over
> here.
> There is an issue with g++ 4.7.0/jack2, it's currently being discussed
> on Jack-Devel/LAU in the thread titled "jack2 turned verbose". 
Most of the discussion has moved to jack-devel. It was too technical and
OT for LAU.
  Building from aur fails with:
 /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../libm.so: could not read
 symbols: Invalid operation
 collect2: error: ld returned 1 exit status
 Waf: Leaving directory
 `/tmp/yaourt-tmp-atte/aur-jack2-git/src/jack2-git-build/build'
 Build failed
  -> task in 'jack_midi_latency_test' failed (exit status 1):
     {task 165000684: cprogram midi_latency_test.c.5.o ->
 jack_midi_latency_test}
 ['/usr/bin/gcc', '-Wl,-O1,--sort-common,--as-needed,-z,relro',
 '-Wl,-O1,--sort-common,--as-needed,-z,relro', '-lm', '-lstdc++',
'-lm',
 'example-clients/midi_latency_test.c.5.o', '-o',
'/tmp/yaourt-tmp-atte/aur-jack2-git/src/jack2-git-build/build/example-clients/jack_midi_latency_test',
 '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Lcommon', '-ljack',
'-lpthread',
 '-lcelt0', '-lrt', '-ldl']
 ==> ERROR: A failure occurred in build().
     Aborting...
 ==> ERROR: Makepkg was unable to build jack2-git. 
You still use -O1 -- That won't work with gcc-4.7.0 and jack2 due to a
gcc-bug [most likely] (see jack-devel -
http://permalink.gmane.org/gmane.comp.audio.jackit/26057 ) -- use -O0 as
David suggested or better: gcc-4.6 that may also work-around the libm
issue, as well.
As for libm: Maybe one of the following can shed some light.
ls -l /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../libm.so
ls -l /usr/lib/libm.so
file /usr/lib/libm.so
It's also mentioned twice: '-lm', '-lstdc++', '-lm' but that
should not
make a difference.
ciao,
robin