Skip to content

CSP 5.5.0+553 clang linker fails on OSX fails to link the MacOS static debug library #542

@kevinmagnopus

Description

@kevinmagnopus

Describe the bug

CSP 5.5.0+553 clang linker fails on OSX fails to link the MacOS static debug library. The linker error is:
ld: x86_64 slice extends beyond end of file in '/Users/kevin.mullican/Documents/src/ichabod/ichabod/lib_5.5.0/libConnectedSpacesPlatform_D.a' clang: error: linker command failed with exit code 1 (use -v to see invocation)

To Reproduce

Steps to reproduce the behavior:

  1. Create a simple C++ CSP project that references at least one CSP function
  2. Attempt to build and link the project with the MacOS static debug library
  3. Notice the link failure

Expected behaviour

Link should not fail, application should successfully link

Screenshots

c++ -o ichabod ichabod.o ichabod_utils.o csp_utils.o mime_types.o mailbox.o image_utils.o image_machine.o thread_base.o std_thread.o socket_thread.o netsock_thread.o filesock_thread.o csp_thread.o space_manager.o components_getset.o entity_manager.o user_manager.o -Wall -MD -L/opt/local/lib/openssl-1.1 -L/opt/homebrew/opt/curl/lib -L/opt/homebrew/opt/jpeg/lib -L/opt/homebrew/opt/libpng/lib -L/opt/homebrew/opt/giflib/lib -L/opt/homebrew/opt/libtiff/lib -L./lib -lpthread -lssl -lcrypto -lcurl -ljpeg -lpng -lgif -ltiff -lConnectedSpacesPlatform_D ld: x86_64 slice extends beyond end of file in '/Users/kevin.mullican/Documents/src/ichabod/ichabod/lib_5.5.0/libConnectedSpacesPlatform_D.a' clang: error: linker command failed with exit code 1 (use -v to see invocation)

CSP version (please complete the following information):

CSP Release 5.5.0+553

Language:

C++

Desktop (please complete the following information):

MacOS 14.6.1 (23G93)
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions