LABORA-INF-UFG / paper-MACAK-2022

Untrusted non-3GPP access Wi-Fi use case is a proof-of-concept (PoC) of 5G core access network in which Wi-Fi technology is employed.
Apache License 2.0
10 stars 1 forks source link

Upf compile error(make[1]: *** [Makefile:91: all] Error 2) #4

Closed Sivanesh1992 closed 9 months ago

Sivanesh1992 commented 9 months ago

hi as per document i given below command but getting some error.

sudo ./sample/my5g_wifi_config/utils/fix_core.sh [sudo] password for sivanesh: net.ipv4.ip_forward = 1 Stopping ufw (via systemctl): ufw.service. ./sample/my5g_wifi_config/utils/fix_core.sh: line 10: cd: /root/gtp5g: No such file or directory Start building upf.... cd src/upf && \ rm -rf build && \ mkdir -p build && \ cd ./build && \ cmake .. && \ make -j -- The C compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- The CXX compiler identification is GNU 11.4.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/sivanesh/my5G-core/src/upf/build make[1]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[2]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Circular lib/utlt/CMakeFiles/utlt_logger <- utlt_logger dependency dropped. make[3]: Circular utlt_logger <- utlt_logger dependency dropped. make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Entering directory '/home/sivanesh/my5G-core/src/upf/build' [ 1%] Building C object updk/CMakeFiles/free5GC_updk.dir/src/env.c.o [ 6%] Copying configs [ 6%] Building C object lib/pfcp/test/CMakeFiles/testpfcp.dir/test.c.o [ 6%] Building libgtp5gnl [ 6%] Building utlt_logger make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' [ 6%] Built target configs [ 7%] Linking C executable /home/sivanesh/my5G-core/src/upf/build/bin/testpfcp [ 8%] Linking C static library libfree5GC_updk.a autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' error obtaining VCS status: main module is in repository "/home/sivanesh/my5G-core" but current directory is in repository "/home/sivanesh/my5G-core/src/upf" Use -buildvcs=false to disable VCS stamping. make[3]: [lib/utlt/CMakeFiles/utlt_logger.dir/build.make:73: utlt_logger] Error 1 make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' make[2]: [CMakeFiles/Makefile2:549: lib/utlt/CMakeFiles/utlt_logger.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 8%] Built target free5GC_updk [ 8%] Built target testpfcp autoreconf: running: aclocal -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal -I m4 autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force autoreconf: Leaving directory '.' checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking how to create a pax tar archive... gnutar checking whether make supports nested variables... (cached) yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libmnl >= 1.0.0... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether compiler accepts -fvisibility=hidden... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating include/Makefile config.status: creating include/libgtp5gnl/Makefile config.status: creating include/linux/Makefile config.status: creating tools/Makefile config.status: creating libgtp5gnl.pc config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands make[4]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' make[5]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' Making all in src Making all in include make[6]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include' Making all in libgtp5gnl Making all in linux make[6]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include' Making all in tools make[6]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' make[6]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' make[5]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' make[4]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' make[4]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' Making install in src make[5]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/src' make[6]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/src' /usr/bin/mkdir -p '/home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib' /bin/bash ../libtool --mode=install /usr/bin/install -c libgtp5gnl.la '/home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib' libtool: install: /usr/bin/install -c .libs/libgtp5gnl.so.0.1.1 /home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib/libgtp5gnl.so.0.1.1 libtool: install: (cd /home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib && { ln -s -f libgtp5gnl.so.0.1.1 libgtp5gnl.so.0 || { rm -f libgtp5gnl.so.0 && ln -s libgtp5gnl.so.0.1.1 libgtp5gnl.so.0; }; }) libtool: install: (cd /home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib && { ln -s -f libgtp5gnl.so.0.1.1 libgtp5gnl.so || { rm -f libgtp5gnl.so && ln -s libgtp5gnl.so.0.1.1 libgtp5gnl.so; }; }) libtool: install: /usr/bin/install -c .libs/libgtp5gnl.lai /home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib/libgtp5gnl.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib

Libraries have been installed in: /home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib

If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following:

See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages.

make[6]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/src' make[5]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/src' Making install in include make[5]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include' Making install in libgtp5gnl make[6]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include/libgtp5gnl' make[7]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include/libgtp5gnl' /usr/bin/mkdir -p '/home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/include/libgtp5gnl' /usr/bin/install -c -m 644 gtp5g.h gtp5gnl.h '/home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/include/libgtp5gnl' make[7]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include/libgtp5gnl' make[6]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include/libgtp5gnl' Making install in linux make[6]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include/linux' make[6]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include/linux' make[6]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include' make[6]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include' make[5]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/include' Making install in tools make[5]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/tools' make[5]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl/tools' make[5]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' make[6]: Entering directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' /usr/bin/mkdir -p '/home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib/pkgconfig' /usr/bin/install -c -m 644 libgtp5gnl.pc '/home/sivanesh/my5G-core/src/upf/build/updk/src/third_party/libgtp5gnl/lib/pkgconfig' make[6]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' make[5]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' make[4]: Leaving directory '/home/sivanesh/my5G-core/src/upf/updk/src/third_party/libgtp5gnl' make[3]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' [ 8%] Built target libgtp5gnl make[2]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' make[1]: [Makefile:91: all] Error 2 make[1]: Leaving directory '/home/sivanesh/my5G-core/src/upf/build' make: [Makefile:36: upf] Error 2

I compiled gtp5G successfully but still facing same issue

image