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

global-offset-table test failed on x86_64 #693

Closed
ksco opened this issue Sep 4, 2022 · 5 comments
Closed

global-offset-table test failed on x86_64 #693

ksco opened this issue Sep 4, 2022 · 5 comments

Comments

@ksco
Copy link
Contributor

ksco commented Sep 4, 2022

# make test-arch TRIPLE=x86_64-linux-gnu MACHINE=x86_64
TEST_CC=x86_64-linux-gnu-gcc \
TEST_CXX=x86_64-linux-gnu-g++ \
TEST_GCC=x86_64-linux-gnu-gcc \
TEST_GXX=x86_64-linux-gnu-g++ \
OBJDUMP=x86_64-linux-gnu-objdump \
MACHINE=x86_64 \
QEMU="qemu-x86_64 -L /usr/x86_64-linux-gnu" \
make test/elf/global-offset-table.sh
make[1]: Entering directory '/mold'
Testing global-offset-table ... qemu: uncaught target signal 4 (Illegal instruction) - core dumped
OK
@rui314
Copy link
Owner

rui314 commented Sep 5, 2022

Please make sure that your qemu isn't too old.

@ksco
Copy link
Contributor Author

ksco commented Sep 5, 2022

I noticed this last night, but I haven't looked into it yet. I don't know if it's because of the qemu version, but seems it's happening in our CI too: https://github.com/rui314/mold/runs/8182926219?check_suite_focus=true#step:6:296

@rui314
Copy link
Owner

rui314 commented Sep 5, 2022

Interesting. It seems like a GCC's bug, so I reported to GCC developrs.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106834

@rui314
Copy link
Owner

rui314 commented Sep 5, 2022

Yet another GCC issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106835

@rui314
Copy link
Owner

rui314 commented Sep 5, 2022

I implemented a workaround in bb0e601.

@rui314 rui314 closed this as completed Sep 5, 2022
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

2 participants