[srslte-users] srsran installation fails on ubuntu 20.04

Cristian Balint cristian.balint at gmail.com
Mon Jul 19 09:06:03 UTC 2021


Hi Nadav,

 Your GCC (9.3.0) is old, it fails on the invoked "native" optimization for
"tikerlake" on your gen. 11 (latest) Intel CPU.
 To be able to compile it out of the box you should use the latest GCC 11
series of GNU compilers.

(*) As alternate option, you can try replace "native" string into "generic"
here:

https://github.com/srsran/srsRAN/blob/89f16eed2b7f2e6c45e675298f5829c230698e1d/CMakeLists.txt#L110
    Or use other appropriate GCC flags (as -march=):
https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html

(*) Make sure you invoke the -DHAVE_SSE, DHAVE_AVX, -DHAVE_AVX2 flags for
cmake as of arch is not detected (e.x. you set "generic").



On Mon, Jul 19, 2021 at 11:05 AM Nadav Hashimshony <nadavh at gmail.com> wrote:

> Thanks Andre for the quick  response
>
> Attached is the output of /proc/cpuinfo and cmake.
>
> Regards,
> Nadav
>
> On Sun, Jul 18, 2021 at 11:25 PM Andre Puschmann <andre at srs.io> wrote:
>
>> Hi,
>>
>> there is something mixed up with the compile flags that have been
>> selected. Please provide full system details (cat /proc/cpuinfo) and
>> full output of CMake after a fresh/clean run.
>>
>> Cheers
>> Andre
>>
>> On 18/7/21 10:55, Nadav Hashimshony wrote:
>> > Hi,
>> >
>> > im trying to build srsRAN from source,
>> > following the instruction from the guide:
>> >
>> https://docs.srsran.com/en/latest/general/source/1_installation.html#gen-installation
>> > <
>> https://docs.srsran.com/en/latest/general/source/1_installation.html#gen-installation
>> >
>> >
>> > when i run the 'make' command i get the following error message
>> >
>> > /opt/srsRAN/build# make
>> >
>> > [  0%] Building CXX object
>> > lib/src/asn1/CMakeFiles/srsran_asn1.dir/liblte_common.cc.o
>> > cc1plus: error: bad value (‘tigerlake’) for ‘-march=’ switch
>> > cc1plus: note: valid arguments to ‘-march=’ switch are: nocona core2
>> > nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i
>> > haswell core-avx2 broadwell skylake skylake-avx512 cannonlake
>> > icelake-client icelake-server cascadelake bonnell atom silvermont slm
>> > goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000
>> > nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron
>> > opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1
>> > bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native
>> > cc1plus: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
>> > cc1plus: note: valid arguments to ‘-mtune=’ switch are: nocona core2
>> > nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i
>> > haswell core-avx2 broadwell skylake skylake-avx512 cannonlake
>> > icelake-client icelake-server cascadelake bonnell atom silvermont slm
>> > goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano
>> > nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron
>> > opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1
>> > bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 generic native
>> > make[2]: *** [lib/src/asn1/CMakeFiles/srsran_asn1.dir/build.make:63:
>> > lib/src/asn1/CMakeFiles/srsran_asn1.dir/liblte_common.cc.o] Error 1
>> > make[1]: *** [CMakeFiles/Makefile2:3364:
>> > lib/src/asn1/CMakeFiles/srsran_asn1.dir/all] Error 2
>> > make: *** [Makefile:163: all] Error 2
>> >
>> >
>> >
>> > Any idea why?
>> >
>> > Thanks,
>> > Nadav.
>> >
>> > _______________________________________________
>> > srslte-users mailing list
>> > srslte-users at lists.softwareradiosystems.com
>> > https://lists.softwareradiosystems.com/mailman/listinfo/srslte-users
>> >
>>
>> _______________________________________________
> srslte-users mailing list
> srslte-users at lists.softwareradiosystems.com
> https://lists.softwareradiosystems.com/mailman/listinfo/srslte-users
>


-- 
Balint Cristian
e-mail: cristian.balint at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20210719/59589c58/attachment.htm>


More information about the srsran-users mailing list