Skip to content

Linker issues #7

@urherenow

Description

@urherenow

latest DKP and libs and latest source here does not build. Linker fails with tons of undefined references. Nothing wrong with my setup as other projects build just fine.

Small example:

/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.2.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/portlibs/switch/lib/libEGL.a(nv50_ir_emit_gk110.o):nv50_ir_emit_gk110.cpp:(.text._ZN7nv50_ir16CodeEmitterGK11014setImmediate32EPKNS_11InstructionEiNS_8ModifierE+0x268): more undefined references to operator delete(void*)' follow /opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.2.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/portlibs/switch/lib/libEGL.a(nv50_ir_emit_gk110.o):(.data.rel.ro._ZTIN7nv50_ir16CodeEmitterGK110E[_ZTIN7nv50_ir16CodeEmitterGK110E]+0x0): undefined reference to vtable for __cxxabiv1::__si_class_type_info'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.2.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/libnx/lib/libnx.a(thread.o): in function threadCreate': /home/fincs/pacman-packages/libnx/src/source/kernel/thread.c:48: undefined reference to __tls_start'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.2.0/../../../../aarch64-none-elf/bin/ld: /home/fincs/pacman-packages/libnx/src/source/kernel/thread.c:48: undefined reference to __tls_end' /opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.2.0/../../../../aarch64-none-elf/bin/ld: /home/fincs/pacman-packages/libnx/src/source/kernel/thread.c:48: undefined reference to __tls_end'

and by the way... why is it showing /home/fincs...? Does not exist in my setup. Mistake in libnx?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions