Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-25 Thread Michael Dickens
On Jan 25, 2013, at 1:10 PM, Nick Foster wrote: > There's already a runtime check for AVX in Volk, same as for the rest of the > SIMD instruction sets. Compile-time support and runtime support are > completely decoupled from each other. Ah; good! Always best to do it that way :) - MLD __

Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-25 Thread Michael Dickens
On Jan 25, 2013, at 12:20 PM, Tom Rondeau wrote: > By the way, if you grep for xgetbv in the 'next' branch, we did some work for > this problem there but apparently not on 'master.' Not sure if it's for this > exact problem or just a related one, but might be something to look at. It looks like

Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-25 Thread Nick Foster
On 01/25/2013 08:30 AM, Michael Dickens wrote: BTW> See also Intel's documentation on how to go about detecting AVX: < http://software.intel.com/sites/default/files/m/0/5/7/7/f/19151-AVX_319433_005.pdf >, page 2-2 specifically. Maybe this could be made a runtime check, paired with a configure

Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-25 Thread Tom Rondeau
On Fri, Jan 25, 2013 at 11:28 AM, Michael Dickens wrote: > On Jan 25, 2013, at 10:06 AM, Michael Dickens wrote: > > 1) Does the target compiler's assembler support the "xgetbv" instruction? > > > > 2) Does the target CPU support the "xgetbv" instruction? > > My CMake hack wasn't quite right: onl

Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-25 Thread Michael Dickens
On Jan 25, 2013, at 10:06 AM, Michael Dickens wrote: > 1) Does the target compiler's assembler support the "xgetbv" instruction? > > 2) Does the target CPU support the "xgetbv" instruction? My CMake hack wasn't quite right: only execute the binary if not cross-compiling. I'm not sure my new ve

Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-25 Thread Michael Dickens
BTW> See also Intel's documentation on how to go about detecting AVX: < http://software.intel.com/sites/default/files/m/0/5/7/7/f/19151-AVX_319433_005.pdf >, page 2-2 specifically. Maybe this could be made a runtime check, paired with a configure-time preliminary check? - MLD

Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-25 Thread Michael Dickens
On Jan 25, 2013, at 1:19 AM, Albert Chun-Chieh Huang wrote: > After digging into this issue, I found an answer on MacPorts list, and > it's related to Apple's ancient assembler(version 1.38). In this post, > they try to replace Apple /usr/bin/as by clang's assembler. > > http://lists.macosforge.

Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-24 Thread Albert Chun-Chieh Huang
Nick Foster writes: > On 01/24/2013 07:37 AM, Michael Dickens wrote: >> [New subject line] >> >> Albert sent me the build log for: >> >> {{{ >> sudo port install gnuradio +full configure.compiler=macports-gcc-4.7 >> }}} >> >> and I can replicate the error on my computer; so, this must be a GCC 4.

Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-24 Thread Michael Dickens
Hi Nick - I'll also query the MacPorts developers with respect to this issue, to see if they can address it instead of GR folks trying to work around some Mac-specific idiosyncrasy. Can you point me to a changelog or something equivalent which shows that AVX support is in the mainline GCC as of

Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-24 Thread Nick Foster
On 01/24/2013 07:37 AM, Michael Dickens wrote: [New subject line] Albert sent me the build log for: {{{ sudo port install gnuradio +full configure.compiler=macports-gcc-4.7 }}} and I can replicate the error on my computer; so, this must be a GCC 4.7 (or, MacPorts's GCC 4.7) issue. The error

[Discuss-gnuradio] Volk build error using MacPorts GCC 4.7

2013-01-24 Thread Michael Dickens
[New subject line] Albert sent me the build log for: {{{ sudo port install gnuradio +full configure.compiler=macports-gcc-4.7 }}} and I can replicate the error on my computer; so, this must be a GCC 4.7 (or, MacPorts's GCC 4.7) issue. The error is: {{{ build/volk/lib/volk_cpu.c:54:no such ins