Public bug reported:

kamailio FTBFS on riscv64 with an internal compiler error

gcc -fPIC -DPIC -pthread -DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time 
-D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration 
-fno-omit-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security 
-fno-stack-clash-protection 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/kamailio-6.0.5-1build1 
-DVERSION_NODATE   -DNAME='"kamailio"' -DVERSION='"6.0.5"' -DARCH='"riscv64"' 
-DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 15.2.0"' -D__CPU_riscv64 
-D__OS_linux -DVERSIONVAL=6000005 -DCFG_DIR='"/etc/kamailio/"' 
-DSHARE_DIR='"/usr/share/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' 
-DPKG_MALLOC -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE 
-DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLOCKLIST 
-DUSE_NAPTR -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY 
-DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DUSE_SCTP 
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL 
-DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM 
-DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN -DUSE_RAW_SOCKS -DUSE_PTHREAD_MUTEX 
-DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKAROUND -DUSE_FUTEX -DHAVE_SELECT  
-DWITH_EVENT_LOCAL_REQUEST -DMOD_NAME='"tm"' -DMOD_NAMEID='tm' -c uac.c -o uac.o
In file included from ../../core/atomic_ops.h:180,
                 from ../../core/locking.h:74,
                 from ../../core/rpc.h:36,
                 from ../../core/sr_module.h:38,
                 from tm_load.h:30,
                 from tm_load.c:25:
../../core/atomic/atomic_unknown.h:53:2: warning: #warning no native memory 
barrier implementations, falling back to slow lock based workaround [-Wcpp]
   53 | #warning no native memory barrier implementations, falling back to slow 
lock \
      |  ^~~~~~~
In file included from ../../core/atomic_ops.h:180,
                 from ../../core/locking.h:74,
                 from ../../core/tcp_conn.h:33,
                 from ../../core/forward.h:42,
                 from ut.h:39,
                 from uac.c:44:
../../core/atomic/atomic_unknown.h:53:2: warning: #warning no native memory 
barrier implementations, falling back to slow lock based workaround [-Wcpp]
   53 | #warning no native memory barrier implementations, falling back to slow 
lock \
      |  ^~~~~~~
t_lookup.c: In function ‘t_check_msg’:
t_lookup.c:1667:1: error: insn does not satisfy its constraints:
 1667 | }
      | ^
(insn 322 326 323 21 (prefetch (plus:DI (mem/f:DI (plus:DI (reg/f:DI 9 s1 
[orig:1233 p_msg ] [1233])
                    (const_int 504 [0x1f8])) [2 p_msg_509(D)->unparsed+0 S8 
A64])
            (const_int 64 [0x40]))
        (const_int 0 [0])
        (const_int 1 [0x1])) "t_lookup.c":1587:4 487 {prefetch}
     (nil))
during RTL pass: cprop_hardreg
t_lookup.c:1667:1: internal compiler error: in extract_constrain_insn, at 
recog.cc:2783
0x2526ac3 diagnostic_context::diagnostic_impl(rich_location*, 
diagnostic_metadata const*, diagnostic_option_id, char const*, void**, 
diagnostic_t)
        ???:0
0x2526e0b internal_error(char const*, ...)
        ???:0
0x5c81b5 fancy_abort(char const*, int, char const*)
        ???:0
0x5c650b _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
        ???:0
0x5c653b _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ???:0
0xace2b1 extract_constrain_insn(rtx_insn*)
        ???:0
Please submit a full bug report, with preprocessed source (by using 
-freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-15/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cc878vY8.out file, please attach this to 
your bugreport.

** Affects: kamailio (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ftbfs riscv64

** Tags added: riscv64

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2140316

Title:
  kamailio: FTBFS on riscv64 - ice

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kamailio/+bug/2140316/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to