Problem while building srsRAN from source #684
Replies: 3 comments 3 replies
-
I am working on Gentoo Linux last version, i am getting the same issue. i don't think that the problem is in cmake because i have tried multiple versions of cmake to compile it but everytime facing the same problem so i think the problem exactly is in the source code or maybe there is something we miss. i will try to solve it, if i get the solution i will give it to you! Wishing you a nice day. |
Beta Was this translation helpful? Give feedback.
-
i found the solution, here is it:
it was enough to solve the problem Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
Thank you @Omar-D, I wish you a nice day. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning, I encounter errors while building the make in the build directory.
I am not working on a VM, my processor is the " Intel Atom(R) x6425RE Processor @ 1.90GHz", it supports sse4.1, sse1, and sse2 and I am on ubuntu 20.04.6, here is a list a the supported flag :
someone had a similar error but he was on a VM, here is a link : #151
The result from the cmake output :
sudo cmake
../
-- The C compiler identification is GNU 10.5.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type not specified: defaulting to Release.
-- Performing Test HAS_MAYBE_UNINITIALIZED
-- Performing Test HAS_MAYBE_UNINITIALIZED - Success
-- Performing Test HAS_STRINGOP_OVERFLOW
-- Performing Test HAS_STRINGOP_OVERFLOW - Success
-- Performing Test HAVE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_SUGGEST_OVERRIDE
-- Performing Test HAVE_SUGGEST_OVERRIDE - Success
-- Performing Test HAVE_SHADOW
-- Performing Test HAVE_SHADOW - Success
-- Assertion level set to NORMAL
-- Could NOT find libdw (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR)
-- Found libbfd: /usr/lib/x86_64-linux-gnu/libbfd.so
-- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR LIBELF_LIBRARY LIBELF_INCLUDE_DIR)
-- Found Backward: /home/ubuntu/5G_testbed/srsRAN_Project/cmake/modules
-- Building with backward-cpp support
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'mbedtls'
-- No package 'mbedtls' found
-- MBEDTLS LIBRARIES: /usr/lib/x86_64-linux-gnu/libmbedcrypto.so
-- MBEDTLS STATIC LIBRARIES: /usr/lib/x86_64-linux-gnu/libmbedcrypto.a
-- MBEDTLS INCLUDE DIRS: /usr/include
-- Found MbedTLS: /usr/lib/x86_64-linux-gnu/libmbedcrypto.so
-- Checking for module 'fftw3f >= 3.0'
-- Found fftw3f , version 3.3.8
-- FFTW3F LIBRARIES: /usr/lib/x86_64-linux-gnu/libfftw3f.so
-- FFTW3F STATIC LIBRARIES: /usr/lib/x86_64-linux-gnu/libfftw3f.a
-- FFTW3F INCLUDE DIRS: /usr/include
-- Found FFTW3F: /usr/lib/x86_64-linux-gnu/libfftw3f.so
-- Found GTest: /usr/lib/x86_64-linux-gnu/libgtest.a
-- Found Threads: TRUE
-- UHD LIBRARIES /usr/local/lib/libuhd.so
-- UHD INCLUDE DIRS /usr/local/include
-- Found UHD: /usr/local/lib/libuhd.so
-- Checking for module 'yaml-cpp'
-- Found yaml-cpp, version 0.6.2
-- YAMLCPP LIBRARIES: /usr/lib/x86_64-linux-gnu/libyaml-cpp.so
-- YAMLCPP INCLUDE DIRS: /usr/include
-- Found YAMLCPP: /usr/lib/x86_64-linux-gnu/libyaml-cpp.so
-- Performing Test HAVE_SSE
-- Performing Test HAVE_SSE - Success
-- SSE4.1 is enabled - target CPU must support it
-- Performing Test HAVE_AVX
-- Performing Test HAVE_AVX - Failed
-- Performing Test HAVE_AVX2
-- Performing Test HAVE_AVX2 - Failed
-- Performing Test HAVE_FMA
-- Performing Test HAVE_FMA - Failed
-- Performing Test HAVE_AVX512
-- Performing Test HAVE_AVX512 - Failed
-- Performing Test HAVE_MARCH
-- Performing Test HAVE_MARCH - Success
-- Enabling ccache for C
-- Enabling ccache for CXX
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.17") found components: doxygen missing components: dot
-- Checking for module 'sctp'
-- No package 'sctp' found
-- SCTP LIBRARIES: /usr/lib/x86_64-linux-gnu/libsctp.so
-- SCTP INCLUDE DIRS: /usr/include
-- Found SCTP: /usr/lib/x86_64-linux-gnu/libsctp.so
-- FFT_LIBRARIES: /usr/lib/x86_64-linux-gnu/libfftw3f.so
-- Building srsRAN version 24.04.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/5G_testbed/srsRAN_Project/build
I have all of the dependencies installed (I have double-checked)
My errors while building the "make -j $(nproc)" are the following :
[ 30%] Building CXX object lib/phy/upper/equalization/CMakeFiles/srsran_channel_equalizer.dir/channel_equalizer_generic_impl.cpp.o
In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/immintrin.h:107,
from /home/ubuntu/5G_testbed/srsRAN_Project/lib/phy/upper/equalization/../../../srsvec/simd.h:36,
from /home/ubuntu/5G_testbed/srsRAN_Project/lib/phy/upper/equalization/equalize_mmse_1xn.h:28,
from /home/ubuntu/5G_testbed/srsRAN_Project/lib/phy/upper/equalization/channel_equalizer_generic_impl.cpp:27:
/usr/lib/gcc/x86_64-linux-gnu/9/include/fmaintrin.h: In function ‘srsran::simd_f_t srsran::srsran_simd_f_fma(srsran::simd_f_t, srsran::simd_f_t, srsran::simd_f_t)’:
/usr/lib/gcc/x86_64-linux-gnu/9/include/fmaintrin.h:55:1: error: inlining failed in call to always_inline ‘__m128 _mm_fmadd_ps(__m128, __m128, __m128)’: target specific option mismatch
55 | _mm_fmadd_ps (__m128 __A, __m128 __B, __m128 __C)
| ^~~~~~~~~~~~
In file included from /home/ubuntu/5G_testbed/srsRAN_Project/lib/phy/upper/equalization/equalize_mmse_1xn.h:28,
from /home/ubuntu/5G_testbed/srsRAN_Project/lib/phy/upper/equalization/channel_equalizer_generic_impl.cpp:27:
/home/ubuntu/5G_testbed/srsRAN_Project/lib/phy/upper/equalization/../../../srsvec/simd.h:395:22: note: called from here
395 | return _mm_fmadd_ps(a, b, acc);
| ~~~~~~~~~~~~^~~~~~~~~~~
make[2]: *** [lib/phy/upper/equalization/CMakeFiles/srsran_channel_equalizer.dir/build.make:63: lib/phy/upper/equalization/CMakeFiles/srsran_channel_equalizer.dir/channel_equalizer_generic_impl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:11743: lib/phy/upper/equalization/CMakeFiles/srsran_channel_equalizer.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Wishing you a nice day.
Beta Was this translation helpful? Give feedback.
All reactions