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

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

Open
zqb-all opened this issue Oct 28, 2023 · 0 comments

Comments

@zqb-all
Copy link

zqb-all commented Oct 28, 2023

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)
zengdage added a commit to zengdage/open64 that referenced this issue Jan 4, 2024
1. the be will crash if compile the code like that:
```
int sre_random(void)
{
  long  rnd1;
  static long  tbl[64];
  int i;
  for (i = 0; i < 64; i++) {
        tbl[i] = rnd1;
        if (tbl[i] < 0)
                tbl[i] += 0;
  }
  return 0;
}
```

Signed-off-by: Zhijin Zeng <[email protected]>
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