[srslte-users] srsEPC on 32 bit platforms
Andre Puschmann
andre.puschmann at softwareradiosystems.com
Tue Apr 24 07:50:58 UTC 2018
Harsha,
we'll look into this on a similar platform and get back to you then.
Thanks
Andre
On 23/04/18 20:45, Harsha Chenji wrote:
> We are trying to put srsEPC on a Beaglebone Black. We got it to compile,
> but the IMSI sent by the UE is incorrect. I suspect this is due to a
> 32-bit armv7l platform...I also see the following compile errors. The
> same code works fine on a x64 machine. Has anyone tried to run srspec on
> x32?
>
>
> Scanning dependencies of target srsepc_sgw
> [ 96%] Building CXX object
> srsepc/src/spgw/CMakeFiles/srsepc_sgw.dir/spgw.cc.o
> /home/debian/srsLTE/srsepc/src/spgw/spgw.cc: In member function ‘void
> srsepc::spgw::stop()’:
> /home/debian/srsLTE/srsepc/src/spgw/spgw.cc:149:82: warning: format
> ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has
> type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_spgw_log->info("Deleting SP-GW GTP-C Tunnel. IMSI: %lu\n",
> it->second->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/spgw/spgw.cc:150:85: warning: format
> ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has
> type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_spgw_log->console("Deleting SP-GW GTP-C Tunnel. IMSI: %lu\n",
> it->second->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/spgw/spgw.cc: In member function ‘void
> srsepc::spgw::handle_create_session_request(srslte::gtpc_create_session_request*,
> srslte::gtpc_pdu*)’:
> /home/debian/srsLTE/srsepc/src/spgw/spgw.cc:509:94: warning: format
> ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has
> type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_spgw_log->console("SPGW: GTP-C context for IMSI %015lu already
> exists.\n", cs_req->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/spgw/spgw.cc: In member function ‘void
> srsepc::spgw::handle_modify_bearer_request(srslte::gtpc_pdu*,
> srslte::gtpc_pdu*)’:
> /home/debian/srsLTE/srsepc/src/spgw/spgw.cc:576:79: warning: format
> ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has
> type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_spgw_log->info("IMSI: %lu, UE IP, %s \n",tunnel_ctx->imsi,
> inet_ntoa(addr));
>
> ^
> [ 96%] Linking CXX static library libsrsepc_sgw.a
> [ 96%] Built target srsepc_sgw
> Scanning dependencies of target srsepc_mme
> [ 97%] Building CXX object srsepc/src/mme/CMakeFiles/srsepc_mme.dir/mme.cc.o
> [ 97%] Building CXX object
> srsepc/src/mme/CMakeFiles/srsepc_mme.dir/mme_gtpc.cc.o
> /home/debian/srsLTE/srsepc/src/mme/mme_gtpc.cc: In member function ‘void
> srsepc::mme_gtpc::handle_create_session_response(srslte::gtpc_pdu*)’:
> /home/debian/srsLTE/srsepc/src/mme/mme_gtpc.cc:223:75: warning: format
> ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has
> type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_mme_gtpc_log->error("Could not find UE context. IMSI %015lu\n",
> imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/mme_gtpc.cc:231:106: warning: format
> ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has
> type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_mme_gtpc_log->console("SPGW Allocated IP %s to ISMI
> %015lu\n",inet_ntoa(emm_ctx->ue_ip),emm_ctx->imsi);
>
> ^
> [ 98%] Building CXX object
> srsepc/src/mme/CMakeFiles/srsepc_mme.dir/s1ap.cc.o
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc: In member function ‘void
> srsepc::s1ap::stop()’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc:124:77: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘long long unsigned int’ [-Wformat=]
> m_s1ap_log->info("Deleting UE EMM context. IMSI: %015lu\n",
> ue_it->first);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc:125:80: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘long long unsigned int’ [-Wformat=]
> m_s1ap_log->console("Deleting UE EMM context. IMSI: %015lu\n",
> ue_it->first);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc: In member function ‘bool
> srsepc::s1ap::add_ue_ctx_to_imsi_map(srsepc::ue_ctx_t*)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc:355:84: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->error("UE Context already exists. IMSI
> %015lu",ue_ctx->emm_ctx.imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc:368:91: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->debug("Saved UE context corresponding to IMSI
> %015lu\n",ue_ctx->emm_ctx.imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc: In member function ‘bool
> srsepc::s1ap::add_ue_ctx_to_mme_ue_s1ap_id_map(srsepc::ue_ctx_t*)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc:383:94: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->error("UE Context already exists. MME UE S1AP Id
> %015lu",ue_ctx->emm_ctx.imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc: In member function ‘uint32_t
> srsepc::s1ap::allocate_m_tmsi(uint64_t)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap.cc:550:74: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 4 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->debug("Allocated M-TMSI 0x%x to IMSI %015lu,\n",m_tmsi,imsi);
> ^
> [ 98%] Building CXX object
> srsepc/src/mme/CMakeFiles/srsepc_mme.dir/s1ap_ctx_mngmt_proc.cc.o
> [ 98%] Building CXX object
> srsepc/src/mme/CMakeFiles/srsepc_mme.dir/s1ap_mngmt_proc.cc.o
> [ 99%] Building CXX object
> srsepc/src/mme/CMakeFiles/srsepc_mme.dir/s1ap_nas_transport.cc.o
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc: In member
> function ‘bool
> srsepc::s1ap_nas_transport::handle_nas_imsi_attach_request(uint32_t,
> const LIBLTE_MME_ATTACH_REQUEST_MSG_STRUCT&, const
> LIBLTE_MME_PDN_CONNECTIVITY_REQUEST_MSG_STRUCT&, srslte::byte_buffer_t*,
> bool*, sctp_sndrcvinfo*)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:455:72:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("Attach request -- IMSI: %015lu\n", emm_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:456:69:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("Attach request -- IMSI: %015lu\n", emm_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:491:70:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("User not found. IMSI %015lu\n",emm_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:492:67:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("User not found. IMSI %015lu\n",emm_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc: In member
> function ‘bool
> srsepc::s1ap_nas_transport::handle_nas_guti_attach_request(uint32_t,
> const LIBLTE_MME_ATTACH_REQUEST_MSG_STRUCT&, const
> LIBLTE_MME_PDN_CONNECTIVITY_REQUEST_MSG_STRUCT&, srslte::byte_buffer_t*,
> srslte::byte_buffer_t*, bool*, sctp_sndrcvinfo*)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:592:74:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("Attach request -- IMSI: %015lu\n", ecm_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:593:71:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("Attach request -- IMSI: %015lu\n", ecm_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:622:70:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘long long unsigned int’ [-Wformat=]
> m_s1ap_log->console("Attach Request -- IMSI: %015lu\n",it->second);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:629:171:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("Found UE context. IMSI: %015lu, old eNB UE
> S1ap Id %d, old MME UE S1AP Id %d\n",emm_ctx->imsi,
> ecm_ctx->enb_ue_s1ap_id, ecm_ctx->mme_ue_s1ap_id);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:669:78:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("Attach request -- IMSI: %015lu\n",
> ecm_ctx->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:670:75:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("Attach request -- IMSI: %015lu\n",
> ecm_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:759:78:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("User not found. IMSI
> %015lu\n",emm_ctx->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:760:75:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("User not found. IMSI
> %015lu\n",emm_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc: In member
> function ‘bool
> srsepc::s1ap_nas_transport::handle_nas_detach_request(srslte::byte_buffer_t*,
> srsepc::ue_ctx_t*, srslte::byte_buffer_t*, bool*)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:927:76:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("Detach request -- IMSI %015lu",
> ue_ctx->emm_ctx.imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:928:73:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("Detach request -- IMSI %015lu", ue_ctx->emm_ctx.imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc: In member
> function ‘bool
> srsepc::s1ap_nas_transport::handle_nas_authentication_response(srslte::byte_buffer_t*,
> srsepc::ue_ctx_t*, srslte::byte_buffer_t*, bool*)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:981:80:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("Authentication Response -- IMSI %015lu\n",
> emm_ctx->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc: In member
> function ‘bool
> srsepc::s1ap_nas_transport::handle_nas_security_mode_complete(srslte::byte_buffer_t*,
> srsepc::ue_ctx_t*, srslte::byte_buffer_t*, bool*)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1049:82:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("Security Mode Command Complete -- IMSI: %lu\n",
> emm_ctx->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1050:85:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("Security Mode Command Complete -- IMSI: %lu\n",
> emm_ctx->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc: In member
> function ‘bool
> srsepc::s1ap_nas_transport::handle_identity_response(srslte::byte_buffer_t*,
> srsepc::ue_ctx_t*, srslte::byte_buffer_t*, bool*)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1169:57:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("Id Response -- IMSI: %015lu\n", imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1170:60:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("Id Response -- IMSI: %015lu\n", imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1179:61:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("User not found. IMSI %015lu\n",imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1180:58:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("User not found. IMSI %015lu\n",imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc: In member
> function ‘bool
> srsepc::s1ap_nas_transport::handle_authentication_failure(srslte::byte_buffer_t*,
> srsepc::ue_ctx_t*, srslte::byte_buffer_t*, bool*)’:
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1377:83:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("Resynchronization failed. IMSI %015lu\n",
> emm_ctx->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1378:80:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("Resynchronization failed. IMSI %015lu\n",
> emm_ctx->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1384:73:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->console("User not found. IMSI %015lu\n", emm_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/mme/s1ap_nas_transport.cc:1385:70:
> warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but
> argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_s1ap_log->info("User not found. IMSI %015lu\n", emm_ctx->imsi);
> ^
> [ 99%] Linking CXX static library libsrsepc_mme.a
> [ 99%] Built target srsepc_mme
> Scanning dependencies of target srsepc_hss
> [ 99%] Building CXX object srsepc/src/hss/CMakeFiles/srsepc_hss.dir/hss.cc.o
> /home/debian/srsLTE/srsepc/src/hss/hss.cc: In member function ‘void
> srsepc::hss::stop()’:
> /home/debian/srsLTE/srsepc/src/hss/hss.cc:111:85: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_hss_log->info("Deleting UE context in HSS. IMSI: %015lu\n",
> it->second->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/hss/hss.cc:112:88: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_hss_log->console("Deleting UE context in HSS. IMSI: %015lu\n",
> it->second->imsi);
>
> ^
> /home/debian/srsLTE/srsepc/src/hss/hss.cc: In member function ‘bool
> srsepc::hss::read_db_file(std::__cxx11::string)’:
> /home/debian/srsLTE/srsepc/src/hss/hss.cc:170:74: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_hss_log->debug("Added user from DB, IMSI: %015lu\n", ue_ctx->imsi);
> ^
> /home/debian/srsLTE/srsepc/src/hss/hss.cc: In member function ‘bool
> srsepc::hss::get_k_amf_op_sqn(uint64_t, uint8_t*, uint8_t*, uint8_t*,
> uint8_t*)’:
> /home/debian/srsLTE/srsepc/src/hss/hss.cc:534:58: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_hss_log->info("User not found. IMSI: %015lu\n",imsi);
> ^
> /home/debian/srsLTE/srsepc/src/hss/hss.cc:535:61: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_hss_log->console("User not found. IMSI: %015lu\n",imsi);
> ^
> /home/debian/srsLTE/srsepc/src/hss/hss.cc:539:45: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_hss_log->info("Found User %015lu\n",imsi);
> ^
> /home/debian/srsLTE/srsepc/src/hss/hss.cc: In member function ‘bool
> srsepc::hss::get_ue_ctx(uint64_t, srsepc::hss_ue_ctx_t**)’:
> /home/debian/srsLTE/srsepc/src/hss/hss.cc:627:58: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
> m_hss_log->info("User not found. IMSI: %015lu\n",imsi);
>
>
>
> _______________________________________________
> srslte-users mailing list
> srslte-users at lists.softwareradiosystems.com
> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
>
More information about the srsran-users
mailing list