Page 1 of 1

Redpitaya OS build - RPC support not available in C library

Posted: Wed Feb 10, 2016 1:32 pm
by pita
Hi !

I tried to compile the RedpitayaOS (official), but I get the following output at a later stage
in the make process:

Code: Select all

make -C OS/buildroot
make[1]: Entering directory `/home/red/redpitaya/RedPitaya/OS/buildroot'
make -C buildroot-2014.02 USER_HOOKS_EXTRA_ENV='VERSION=0.94-0-devbuild REVISION=devbuild'
make[2]: Entering directory `/home/red/redpitaya/RedPitaya/OS/buildroot/buildroot-2014.02'
>>> toolchain-external undefined Configuring
[b]RPC support not available in C library, please disable BR2_TOOLCHAIN_HAS_NATIVE_RPC[/b]
make[2]: *** [/home/red/redpitaya/RedPitaya/OS/buildroot/buildroot-2014.02/output/build/toolchain-external-undefined/.stamp_configured] Error 1
make[2]: Leaving directory `/home/red/redpitaya/RedPitaya/OS/buildroot/buildroot-2014.02'
make[1]: *** [buildroot-2014.02/output/images/rootfs.cpio.uboot] Error 2
make[1]: Leaving directory `/home/red/redpitaya/RedPitaya/OS/buildroot'
make: *** [buildroot] Error 2
I have Vivado+SDK installed... that part of the build process builds fine.
But as You can see - make fails at a later stage in buildroot.

Obviously this is related to RPC support that is not part of compiler's C library..
Of course I didn't forget to run these lines before running make:

Code: Select all

source /opt/Xilinx/Vivado/2015.4/settings64.sh
source /opt/Xilinx/SDK/2015.4/settings64.sh 

export CROSS_COMPILE=arm-xilinx-eabi-
So make should be using the right arm-xilinx-eabi compiler.
Has anyone of You ever encountered this warning ?

Best regards
pita

Re: Redpitaya OS build - RPC support not available in C libr

Posted: Thu Feb 11, 2016 12:28 pm
by pita
Got it !
Seems to be a mistake in http://wiki.redpitaya.com/index.php?title=Red_Pitaya_OS manual.

Taking a look at the makefile in <master branch>/OS/buildroot/ it is

Code: Select all

export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
you have to specify, not arm-xilinx-eabi-.

Furthermore add the line

Code: Select all

BR2_TOOLCHAIN_EXTERNAL_PATH="/opt/Xilinx/SDK/2015.4/gnu/arm/lin"
in config.armel in the same <master branch>/OS/buildroot dir.
(adapt 2015.4 to the SDK/Vivado version you got installed)

Best regards
pita

Re: Redpitaya OS build - RPC support not available in C libr

Posted: Thu Feb 11, 2016 12:34 pm
by Nils Roos
Ah, right, I didn't immediately pick up on the CROSS_COMPILE.

As a general note: if you are building the master branch, you should only follow the instructions in the included READMEs. The informations in the wiki are still not up to date for the 0.94 ecosystem.

Re: Redpitaya OS build - RPC support not available in C libr

Posted: Thu Feb 11, 2016 2:03 pm
by pita
V-v-v-version clash ! :D
Good you mention it. I always follow instructions on the wiki's etc.