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

error: expected absolute expression #43140

Closed
jcai19 opened this issue Oct 24, 2019 · 6 comments
Closed

error: expected absolute expression #43140

jcai19 opened this issue Oct 24, 2019 · 6 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla mc Machine (object) code

Comments

@jcai19
Copy link
Member

jcai19 commented Oct 24, 2019

Bugzilla Link 43795
Resolution FIXED
Resolved on Dec 17, 2020 17:04
Version trunk
OS Linux

Extended Description

While building Linux kernel for 32-bit ARM with LLVM's integrated assembler, I ran into the following error:

$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j32 CC=clang AS=clang arch/arm/mm/proc-v7.o

arch/arm/mm/proc-v7.S:169:143: error: expected absolute expression
.pushsection ".alt.smp.init", "a" ; .long 9998b ;9997: orr r1, r1, #((1 << 0) | (1 << 6))|(3 << 3) ; .if . - 9997b == 2 ; nop ; .endif ; .if . - 9997b != 4 ; .error "ALT_UP() content must assemble to exactly 4 bytes"; .endif ; .popsection

The reason is in "if . - 9997b == 2" directive the temporary label created for the dot symbol and 9997 get assigned to two adjacent MCFragments in the same MCSection.

@jcai19
Copy link
Member Author

jcai19 commented Oct 24, 2019

assigned to @jcai19

@jcai19
Copy link
Member Author

jcai19 commented Oct 24, 2019

@jcai19
Copy link
Member Author

jcai19 commented Jan 27, 2020

1 similar comment
@jcai19
Copy link
Member Author

jcai19 commented Jan 27, 2020

@jcai19
Copy link
Member Author

jcai19 commented Jan 27, 2020

Please ignore my last comment. It was supposed to be for a different bug.

@jcai19
Copy link
Member Author

jcai19 commented Dec 18, 2020

https://reviews.llvm.org/D69411 accepted and merged.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla mc Machine (object) code
Projects
None yet
Development

No branches or pull requests

1 participant