Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

2020-06-01 Thread Jeff S via USRP-users
Jonathon,

I added the cmake flag you suggested, and my build completed.  I don't have my 
E310 at the moment, so I can't test too much more to test it at the moment.  I 
suppose the fact it built is a very good sign.

Thanks!
Jeff




From: Jonathon Pendlum 
Sent: Tuesday, May 26, 2020 2:07 AM
To: Jeff S 
Cc: usrp-users@lists.ettus.com ; Ron Economos 

Subject: Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

Hi Jeff,

I'm looking into this cross compiling issue. Using this flag with cmake: 
-DCMAKE_ASM_COMPILER_ARG1:STRING="-mcpu=cortex-a9" seems to work as a temporary 
workaround for the volk error.

Jonathon

On Fri, Apr 3, 2020 at 8:31 AM Jeff S via USRP-users 
mailto:usrp-users@lists.ettus.com>> wrote:
$ which gnuradio-config-info
/home/user/sdr/e310/rfnoc/installs/bin/gnuradio-config-info
$ gnuradio-config-info -v
3.7.14.0

I used maint-3.7.  This is what I did for the non-ARM build:

$ git clone --recursive https://github.com/gnuradio/gnuradio
$ cd ~/sdr/e310/rfnoc/src/gnuradio/
$ git checkout maint-3.7
$ git submodule update --init --recursive

This is from the directions located at the first build of GNU Radio located in 
the application note: 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Building_GNU_Radio.

Jeff


From: USRP-users 
mailto:usrp-users-boun...@lists.ettus.com>> 
on behalf of Ron Economos via USRP-users 
mailto:usrp-users@lists.ettus.com>>
Sent: Friday, April 3, 2020 7:17 AM
To: usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com> 
mailto:usrp-users@lists.ettus.com>>
Subject: Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)


What version of GNU Radio are you trying to build? If it's 3.8 or 3.9, you need 
a newer version of VOLK.


Ron


On 4/3/20 05:10, Jeff S wrote:
Ron,

I re-created my build-arm directory and tried adding this with the same results.

Philip, in a previous email, had me looking through the Volk issues, and maybe 
there is one related that is OPEN:  "Missing NEON Implementations #243" 
(https://github.com/gnuradio/volk/issues/243).  I am still trying to understand 
it to see if there's something I can do related to it.  Just have been trying 
to follow the Ettus application notes.

Jeff


From: USRP-users 
<mailto:usrp-users-boun...@lists.ettus.com> 
on behalf of Ron Economos via USRP-users 
<mailto:usrp-users@lists.ettus.com>
Sent: Thursday, April 2, 2020 6:59 PM
To: usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com> 
<mailto:usrp-users@lists.ettus.com>
Subject: Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)


Try adding this to your CMake command line.


-DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon 
-mtune=cortex-a9" -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard 
-mfpu=neon -mtune=cortex-a9" -DCMAKE_ASM_FLAGS:STRING="-march=armv7-a 
-mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 -g"


Ron


On 4/2/20 13:45, Jeff S via USRP-users wrote:
I had a problem with the initial build environment when setting up my 
environment for the E310.  Up to now, I have been able to get the UHD 
cross-compiled, a new image for the microSD card built, and checked up to the # 
uhd_usrp_probe step on the E310 (from 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source)
 with success.

I am now at the point where I am Cross-Compiling GNU Radio.  I have been using 
e3xx_e310_sdk_default-v3.15.0.0.zip, and at the point where I am building GNU 
Radio, I am getting an error:


Scanning dependencies of target volk_obj
[  3%] Building ASM object 
volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:
 Assembler messages:
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:9:
 Error: selected processor does not support `pld [r1:128]' in ARM mode
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:20:
 Error: selected processor does not support `pld [r4:128]' in ARM mode
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:44:
 Error: selected processor does not support `sxth r6,r6' in ARM mode
volk/lib/CMakeFiles/volk_obj.dir/build.make:1572: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o'
 failed
make[2]: *** 
[volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o]
 Error 1
CMakeFiles/Makefile2:220: recipe for target 
'volk/lib/CMake

Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

2020-05-26 Thread Jonathon Pendlum via USRP-users
Hi Jeff,

I'm looking into this cross compiling issue. Using this flag with cmake:
-DCMAKE_ASM_COMPILER_ARG1:STRING="-mcpu=cortex-a9" seems to work as a
temporary workaround for the volk error.

Jonathon

On Fri, Apr 3, 2020 at 8:31 AM Jeff S via USRP-users <
usrp-users@lists.ettus.com> wrote:

> $ which gnuradio-config-info
> /home/user/sdr/e310/rfnoc/installs/bin/gnuradio-config-info
> $ gnuradio-config-info -v
> 3.7.14.0
>
> I used maint-3.7.  This is what I did for the non-ARM build:
>
> $ git clone --recursive https://github.com/gnuradio/gnuradio
> $ cd ~/sdr/e310/rfnoc/src/gnuradio/
> $ git checkout maint-3.7
> $ git submodule update --init --recursive
>
>
> This is from the directions located at the first build of GNU Radio
> located in the application note:
> https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Building_GNU_Radio
> .
>
> Jeff
>
> --
> *From:* USRP-users  on behalf of Ron
> Economos via USRP-users 
> *Sent:* Friday, April 3, 2020 7:17 AM
> *To:* usrp-users@lists.ettus.com 
> *Subject:* Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)
>
>
> What version of GNU Radio are you trying to build? If it's 3.8 or 3.9, you
> need a newer version of VOLK.
>
>
> Ron
>
>
> On 4/3/20 05:10, Jeff S wrote:
>
> Ron,
>
> I re-created my build-arm directory and tried adding this with the same
> results.
>
> Philip, in a previous email, had me looking through the Volk issues, and
> maybe there is one related that is OPEN:  "Missing NEON Implementations
> #243" (https://github.com/gnuradio/volk/issues/243).  I am still trying
> to understand it to see if there's something I can do related to it.  Just
> have been trying to follow the Ettus application notes.
>
> Jeff
>
> ----------
> *From:* USRP-users 
>  on behalf of Ron Economos via
> USRP-users  
> *Sent:* Thursday, April 2, 2020 6:59 PM
> *To:* usrp-users@lists.ettus.com 
> 
> *Subject:* Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)
>
>
> Try adding this to your CMake command line.
>
>
> -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon
> -mtune=cortex-a9" -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard
> -mfpu=neon -mtune=cortex-a9" -DCMAKE_ASM_FLAGS:STRING="-march=armv7-a
> -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 -g"
>
>
> Ron
>
>
> On 4/2/20 13:45, Jeff S via USRP-users wrote:
>
> I had a problem with the initial build environment when setting up my
> environment for the E310.  Up to now, I have been able to get the UHD
> cross-compiled, a new image for the microSD card built, and checked up to
> the *# uhd_usrp_probe* step on the E310 (from
> https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source)
> with success.
>
> I am now at the point where I am *Cross-Compiling GNU Radio*.  I have
> been using *e3xx_e310_sdk_default-v3.15.0.0.zip*, and at the point where
> I am building GNU Radio, I am getting an error:
>
> *Scanning dependencies of target volk_obj*
> [  3%] Building ASM object 
> volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o
> /home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:
>  Assembler messages:
> /home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:9:
>  Error: selected processor does not support `pld [r1:128]' in ARM mode
> /home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:20:
>  Error: selected processor does not support `pld [r4:128]' in ARM mode
> /home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:44:
>  Error: selected processor does not support `sxth r6,r6' in ARM mode
> volk/lib/CMakeFiles/volk_obj.dir/build.make:1572: recipe for target 
> 'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o'
>  failed
> make[2]: *** 
> [volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o]
>  Error 1
> CMakeFiles/Makefile2:220: recipe for target 
> 'volk/lib/CMakeFiles/volk_obj.dir/all' failed
> make[1]: *** [volk/lib/CMakeFiles/volk_obj.dir/all] Error 2
> Makefile:162: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
> I have searched unsuccessfully for an answer to this one, and figure it's
> some sort of config

Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

2020-04-03 Thread Ron Economos via USRP-users
Okay. GNU Radio 3.7.14.0 builds okay on native ARM, so it must be 
something with the cross-compile.



