[srslte-users] Building srsLTE on RasPi 4 Buster...

Vasil Velichkov vvvelichkov at gmail.com
Tue Oct 15 23:41:53 UTC 2019


On 15/10/2019 22.37, Ralph A. Schmid, dk5ras wrote:
> Hmmm, now it fails later with this message:
> 
> [ 84%] Linking CXX executable queue_test
> [ 84%] Built target queue_test
> [ 85%] Linking CXX executable tft_test
> /usr/bin/ld: CMakeFiles/rrc_reconfig_test.dir/rrc_reconfig_test.cc.o: in function `basic_test()':
> rrc_reconfig_test.cc:(.text+0x408): undefined reference to `asn1::bit_ref::bit_ref(unsigned char*, unsigned int)'
> /usr/bin/ld: rrc_reconfig_test.cc:(.text+0x424): undefined reference to `asn1::bit_ref::bit_ref(unsigned char*, unsigned int)'
> /usr/bin/ld: rrc_reconfig_test.cc:(.text+0xbc4): undefined reference to `asn1::bit_ref::bit_ref(unsigned char*, unsigned int)'
> /usr/bin/ld: rrc_reconfig_test.cc:(.text+0xbe4): undefined reference to `asn1::bit_ref::bit_ref(unsigned char*, unsigned int)'
> /usr/bin/ld: rrc_reconfig_test.cc:(.text+0xc10): undefined reference to `asn1::bit_ref::bit_ref(unsigned char*, unsigned int)'
> collect2: error: ld returned 1 exit status

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?
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

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 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?



More information about the srsran-users mailing list