PopcornFX / O3DEPopcornFXPlugin

PopcornFX plugin for O3DE
https://www.popcornfx.com/
Other
13 stars 12 forks source link

Linker errors when building debug #62

Closed spham-amzn closed 1 year ago

spham-amzn commented 1 year ago

When building the O3DE Multiplayer sample in debug, the following linker error occurs

usr/bin/ld: /home/o3de/.o3de/3rdParty/packages/PopcornFX-2.15.4-O3DE-linux/PopcornFX/Runtime/bin/O3DE/gmake_linux_x64/libPK-Runtime_d.a(callstack_symbol_unix.o): in function `PopcornFX::CBFD::CBFD()':
/data/data0/popcorn-buildbot/worker/worker/builddir/full-rebuild/source_tree/projects/O3DE_linux/../../Runtime/pk_kernel/layer_0/kr_callstack/callstack_symbol_unix.cpp:126: undefined reference to `bfd_init'
/usr/bin/ld: /home/o3de/.o3de/3rdParty/packages/PopcornFX-2.15.4-O3DE-linux/PopcornFX/Runtime/bin/O3DE/gmake_linux_x64/libPK-Runtime_d.a(callstack_symbol_unix.o): in function `PopcornFX::CBFD::Close()':
/data/data0/popcorn-buildbot/worker/worker/builddir/full-rebuild/source_tree/projects/O3DE_linux/../../Runtime/pk_kernel/layer_0/kr_callstack/callstack_symbol_unix.cpp:143: undefined reference to `bfd_close'
/usr/bin/ld: /home/o3de/.o3de/3rdParty/packages/PopcornFX-2.15.4-O3DE-linux/PopcornFX/Runtime/bin/O3DE/gmake_linux_x64/libPK-Runtime_d.a(callstack_symbol_unix.o): in function `PopcornFX::CBFD::Open(char const*, void*)':
/data/data0/popcorn-buildbot/worker/worker/builddir/full-rebuild/source_tree/projects/O3DE_linux/../../Runtime/pk_kernel/layer_0/kr_callstack/callstack_symbol_unix.cpp:156: undefined reference to `bfd_openr'
/usr/bin/ld: /data/data0/popcorn-buildbot/worker/worker/builddir/full-rebuild/source_tree/projects/O3DE_linux/../../Runtime/pk_kernel/layer_0/kr_callstack/callstack_symbol_unix.cpp:164: undefined reference to `bfd_check_format'
/usr/bin/ld: /home/o3de/.o3de/3rdParty/packages/PopcornFX-2.15.4-O3DE-linux/PopcornFX/Runtime/bin/O3DE/gmake_linux_x64/libPK-Runtime_d.a(callstack_symbol_unix.o): in function `PopcornFX::CBFD::TranslateAddressFile(void*, char*, unsigned int, unsigned int&)':
/data/data0/popcorn-buildbot/worker/worker/builddir/full-rebuild/source_tree/projects/O3DE_linux/../../Runtime/pk_kernel/layer_0/kr_callstack/callstack_symbol_unix.cpp:242: undefined reference to `bfd_map_over_sections'
/usr/bin/ld: /home/o3de/.o3de/3rdParty/packages/PopcornFX-2.15.4-O3DE-linux/PopcornFX/Runtime/bin/O3DE/gmake_linux_x64/libPK-Runtime_d.a(callstack_symbol_unix.o): in function `PopcornFX::CBFD::TranslateAddressFunction(void*, char*, unsigned int)':
/data/data0/popcorn-buildbot/worker/worker/builddir/full-rebuild/source_tree/projects/O3DE_linux/../../Runtime/pk_kernel/layer_0/kr_callstack/callstack_symbol_unix.cpp:272: undefined reference to `bfd_map_over_sections'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This does not happen in profile builds

ValPKFX commented 1 year ago

This is linked to this issue https://github.com/PopcornFX/O3DEPopcornFXPlugin/issues/55. I see you are using the 2.15.4 version of the gem. This was fixed in the 2.15.11 release that you can find on the v2.15-LTS branch. The fix is also on the main branch.