Trouble building (32-bit Linux, volk-related?)

Hi all,

I’m having trouble building gnuradio from git on my 32-bit Ubuntu 10.10
machine. The error I’m getting is:

$ make
[ 0%] Generating …/include/volk/volk.h, volk.c,
volk_init.h, …/include/volk/volk_typedefs.h,
…/include/volk/volk_cpu.h, volk_cpu.c,
…/include/volk/volk_config_fixed.h, volk_environment_init.c,
volk_environment_init.h, volk_machines.h, volk_machines.c,
volk_machine_generic.c, volk_machine_sse2_only.c,
volk_machine_sse2_32.c, volk_machine_sse3_32.c, volk_machine_ssse3_32.c,
volk_machine_sse4_a_32.c, volk_machine_sse4_1_32.c,
volk_machine_sse4_2_32.c, volk_machine_avx_32.c, volk_machine_avx_only.c
[ 0%] Generating volk_32f_x2_min_32f_a_orc_impl.c
[ 0%] Generating volk_32fc_x2_multiply_32fc_a_orc_impl.c
ERROR: unknown token[0]: x2
ERROR: unknown token[0]: splitql
ERROR: unknown token[0]: swaplq
ERROR: unknown token[0]: x2
ERROR: unknown token[0]: splitql
ERROR: unknown token[0]: mergelq
Failed to compile volk_32fc_x2_multiply_32fc_a_orc_impl
Failed to compile volk_32fc_x2_multiply_32fc_a_orc_impl
make[2]: *** [volk/lib/volk_32fc_x2_multiply_32fc_a_orc_impl.c] Error 1
make[1]: *** [volk/lib/CMakeFiles/volk.dir/all] Error 2
make: *** [all] Error 2

I successfully built and installed from git late last year without any
problems, so my first thought was that I had old code lying around
screwing things up so I deleted my whole gnuradio source tree and git cloned a new one to no avail. I also get the same error if I git checkout any of the v3.5 tags so I don’t think it’s a recent code
change that’s broken things.

I assume this means there’s something wrong with my system - does anyone
have suggestions as where to look?

Thanks,
Ian Cullinan


This communication contains information which may be confidential or
privileged. The information is intended solely for the use of the
individual or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this communication in error, please notify me by telephone immediately.


On Fri, Mar 16, 2012 at 2:07 AM, Ian Cullinan
[email protected]wrote:

