Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling gtp5g #123

Open
rohitgec opened this issue Nov 5, 2024 · 0 comments
Open

Error compiling gtp5g #123

rohitgec opened this issue Nov 5, 2024 · 0 comments

Comments

@rohitgec
Copy link

rohitgec commented Nov 5, 2024

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$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant