open64-compiler / open64

open64 compiler
78 stars 29 forks source link

[SPEC2006]### Compiler Error during Reading WHIRL file phase: ### OPCODE_make_op: no opcode available: 0 0 0 #38

Open zqb-all opened 1 year ago

zqb-all commented 1 year ago

spec2k6 456.hmmer build fail. one of the errors can be reproduce by the following code:

double sre_random(void)
{
    static long  rnd1;
    static long  rnd2;
    static long  tbl[64];
    int i;
    for (i = 0; i < 64; i++) {
        tbl[i] = rnd1-rnd2;
        if (tbl[i] < 0)
            tbl[i] += 1;
    }
    return 0;
}

error:

2023-10-28 12:11:31,364 - xcalcc - ERROR - ### Assertion failure at line 223 of /root/ci/workspace/open64_version_build/open64/build/../osprey/common/com/opcode.h:
### Compiler Error during Reading WHIRL file phase:
### OPCODE_make_op: no opcode available: 0 0 0
Support Message:
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/w2ll() [0x17d3258]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/w2ll() [0x17d331d]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/w2ll(Fail_FmtAssertion+0x2c2) [0x17d50eb]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/w2ll(OPCODE_make_op+0x68) [0x485b2b]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/w2ll(_Z9WN_opcodePK2WN+0x3c) [0x4870dc]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/be.so(IPA_WN_MAP_Set+0x4c) [0x7fded7458f1e]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/be.so(_ZN22ARRAY_DIRECTED_GRAPH1610Add_VertexEP2WN+0x6c) [0x7fded72f21a4]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/be.so(Depgraph_Read+0xe6) [0x7fded72f1c09]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/be.so(_Z15WN_get_depgraphPvP7pu_info+0x140) [0x7fded741aad5]
    /open64//bin/../lib/gcc-lib/x86_64-open64-linux/5.0/be.so(_Z15Read_Local_InfoP8mem_poolP7pu_info+0x2d5) [0x7fded741b40e]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/w2ll() [0x47c9b7]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/w2ll() [0x47ddec]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fded6950083]
    /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/w2ll() [0x468da5] (xcalcc:583)