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

Unable to use LLVM 15.0.6 in sdk v0.29 and 15.0.7 in sdk v0.30 #101

Open
jpmcb opened this issue Mar 4, 2023 · 2 comments
Open

Unable to use LLVM 15.0.6 in sdk v0.29 and 15.0.7 in sdk v0.30 #101

jpmcb opened this issue Mar 4, 2023 · 2 comments

Comments

@jpmcb
Copy link
Contributor

jpmcb commented Mar 4, 2023

Image I'm using:

In v0.29 of the sdk, which uses LLVM 15.0.6 and in v0.30 of the sdk which uses LLVM 15.0.7, users found missing symbols:

readelf -a /*-bottlerocket-linux-musl/sys-root/usr/lib/libunwind.a | grep unw_getcontext

# 0.28.0 output
000000000720  00280000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
000000000a5c  00280000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
000000000b28  00280000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
    40: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND __unw_getcontext
0000000001c4  00240000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
000000000294  00240000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
00000000045c  00240000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
    36: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND __unw_getcontext
     6: 0000000000000000     0 FUNC    GLOBAL HIDDEN     1 __unw_getcontext
     7: 0000000000000000     0 FUNC    WEAK   DEFAULT    1 unw_getcontext

# 0.29.0 output
000000000720  00290000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
000000000a4c  00290000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
000000000b18  00290000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
    41: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND __unw_getcontext
0000000001c4  00250000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
000000000294  00250000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
00000000045c  00250000011b R_AARCH64_CALL26  0000000000000000 __unw_getcontext + 0
    37: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND __unw_getcontext

Notice the final two lines are missing in the v0.29 version of the sdk

GLOBAL HIDDEN     1 __unw_getcontext
     7: 0000000000000000     0 FUNC    WEAK   DEFAULT    1 unw_getcontext

(Shout out to @bcressey for getting this figured out!)

Related to #100

Issue or Feature Request:

Investigate what's going on with the newer versions of LLVM and why we are having trouble using them.

@stmcginnis
Copy link
Contributor

Any idea if this is still an issue with v0.32.0?

@jpmcb
Copy link
Contributor Author

jpmcb commented May 18, 2023

Likely.

We're still on llvm 14.0.6:

# https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/llvm-14.0.6.src.tar.xz

which was downgraded when we last tried to bump llvm for v0.30: #100

If we want to bump llvm, we'll need to pull in the new version and try to figure out what's missing so we can use it with the rest of the sdk.

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