Skip to content

fatal error: error in backend: Cannot select: intrinsic %llvm.x86.sse2.mfence #23611

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

Closed
llvmbot opened this issue Apr 15, 2015 · 3 comments
Closed
Labels
backend:X86 bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Member

llvmbot commented Apr 15, 2015

Bugzilla Link 23237
Resolution FIXED
Resolved on Sep 16, 2017 03:28
Version trunk
OS Linux
Blocks #22065
Attachments Preprocessed source, Run script
Reporter LLVM Bugzilla Contributor
CC @topperc,@RKSimon,@rnk

Extended Description

Using Building a coreboot [1] firmware image for an AGESA board like the ASRock E350M1, it fails with the following error.

Please note, that I needed to apply the patch with the work-around from bug 21538 [2] to get it past another error.

------ 8< ---- >8 ------
$ make
[…]
CC vendorcode/amd/agesa/f14/Lib/amdlib.libagesa.o
fatal error: error in backend: Cannot select: intrinsic %llvm.x86.sse2.mfence
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 3.7.0 (http://llvm.org/git/clang.git 111e330648f7da9910029bf4e1bc4547dbd8f43f) (http://llvm.org/git/llvm.git 058309b)
Target: i386--linux-elf
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:


PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/amdlib-8ab3eb.c
clang: note: diagnostic msg: /tmp/amdlib-8ab3eb.sh
clang: note: diagnostic msg:


Makefile:250: recipe for target 'build/vendorcode/amd/agesa/f14/Lib/amdlib.libagesa.o' failed
make: *** [build/vendorcode/amd/agesa/f14/Lib/amdlib.libagesa.o] Error 70
------ 8< ---- >8 ------

Please find amdlib-8ab3eb.c attached.

[1] http://www.coreboot.org
[2] https://llvm.org/bugs/show_bug.cgi?id=21538

@llvmbot
Copy link
Member Author

llvmbot commented Apr 15, 2015

Let this bug also block bug 21691 ([META] Compiling the Coreboot with clang) [1].

[1] https://llvm.org/bugs/show_bug.cgi?id=21691

@rnk
Copy link
Collaborator

rnk commented Apr 15, 2015

The -cc1 command enables SSE3 support ("-target-cpu" "k8-sse3"), so I would have expected this to work.

@topperc
Copy link
Collaborator

topperc commented Sep 15, 2017

I suspect this occured because mmx was disabled which used to automaticall disable SSE. That was fixed in r249733. That looks to be after 3.7 released.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:X86 bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

3 participants