volk_machine_generic.c, volk_machine_sse2_only.c, volk_machine_sse2_32.c,
ERROR: unknown token[0]: mergelq
cloned a new one to no avail. I also get the same error if I git
checkout` any of the v3.5 tags so I don’t think it’s a recent code
change that’s broken things.

I assume this means there’s something wrong with my system - does anyone
have suggestions as where to look?

Thanks,
Ian Cullinan

What version of Orc is installed on your system?

Tom

On Fri, 2012-03-16 at 23:34 +1100, Tom R. wrote:

On Fri, Mar 16, 2012 at 2:07 AM, Ian Cullinan
[email protected] wrote:
I’m having trouble building gnuradio from git on my 32-bit
Ubuntu 10.10 machine.

What version of Orc is installed on your system?

$ aptitude show liborc-0.4-dev
Package: liborc-0.4-dev
State: installed
Automatically installed: no
Version: 0.4.6-1

Ian


This communication contains information which may be confidential or
privileged. The information is intended solely for the use of the
individual or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this communication in error, please notify me by telephone immediately.


On Sun, Mar 18, 2012 at 10:05 PM, Josh B. [email protected] wrote:

be using some features not in 0.4.6. I might recommend this change:
-Josh
I just pushed a fix for this. Cmake now tests for the version number and
autotools has been updated to check for the same version number.

Thanks,
Tom

On Tue, 2012-03-20 at 04:58 +1100, Tom R. wrote:

    >>
    >
    --- a/volk/cmake/FindORC.cmake

and autotools has been updated to check for the same version number.

Thanks,
Tom

Ok, now CMake builds volk without orc support and it seems to work.
Given that there isn’t an updated orc package for Ubuntu 10.10, what’s
the recommended course of action?

a) Live without orc support. Does it make much of a difference on x86?
The build-gnuradio script does not install or check for liborc.

b) Install orc from source. Messy, and causes problems if you later
install a package with a dependency on liborc.

c) Install a newer liborc package from a PPA. A quick search of
Launchpad didn’t find any.

d) Get a newer distro. Personally I’m not ready to deal with this yet,
and I suspect many users feel the same way because Ubuntu 10.10 is the
last pre-Unity version.

Thanks,

Ian


This communication contains information which may be confidential or
privileged. The information is intended solely for the use of the
individual or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this communication in error, please notify me by telephone immediately.


On 03/18/2012 04:38 PM, Ian Cullinan wrote:

$ aptitude show liborc-0.4-dev
Package: liborc-0.4-dev
State: installed
Automatically installed: no
Version: 0.4.6-1

That may not be an acceptable version of orc, given that volk seems to
be using some features not in 0.4.6. I might recommend this change:

diff --git a/volk/cmake/FindORC.cmake b/volk/cmake/FindORC.cmake
index 8d8c2d1…1c4c417 100644
— a/volk/cmake/FindORC.cmake
+++ b/volk/cmake/FindORC.cmake
@@ -1,5 +1,5 @@
FIND_PACKAGE(PkgConfig)
-PKG_CHECK_MODULES(PC_ORC orc-0.4)
+PKG_CHECK_MODULES(PC_ORC “orc-0.4 > 0.4.11”)

-Josh

On Mon, Mar 19, 2012 at 21:20, Josh B. [email protected] wrote:

Walkthrough showing how it works:
http://tinyurl.com/35spup4

Perhaps your URL is typo’d, or you pasted the URL from the wrong tab
in your browser :slight_smile:

Johnathan

Ok, now CMake builds volk without orc support and it seems to work.
Given that there isn’t an updated orc package for Ubuntu 10.10, what’s
the recommended course of action?

a) Live without orc support. Does it make much of a difference on x86?
The build-gnuradio script does not install or check for liborc.

Many of the volk kernels have SSE* implementations. So for x86, orc
doesnt give much benefit. But on a platform like arm, orc gives you neon
optimized routines where there were no neon specific kernels
implemented.

b) Install orc from source. Messy, and causes problems if you later
install a package with a dependency on liborc.

c) Install a newer liborc package from a PPA. A quick search of
Launchpad didn’t find any.

You may just be able to snag the liborc debian package from ubuntu
11.10. It only requires libc6, so it should be a harmless package
upgrade.

d) Get a newer distro. Personally I’m not ready to deal with this yet,
and I suspect many users feel the same way because Ubuntu 10.10 is the
last pre-Unity version.

Port of GNOME 2 to all new distros:
http://cinnamon.linuxmint.com/?page_id=61

Walkthrough showing how it works:
http://tinyurl.com/35spup4

-Josh

On Mon, Mar 19, 2012 at 11:11 PM, Ian Cullinan
[email protected]wrote:

Ok, now CMake builds volk without orc support and it seems to work.
Given that there isn’t an updated orc package for Ubuntu 10.10, what’s
the recommended course of action?

One of the problems is that Orc is still new and went through quite a
bit
of churn last year. There hasn’t been an update in a while, so it looks
like things are maybe stabilizing. But we obviously needed some newer
features, so we had to push the acceptable version number up.

a) Live without orc support. Does it make much of a difference on x86?
The build-gnuradio script does not install or check for liborc.

Yeah, on x86 machines, you’ll be fine.

b) Install orc from source. Messy, and causes problems if you later
install a package with a dependency on liborc.

I put a link to the download page at:
http://gnuradio.org/redmine/projects/gnuradio/wiki/Volk

I do this on my 10.10 machine.

c) Install a newer liborc package from a PPA. A quick search of
Launchpad didn’t find any.

d) Get a newer distro. Personally I’m not ready to deal with this yet,
and I suspect many users feel the same way because Ubuntu 10.10 is the
last pre-Unity version.

Ubuntu 11.10 uses Orc 0.4.14. And you can remove/replace Unity and make
it
use Gnome 2.

Thanks,

Ian

Tom