[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7
From: |
Albert Chun-Chieh Huang |
Subject: |
Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7 |
Date: |
Fri, 25 Jan 2013 14:19:05 +0800 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.2 (darwin) |
Nick Foster <address@hidden> 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.7
>> (or, MacPorts's GCC 4.7) issue. The error is:
>>
>> {{{
>> build/volk/lib/volk_cpu.c:54:no such instruction: `xgetbv'
>> }}}
>>
>> VOLK folks: what other info do you need from me/us to address this issue? -
>> MLD
> This is a compiler problem. xgetbv was added to vanilla GCC in
> 4.4. Apparently MacPorts' mutant GCC hasn't added it as of 4.7. The
> relevant check is line 128 of volk/lib/CMakeLists.txt. We could just
> disable AVX support on GCC < 4.7, but since 4.7 is basically the
> latest GCC out there it seems a little aggressive to disable AVX for
> everyone. I'd rather disable AVX on Mac. I haven't done Mac-specific
> platform detection in CMake; can anyone else suggest a Mac test to use
> here to disable AVX on Mac?
Hi, Nick and Michael,
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.org/pipermail/macports-dev/2011-October/016335.html
I tried this approach to compile gnuradio with gcc 4.7, it's still not
successful. But it seems to be an interesting and possible way -- to use
clang's assembler to optimize for AVX on MacOSX. GNU binutil on MacOSX
does not come with GNU assembler, so gcc 4.7 on MacOSX uses the built-in
GNU assembler, which is very old and does not support AVX. Only clang's
assembler on MacOSX provides support to AVX instruction set.
Albert
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, (continued)
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Michael Dickens, 2013/01/23
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Tom Rondeau, 2013/01/23
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Michael Dickens, 2013/01/23
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Tom Rondeau, 2013/01/23
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Ed Criscuolo, 2013/01/25
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Michael Dickens, 2013/01/25
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Albert Chun-Chieh Huang, 2013/01/24
- [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Michael Dickens, 2013/01/24
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Nick Foster, 2013/01/24
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Michael Dickens, 2013/01/24
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7,
Albert Chun-Chieh Huang <=
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Michael Dickens, 2013/01/25
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Michael Dickens, 2013/01/25
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Nick Foster, 2013/01/25
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Michael Dickens, 2013/01/25
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Michael Dickens, 2013/01/25
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Tom Rondeau, 2013/01/25
- Re: [Discuss-gnuradio] Volk build error using MacPorts GCC 4.7, Michael Dickens, 2013/01/25
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Michael Dickens, 2013/01/23
- Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Michael Dickens, 2013/01/28
Re: [Discuss-gnuradio] GNU Radio release 3.6.3 available for download, Brian Cuthie, 2013/01/16