free5gc / gtp5g

GTP-U Linux Kernel Module
GNU General Public License v2.0
53 stars 63 forks source link

Error compiling gtp5g #123

Open rohitgec opened 1 week ago

rohitgec commented 1 week ago

Hi,

I am running ubuntu 22.04.3 with kernel version: 6.8.0-40-generic

When I run make, I get the error below. Can someone please help?

Skipping BTF generation for /home/rohit/rohit/free5gC/gtp5g/gtp5g.ko due to unavailability of vmlinux

see complete log below,

rohit@rohit-Latitude-E5470:~/rohit/free5gC/gtp5g$ git checkout master Previous HEAD position was 0ec0084 update DRV_VERSION to v0.9.2 Switched to branch 'master' Your branch is up to date with 'origin/master'. rohit@rohit-Latitude-E5470:~/rohit/free5gC/gtp5g$ make clean make -C /lib/modules/6.8.0-40-generic/build M=/home/rohit/rohit/free5gC/gtp5g clean make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic' make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic' rohit@rohit-Latitude-E5470:~/rohit/free5gC/gtp5g$ make make -C /lib/modules/6.8.0-40-generic/build M=/home/rohit/rohit/free5gC/gtp5g modules make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 CC [M] /home/rohit/rohit/free5gC/gtp5g/src/gtp5g.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/log.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/util.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/gtpu/dev.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/gtpu/encap.o /home/rohit/rohit/free5gC/gtp5g/src/gtpu/encap.c:550:6: warning: no previous prototype for ‘increment_and_check_counter’ [-Wmissing-prototypes] 550 | bool increment_and_check_counter(struct VolumeMeasurement *volmeasure, struct Volume *volume, u64 vol, bool uplink, bool mnop){ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/rohit/rohit/free5gC/gtp5g/src/gtpu/encap.c:591:5: warning: no previous prototype for ‘update_urr_counter_and_send_report’ [-Wmissing-prototypes] 591 | int update_urr_counter_and_send_report(struct pdr *pdr, struct far *far, u64 vol, u64 vol_mbqe, bool uplink) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /home/rohit/rohit/free5gC/gtp5g/src/gtpu/hash.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/gtpu/link.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/gtpu/net.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/gtpu/pktinfo.o /home/rohit/rohit/free5gC/gtp5g/src/gtpu/pktinfo.c:16:5: warning: no previous prototype for ‘network_and_transport_header_len’ [-Wmissing-prototypes] 16 | u64 network_and_transport_header_len(struct sk_buff *skb) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/rohit/rohit/free5gC/gtp5g/src/gtpu/pktinfo.c:129:16: warning: no previous prototype for ‘ip4_find_route_simple’ [-Wmissing-prototypes] 129 | struct rtable *ip4_find_route_simple(struct sk_buff *skb, | ^~~~~~~~~~~~~~~~~~~~~ CC [M] /home/rohit/rohit/free5gC/gtp5g/src/gtpu/trTCM.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/genl/genl.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/genl/genl_version.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/genl/genl_pdr.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/genl/genl_far.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/genl/genl_qer.o /home/rohit/rohit/free5gC/gtp5g/src/genl/genl_qer.c:297:5: warning: no previous prototype for ‘concat_bit_rate’ [-Wmissing-prototypes] 297 | u64 concat_bit_rate(u32 highbit, u8 lowbit) { | ^~~~~~~~~~~~~~~ CC [M] /home/rohit/rohit/free5gC/gtp5g/src/genl/genl_urr.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/genl/genl_report.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/genl/genl_bar.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/pfcp/api_version.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/pfcp/pdr.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/pfcp/far.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/pfcp/qer.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/pfcp/urr.o /home/rohit/rohit/free5gC/gtp5g/src/pfcp/urr.c:12:6: warning: no previous prototype for ‘seid_urr_id_to_hex_str’ [-Wmissing-prototypes] 12 | void seid_urr_id_to_hex_str(u64 seid_int, u32 urr_id, char *buff) | ^~~~~~~~~~~~~~~~~~~~~~ CC [M] /home/rohit/rohit/free5gC/gtp5g/src/pfcp/bar.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/pfcp/seid.o CC [M] /home/rohit/rohit/free5gC/gtp5g/src/proc.o LD [M] /home/rohit/rohit/free5gC/gtp5g/gtp5g.o MODPOST /home/rohit/rohit/free5gC/gtp5g/Module.symvers CC [M] /home/rohit/rohit/free5gC/gtp5g/gtp5g.mod.o LD [M] /home/rohit/rohit/free5gC/gtp5g/gtp5g.ko BTF [M] /home/rohit/rohit/free5gC/gtp5g/gtp5g.ko **Skipping BTF generation for /home/rohit/rohit/free5gC/gtp5g/gtp5g.ko due to unavailability of vmlinux** make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic' rohit@rohit-Latitude-E5470:~/rohit/free5gC/gtp5g$