Ron


On 4/3/20 05:30, Jeff S wrote:

$ which gnuradio-config-info
/home/user/sdr/e310/rfnoc/installs/bin/gnuradio-config-info
$ gnuradio-config-info -v
3.7.14.0

I used maint-3.7.  This is what I did for the non-ARM build:

$ git clone --recursive https://github.com/gnuradio/gnuradio
$ cd ~/sdr/e310/rfnoc/src/gnuradio/
$ git checkout maint-3.7
$ git submodule update --init --recursive


This is from the directions located at the first build of GNU Radio 
located in the application note: 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Building_GNU_Radio.


Jeff


*From:* USRP-users  on behalf of 
Ron Economos via USRP-users 

*Sent:* Friday, April 3, 2020 7:17 AM
*To:* usrp-users@lists.ettus.com 
*Subject:* Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

What version of GNU Radio are you trying to build? If it's 3.8 or 3.9, 
you need a newer version of VOLK.



Ron


On 4/3/20 05:10, Jeff S wrote:

Ron,

I re-created my build-arm directory and tried adding this with the 
same results.


Philip, in a previous email, had me looking through the Volk issues, 
and maybe there is one related that is OPEN: "Missing NEON 
Implementations #243" (https://github.com/gnuradio/volk/issues/243). 
I am still trying to understand it to see if there's something I can 
do related to it.  Just have been trying to follow the Ettus 
application notes.


Jeff


*From:* USRP-users  
<mailto:usrp-users-boun...@lists.ettus.com> on behalf of Ron Economos 
via USRP-users  
<mailto:usrp-users@lists.ettus.com>

*Sent:* Thursday, April 2, 2020 6:59 PM
*To:* usrp-users@lists.ettus.com <mailto:usrp-users@lists.ettus.com> 
 <mailto:usrp-users@lists.ettus.com>

*Subject:* Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

Try adding this to your CMake command line.


-DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon 
-mtune=cortex-a9" -DCMAKE_C_FLAGS:STRING="-march=armv7-a 
-mfloat-abi=hard -mfpu=neon -mtune=cortex-a9" 
-DCMAKE_ASM_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon 
-mtune=cortex-a9 -g"



Ron


On 4/2/20 13:45, Jeff S via USRP-users wrote:
I had a problem with the initial build environment when setting up 
my environment for the E310.  Up to now, I have been able to get the 
UHD cross-compiled, a new image for the microSD card built, and 
checked up to the *# uhd_usrp_probe* step on the E310 (from 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source) 
with success.


I am now at the point where I am *Cross-Compiling GNU Radio*.  I 
have been using /e3xx_e310_sdk_default-v3.15.0.0.zip/, and at the 
point where I am building GNU Radio, I am getting an error:


*Scanning dependencies of target volk_obj*
[  3%]Building ASM object

volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:
 Assembler messages:

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:9:
 Error: selected processor does not support `pld [r1:128]' in ARM mode

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:20:
 Error: selected processor does not support `pld [r4:128]' in ARM mode

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:44:
 Error: selected processor does not support `sxth r6,r6' in ARM mode
volk/lib/CMakeFiles/volk_obj.dir/build.make:1572: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o'
 failed
make[2]: *** 
[volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o]
 Error 1
CMakeFiles/Makefile2:220: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/all' failed
make[1]: *** [volk/lib/CMakeFiles/volk_obj.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2


I have searched unsuccessfully for an answer to this one, and figure 
it's some sort of configuration error that I missed.  The commands I 
am using are:


$ cd ~/sdr/e310/rfnoc/oe/
$ source ./environment-setup-cortexa9t2hf-neon-oe-linux-musleabi
$ cd ~/sdr/e310/rfnoc/src/gnuradio
$ mkdir build-arm
$ cd build-arm/
$ cmake -Wno-dev

-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cro

Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

2020-04-03 Thread Jeff S via USRP-users
$ which gnuradio-config-info
/home/user/sdr/e310/rfnoc/installs/bin/gnuradio-config-info
$ gnuradio-config-info -v
3.7.14.0

I used maint-3.7.  This is what I did for the non-ARM build:

$ git clone --recursive https://github.com/gnuradio/gnuradio
$ cd ~/sdr/e310/rfnoc/src/gnuradio/
$ git checkout maint-3.7
$ git submodule update --init --recursive

This is from the directions located at the first build of GNU Radio located in 
the application note: 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Building_GNU_Radio.

Jeff


From: USRP-users  on behalf of Ron Economos 
via USRP-users 
Sent: Friday, April 3, 2020 7:17 AM
To: usrp-users@lists.ettus.com 
Subject: Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)


What version of GNU Radio are you trying to build? If it's 3.8 or 3.9, you need 
a newer version of VOLK.


Ron


On 4/3/20 05:10, Jeff S wrote:
Ron,

I re-created my build-arm directory and tried adding this with the same results.

Philip, in a previous email, had me looking through the Volk issues, and maybe 
there is one related that is OPEN:  "Missing NEON Implementations #243" 
(https://github.com/gnuradio/volk/issues/243).  I am still trying to understand 
it to see if there's something I can do related to it.  Just have been trying 
to follow the Ettus application notes.

Jeff


From: USRP-users 
<mailto:usrp-users-boun...@lists.ettus.com> 
on behalf of Ron Economos via USRP-users 
<mailto:usrp-users@lists.ettus.com>
Sent: Thursday, April 2, 2020 6:59 PM
To: usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com> 
<mailto:usrp-users@lists.ettus.com>
Subject: Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)


Try adding this to your CMake command line.


-DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon 
-mtune=cortex-a9" -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard 
-mfpu=neon -mtune=cortex-a9" -DCMAKE_ASM_FLAGS:STRING="-march=armv7-a 
-mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 -g"


Ron


On 4/2/20 13:45, Jeff S via USRP-users wrote:
I had a problem with the initial build environment when setting up my 
environment for the E310.  Up to now, I have been able to get the UHD 
cross-compiled, a new image for the microSD card built, and checked up to the # 
uhd_usrp_probe step on the E310 (from 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source)
 with success.

I am now at the point where I am Cross-Compiling GNU Radio.  I have been using 
e3xx_e310_sdk_default-v3.15.0.0.zip, and at the point where I am building GNU 
Radio, I am getting an error:


Scanning dependencies of target volk_obj
[  3%] Building ASM object 
volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:
 Assembler messages:
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:9:
 Error: selected processor does not support `pld [r1:128]' in ARM mode
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:20:
 Error: selected processor does not support `pld [r4:128]' in ARM mode
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:44:
 Error: selected processor does not support `sxth r6,r6' in ARM mode
volk/lib/CMakeFiles/volk_obj.dir/build.make:1572: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o'
 failed
make[2]: *** 
[volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o]
 Error 1
