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

GC_jmp_buf is defined *everywhere* #112

Open
rice7th opened this issue May 1, 2024 · 0 comments
Open

GC_jmp_buf is defined *everywhere* #112

rice7th opened this issue May 1, 2024 · 0 comments

Comments

@rice7th
Copy link

rice7th commented May 1, 2024

So for some reason, once I try to compile with make, using both ld, lld and even mold, I get a lot of duplicate GC_jmp_buf symbols:

Mold output:

mold: error: duplicate symbol: liblv5.a(headers.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(obj_map.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(mark.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(mach_dep.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(reclaim.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(malloc.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(dyn_load.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(misc.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(finalize.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(mallocx.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(dbg_mlc.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(mark_rts.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(blacklst.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(alloc.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(os_dep.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf
mold: error: duplicate symbol: liblv5.a(new_hblk.c.o): liblv5.a(allchblk.c.o): GC_jmp_buf

The output is virtually the same for ld and lld.
My compiler is GCC 13.2.1, and I tried ld 2.42, lld 17.0.6 and mold 2.30.

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