[srslte-users] Building srsLTE on RasPi 4 Buster...
Vasil Velichkov
vvvelichkov at gmail.com
Wed Oct 16 16:43:19 UTC 2019
Hi Ralph,
On 16/10/2019 12.46, Ralph A. Schmid, dk5ras wrote:
>> Strange, this bit_ref constructor is defined in the asn1_utils.h header file so it
>> should be inlined. What compiler options do you use?
>
> All is standard, I am no coder, so I did not touch anything.
OK.
>> Run the following commands and provide the lines just before these errors
>> that contain the compiler flags.
>>
>> touch ../srsue/test/upper/rrc_reconfig_test.cc
>> make VERBOSE=1 rrc_reconfig_test
I've just compiled srsLTE successfully in a Docker ARM container based on rosbots/raspbian-lite image on my x86_64 laptop using qemu-user-static. I've only removed the -Werror option as there are quite a lot of warnings. Here are the compiler and linker options used in this container for future references.
[ 97%] Building CXX object srsue/test/upper/CMakeFiles/rrc_reconfig_test.dir/rrc_reconfig_test.cc.o
cd /home/vasko/srsLTE/build/srsue/test/upper && /usr/bin/c++ -DDISABLE_RF -DHAVE_MBEDTLS -I/home/vasko/srsLTE/build/lib/include -I/home/vasko/srsLTE/lib/include -I/home/vasko/srsLTE -Wall -Wno-comment -Wno-reorder -Wno-unused-but-set-variable -Wno-unused-variable -Wtype-limits -std=c++11 -ggdb -DBUILD_TYPE_RELWITHDEBINFO -DUSE_GLIBC_IPV6 -DIS_ARM -mfloat-abi=hard -mfpu=neon -O2 -g -DNDEBUG -fPIE -o CMakeFiles/rrc_reconfig_test.dir/rrc_reconfig_test.cc.o -c /home/vasko/srsLTE/srsue/test/upper/rrc_reconfig_test.cc
[100%] Linking CXX executable rrc_reconfig_test
cd /home/vasko/srsLTE/build/srsue/test/upper && /usr/bin/cmake -E cmake_link_script CMakeFiles/rrc_reconfig_test.dir/link.txt --verbose=1
/usr/bin/c++ -Wall -Wno-comment -Wno-reorder -Wno-unused-but-set-variable -Wno-unused-variable -Wtype-limits -std=c++11 -ggdb -DBUILD_TYPE_RELWITHDEBINFO -DUSE_GLIBC_IPV6 -DIS_ARM -mfloat-abi=hard -mfpu=neon -O2 -g -DNDEBUG -rdynamic CMakeFiles/rrc_reconfig_test.dir/rrc_reconfig_test.cc.o -o rrc_reconfig_test ../../src/stack/upper/libsrsue_upper.a ../../../lib/src/upper/libsrslte_upper.a ../../../lib/src/phy/libsrslte_phy.a ../../../lib/src/asn1/librrc_asn1.a ../../../lib/src/common/libsrslte_common.a ../../../lib/src/phy/libsrslte_phy.a -lfftw3f -lpthread -lm -lmbedcrypto ../../../lib/src/asn1/libsrslte_asn1.a
make[3]: Leaving directory '/home/vasko/srsLTE/build'
[100%] Built target rrc_reconfig_test
Please run the above two commands and post the output so we could compare all the flags. The output of rrc_config_test
$ ctest -R rrc_reconfig_test -V
test 550
Start 550: rrc_reconfig_test
550: Test command: /home/vasko/srsLTE/build/srsue/test/upper/rrc_reconfig_test
550: Test timeout computed to be: 1500
550: done
1/1 Test #550: rrc_reconfig_test ................ Passed 0.20 sec
The following tests passed:
rrc_reconfig_test
100% tests passed, 0 tests failed out of 1
>> Alternatively you could try moving the constructor definition to asn1_utils.cc
>> or a clean rebuild - remove the build directory and start from scratch.
>
> I will try this, beginning with a clean install, this is the easiest.
OK. Let us know how it is going.
>>> I forgot, gcc is 4:8.3.0-1+rpi2
>>
>> Could you give me a link to the exact Debian or Raspbian image you have
>> installed?
>
> It was downloaded maybe three weeks ago or so directly from the RasPi site, the light image without UI and all, as the device is used headless. From this link: https://www.raspberrypi.org/downloads/raspbian/
Thanks, I'll try to make a docker container from the 2019-09-26-raspbian-buster-lite.zip archive as unfortunately there are not official raspbian buster container.
Regards,
Vasil
More information about the srsran-users
mailing list