CMakeFiles/Makefile2:220: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/all' failed
make[1]: *** [volk/lib/CMakeFiles/volk_obj.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2


I have searched unsuccessfully for an answer to this one, and figure it's some 
sort of configuration error that I missed.  The commands I am using are:

$ cd ~/sdr/e310/rfnoc/oe/
$ source ./environment-setup-cortexa9t2hf-neon-oe-linux-musleabi
$ cd ~/sdr/e310/rfnoc/src/gnuradio
$ mkdir build-arm
$ cd build-arm/
$ cmake -Wno-dev 
-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
 -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF 
-DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
$ make

Any obvious issues?  Could there be something cached from the earlier build in 
the directions?  I'll post the cmake output below my signature to keep it out 
of the way.

Thanks,
Jeff



$ cmake -Wno-dev 
-DCMAK

Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

2020-04-03 Thread Ron Economos via USRP-users
What version of GNU Radio are you trying to build? If it's 3.8 or 3.9, 
you need a newer version of VOLK.



Ron


On 4/3/20 05:10, Jeff S wrote:

Ron,

I re-created my build-arm directory and tried adding this with the 
same results.


Philip, in a previous email, had me looking through the Volk issues, 
and maybe there is one related that is OPEN:  "Missing NEON 
Implementations #243" (https://github.com/gnuradio/volk/issues/243). I 
am still trying to understand it to see if there's something I can do 
related to it.  Just have been trying to follow the Ettus application 
notes.


Jeff


*From:* USRP-users  on behalf of 
Ron Economos via USRP-users 

*Sent:* Thursday, April 2, 2020 6:59 PM
*To:* usrp-users@lists.ettus.com 
*Subject:* Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

Try adding this to your CMake command line.


-DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon 
-mtune=cortex-a9" -DCMAKE_C_FLAGS:STRING="-march=armv7-a 
-mfloat-abi=hard -mfpu=neon -mtune=cortex-a9" 
-DCMAKE_ASM_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon 
-mtune=cortex-a9 -g"



Ron


On 4/2/20 13:45, Jeff S via USRP-users wrote:
I had a problem with the initial build environment when setting up my 
environment for the E310.  Up to now, I have been able to get the UHD 
cross-compiled, a new image for the microSD card built, and checked 
up to the *# uhd_usrp_probe* step on the E310 (from 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source) 
with success.


I am now at the point where I am *Cross-Compiling GNU Radio*.  I have 
been using /e3xx_e310_sdk_default-v3.15.0.0.zip/, and at the point 
where I am building GNU Radio, I am getting an error:


*Scanning dependencies of target volk_obj*
[  3%]Building ASM object

volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:
 Assembler messages:

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:9:
 Error: selected processor does not support `pld [r1:128]' in ARM mode

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:20:
 Error: selected processor does not support `pld [r4:128]' in ARM mode

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:44:
 Error: selected processor does not support `sxth r6,r6' in ARM mode
volk/lib/CMakeFiles/volk_obj.dir/build.make:1572: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o'
 failed
make[2]: *** 
[volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o]
 Error 1
CMakeFiles/Makefile2:220: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/all' failed
make[1]: *** [volk/lib/CMakeFiles/volk_obj.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2


I have searched unsuccessfully for an answer to this one, and figure 
it's some sort of configuration error that I missed.  The commands I 
am using are:


$ cd ~/sdr/e310/rfnoc/oe/
$ source ./environment-setup-cortexa9t2hf-neon-oe-linux-musleabi
$ cd ~/sdr/e310/rfnoc/src/gnuradio
$ mkdir build-arm
$ cd build-arm/
$ cmake -Wno-dev

-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
-DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF
-DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF
-DCMAKE_INSTALL_PREFIX=/usr ../
$ make


Any obvious issues?  Could there be something cached from the earlier 
build in the directions?  I'll post the cmake output below my 
signature to keep it out of the way.


Thanks,
Jeff


$ cmake -Wno-dev 
-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
 -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF 
-DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
-- The CXX compiler identification is GNU 8.2.0
-- The C compiler identification is GNU 8.2.0
-- Check for working CXX compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
-- Check for working CXX compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: 
/home/sdr/sdr/e310/rfnoc/oe/s

Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

2020-04-03 Thread Jeff S via USRP-users
Ron,

I re-created my build-arm directory and tried adding this with the same results.

Philip, in a previous email, had me looking through the Volk issues, and maybe 
there is one related that is OPEN:  "Missing NEON Implementations #243" 
(https://github.com/gnuradio/volk/issues/243).  I am still trying to understand 
it to see if there's something I can do related to it.  Just have been trying 
to follow the Ettus application notes.

Jeff


From: USRP-users  on behalf of Ron Economos 
via USRP-users 
Sent: Thursday, April 2, 2020 6:59 PM
To: usrp-users@lists.ettus.com 
Subject: Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)


Try adding this to your CMake command line.


-DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon 
-mtune=cortex-a9" -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard 
-mfpu=neon -mtune=cortex-a9" -DCMAKE_ASM_FLAGS:STRING="-march=armv7-a 
-mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 -g"


Ron


On 4/2/20 13:45, Jeff S via USRP-users wrote:
I had a problem with the initial build environment when setting up my 
environment for the E310.  Up to now, I have been able to get the UHD 
cross-compiled, a new image for the microSD card built, and checked up to the # 
uhd_usrp_probe step on the E310 (from 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source)
 with success.

I am now at the point where I am Cross-Compiling GNU Radio.  I have been using 
e3xx_e310_sdk_default-v3.15.0.0.zip, and at the point where I am building GNU 
Radio, I am getting an error:


Scanning dependencies of target volk_obj
[  3%] Building ASM object 
volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:
 Assembler messages:
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:9:
 Error: selected processor does not support `pld [r1:128]' in ARM mode
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:20:
 Error: selected processor does not support `pld [r4:128]' in ARM mode
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:44:
 Error: selected processor does not support `sxth r6,r6' in ARM mode
volk/lib/CMakeFiles/volk_obj.dir/build.make:1572: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o'
 failed
make[2]: *** 
[volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o]
 Error 1
CMakeFiles/Makefile2:220: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/all' failed
make[1]: *** [volk/lib/CMakeFiles/volk_obj.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2


I have searched unsuccessfully for an answer to this one, and figure it's some 
sort of configuration error that I missed.  The commands I am using are:

$ cd ~/sdr/e310/rfnoc/oe/
$ source ./environment-setup-cortexa9t2hf-neon-oe-linux-musleabi
$ cd ~/sdr/e310/rfnoc/src/gnuradio
$ mkdir build-arm
$ cd build-arm/
$ cmake -Wno-dev 
-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
 -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF 
-DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
$ make

Any obvious issues?  Could there be something cached from the earlier build in 
the directions?  I'll post the cmake output below my signature to keep it out 
of the way.

Thanks,
Jeff



$ cmake -Wno-dev 
-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
 -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF 
-DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
-- The CXX compiler identification is GNU 8.2.0
-- The C compiler identification is GNU 8.2.0
-- Check for working CXX compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
-- Check for working CXX compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-gcc
-- Check for working C compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-gcc
 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - don

Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

2020-04-02 Thread Ron Economos via USRP-users

Try adding this to your CMake command line.


-DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon 
-mtune=cortex-a9" -DCMAKE_C_FLAGS:STRING="-march=armv7-a 
-mfloat-abi=hard -mfpu=neon -mtune=cortex-a9" 
-DCMAKE_ASM_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon 
-mtune=cortex-a9 -g"



Ron


On 4/2/20 13:45, Jeff S via USRP-users wrote:
I had a problem with the initial build environment when setting up my 
environment for the E310.  Up to now, I have been able to get the UHD 
cross-compiled, a new image for the microSD card built, and checked up 
to the *# uhd_usrp_probe* step on the E310 (from 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source) 
with success.


I am now at the point where I am *Cross-Compiling GNU Radio*. I have 
been using /e3xx_e310_sdk_default-v3.15.0.0.zip/, and at the point 
where I am building GNU Radio, I am getting an error:


*Scanning dependencies of target volk_obj*
[  3%]Building ASM object

volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:
 Assembler messages:

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:9:
 Error: selected processor does not support `pld [r1:128]' in ARM mode

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:20:
 Error: selected processor does not support `pld [r4:128]' in ARM mode

/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:44:
 Error: selected processor does not support `sxth r6,r6' in ARM mode
volk/lib/CMakeFiles/volk_obj.dir/build.make:1572: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o'
 failed
make[2]: *** 
[volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o]
 Error 1
CMakeFiles/Makefile2:220: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/all' failed
make[1]: *** [volk/lib/CMakeFiles/volk_obj.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2


I have searched unsuccessfully for an answer to this one, and figure 
it's some sort of configuration error that I missed.  The commands I 
am using are:


$ cd ~/sdr/e310/rfnoc/oe/
$ source ./environment-setup-cortexa9t2hf-neon-oe-linux-musleabi
$ cd ~/sdr/e310/rfnoc/src/gnuradio
$ mkdir build-arm
$ cd build-arm/
$ cmake -Wno-dev

-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
-DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF
-DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF
-DCMAKE_INSTALL_PREFIX=/usr ../
$ make


Any obvious issues?  Could there be something cached from the earlier 
build in the directions?  I'll post the cmake output below my 
signature to keep it out of the way.


Thanks,
Jeff


$ cmake -Wno-dev 
-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
 -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF 
-DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
-- The CXX compiler identification is GNU 8.2.0
-- The C compiler identification is GNU 8.2.0
-- Check for working CXX compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
-- Check for working CXX compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-gcc
-- Check for working C compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-gcc
 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Build type set to Release.
-- Found Git: /usr/bin/git
-- Extracting version information from git describe...
-- Performing Test HAVE_VISIBILITY_HIDDEN
-- Performing Test HAVE_VISIBILITY_HIDDEN - Success
-- Performing Test HAVE_WARN_SIGN_COMPARE
-- Performing Test HAVE_WARN_SIGN_COMPARE - Success
-- Performing Test HAVE_WARN_ALL
-- Performing Test HAVE_WARN_ALL - Success
-- Performing Test HAVE_WARN_NO_UNINITIALIZED
-- Performing Test HAVE_WARN_NO_UNINITIALIZED - Success
-- Compiler Version: arm-oe-linux-musleabi-gcc (GCC) 8.2.0
Copyright (C) 2018 

Re: [USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

2020-04-02 Thread Philip Balister via USRP-users
Volk needs to be told to use thumb mode with asm. This flag isn't making
it all the way into the cmake for some cases. I also have a suspicion
the issue may go away in the current toolchains. Various patches have
been around for to fix this, take a look at the volk commit history.

Philip

On 4/2/20 4:45 PM, Jeff S via USRP-users wrote:
> I had a problem with the initial build environment when setting up my 
> environment for the E310.  Up to now, I have been able to get the UHD 
> cross-compiled, a new image for the microSD card built, and checked up to the 
> # uhd_usrp_probe step on the E310 (from 
> https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source)
>  with success.
> 
> I am now at the point where I am Cross-Compiling GNU Radio.  I have been 
> using e3xx_e310_sdk_default-v3.15.0.0.zip, and at the point where I am 
> building GNU Radio, I am getting an error:
> 
> 
> Scanning dependencies of target volk_obj
> [  3%] Building ASM object 
> volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o
> /home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:
>  Assembler messages:
> /home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:9:
>  Error: selected processor does not support `pld [r1:128]' in ARM mode
> /home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:20:
>  Error: selected processor does not support `pld [r4:128]' in ARM mode
> /home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:44:
>  Error: selected processor does not support `sxth r6,r6' in ARM mode
> volk/lib/CMakeFiles/volk_obj.dir/build.make:1572: recipe for target 
> 'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o'
>  failed
> make[2]: *** 
> [volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o]
>  Error 1
> CMakeFiles/Makefile2:220: recipe for target 
> 'volk/lib/CMakeFiles/volk_obj.dir/all' failed
> make[1]: *** [volk/lib/CMakeFiles/volk_obj.dir/all] Error 2
> Makefile:162: recipe for target 'all' failed
> make: *** [all] Error 2
> 
> 
> I have searched unsuccessfully for an answer to this one, and figure it's 
> some sort of configuration error that I missed.  The commands I am using are:
> 
> $ cd ~/sdr/e310/rfnoc/oe/
> $ source ./environment-setup-cortexa9t2hf-neon-oe-linux-musleabi
> $ cd ~/sdr/e310/rfnoc/src/gnuradio
> $ mkdir build-arm
> $ cd build-arm/
> $ cmake -Wno-dev 
> -DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
>  -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF 
> -DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
> $ make
> 
> Any obvious issues?  Could there be something cached from the earlier build 
> in the directions?  I'll post the cmake output below my signature to keep it 
> out of the way.
> 
> Thanks,
> Jeff
> 
> 
> 
> $ cmake -Wno-dev 
> -DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
>  -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF 
> -DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
> -- The CXX compiler identification is GNU 8.2.0
> -- The C compiler identification is GNU 8.2.0
> -- Check for working CXX compiler: 
> /home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
> -- Check for working CXX compiler: 
> /home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
>  -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Check for working C compiler: 
> /home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-gcc
> -- Check for working C compiler: 
> /home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-gcc
>  -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Build type not specified: defaulting to release.
> -- Build type set to Release.
> -- Found Git: /usr/bin/git
> -- Extracting version information from git describe...
> -- Performing Test HAVE_VISIBILITY_HIDDEN
> -- Performing Test HAVE_VISIBILITY_HIDDEN - Success
> -- Performing Test HAVE_WARN_SIGN_COMPARE
> -- Performing Test HAVE_WARN_SIGN_COMPARE - Success
> -- Performing Test HAVE_WARN_ALL
> -- Performing Test HAVE_WARN_ALL - Success
> -- Performing Test HAVE_WARN_NO_UNINITIALIZED
> -- Performing Test HAVE_WARN_NO_UNINITIALIZED - Success
> -- Compiler Version: ar

[USRP-users] E310 Cross-compiling UHD / GNU Radio (volk?)

2020-04-02 Thread Jeff S via USRP-users
I had a problem with the initial build environment when setting up my 
environment for the E310.  Up to now, I have been able to get the UHD 
cross-compiled, a new image for the microSD card built, and checked up to the # 
uhd_usrp_probe step on the E310 (from 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source)
 with success.

I am now at the point where I am Cross-Compiling GNU Radio.  I have been using 
e3xx_e310_sdk_default-v3.15.0.0.zip, and at the point where I am building GNU 
Radio, I am getting an error:


Scanning dependencies of target volk_obj
[  3%] Building ASM object 
volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:
 Assembler messages:
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:9:
 Error: selected processor does not support `pld [r1:128]' in ARM mode
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:20:
 Error: selected processor does not support `pld [r4:128]' in ARM mode
/home/sdr/sdr/e310/rfnoc/src/gnuradio/volk/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s:44:
 Error: selected processor does not support `sxth r6,r6' in ARM mode
volk/lib/CMakeFiles/volk_obj.dir/build.make:1572: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o'
 failed
make[2]: *** 
[volk/lib/CMakeFiles/volk_obj.dir/__/kernels/volk/asm/neon/volk_16i_max_star_horizontal_16i.s.o]
 Error 1
CMakeFiles/Makefile2:220: recipe for target 
'volk/lib/CMakeFiles/volk_obj.dir/all' failed
make[1]: *** [volk/lib/CMakeFiles/volk_obj.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2


I have searched unsuccessfully for an answer to this one, and figure it's some 
sort of configuration error that I missed.  The commands I am using are:

$ cd ~/sdr/e310/rfnoc/oe/
$ source ./environment-setup-cortexa9t2hf-neon-oe-linux-musleabi
$ cd ~/sdr/e310/rfnoc/src/gnuradio
$ mkdir build-arm
$ cd build-arm/
$ cmake -Wno-dev 
-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
 -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF 
-DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
$ make

Any obvious issues?  Could there be something cached from the earlier build in 
the directions?  I'll post the cmake output below my signature to keep it out 
of the way.

Thanks,
Jeff



$ cmake -Wno-dev 
-DCMAKE_TOOLCHAIN_FILE=~/sdr/e310/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
 -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF 
-DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
-- The CXX compiler identification is GNU 8.2.0
-- The C compiler identification is GNU 8.2.0
-- Check for working CXX compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
-- Check for working CXX compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-g++
 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-gcc
-- Check for working C compiler: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-gcc
 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Build type set to Release.
-- Found Git: /usr/bin/git
-- Extracting version information from git describe...
-- Performing Test HAVE_VISIBILITY_HIDDEN
-- Performing Test HAVE_VISIBILITY_HIDDEN - Success
-- Performing Test HAVE_WARN_SIGN_COMPARE
-- Performing Test HAVE_WARN_SIGN_COMPARE - Success
-- Performing Test HAVE_WARN_ALL
-- Performing Test HAVE_WARN_ALL - Success
-- Performing Test HAVE_WARN_NO_UNINITIALIZED
-- Performing Test HAVE_WARN_NO_UNINITIALIZED - Success
-- Compiler Version: arm-oe-linux-musleabi-gcc (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- Compiler Flags: 
/home/sdr/sdr/e310/rfnoc/oe/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-gcc:::-O3
 -DNDEBUG  -O2 -pipe -g -feliminate-unused-debug-types  -std=gnu99 
-fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized
/home/sdr/sdr/e310/rfnoc/oe/