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

undefined symbol: __cxa_thread_atexit_impl #255

Open
barisyild opened this issue Nov 2, 2023 · 0 comments
Open

undefined symbol: __cxa_thread_atexit_impl #255

barisyild opened this issue Nov 2, 2023 · 0 comments

Comments

@barisyild
Copy link

barisyild commented Nov 2, 2023

ld.lld -o Main -m elf_x86_64 -pie --script /home/ubuntu/OpenOrbis/PS4Toolchain/link.x --eh-frame-hdr -L/home/ubuntu/OpenOrbis/PS4Toolchain/lib -lc -lkernel -lc++ -lSceVideoOut /home/ubuntu/OpenOrbis/PS4Toolchain/lib/crt1.o @obj/linux64/all_objs

The above command returns the following error.

ld.lld: error: undefined symbol: __cxa_thread_atexit_impl
> referenced by cxa_thread_atexit.cpp
> >>>               cxa_thread_atexit.cpp.o:(__cxa_thread_atexit) in archive /home/ubuntu/OpenOrbis/PS4Toolchain/lib/libc++.a
> Error: Error while running command

To solve the build problem, if I copy the orbisdev/usr/libc_stub.so file from orbisdev, another toolchain, to the OpenOrbis/PS4Toolchain/lib directory and add the -lc_stub parameter to the linker, it compiles, but this time the program crashing, I explained this detail to make it easier to understand the problem.

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