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

dmd 2.102.2 doesn't compile on macos #8

Open
PetarKirov opened this issue Sep 24, 2023 · 0 comments
Open

dmd 2.102.2 doesn't compile on macos #8

PetarKirov opened this issue Sep 24, 2023 · 0 comments

Comments

@PetarKirov
Copy link
Owner

See: https://github.com/PetarKirov/dlang-nix/actions/runs/6291202903/job/17079346714

During the checkPhase of dmd, the following two test cases fail to link on macOS:

dmd>  ... runnable/objc_class.d          -L-framework -LFoundation  -fPIC (-inline -release -g -O)
dmd> ==============================
dmd> Test 'runnable/objc_class.d' failed. The logged output:
dmd> clang -m64 -c runnable/extra-files/objc_class.m -o test_results/runnable/objc_class.m.o
dmd> /private/tmp/nix-build-dmd-2.102.2.drv-0/dmd/generated/osx/release/64/dmd -conf= -m64 -Irunnable -L-framework -LFoundation  -fPIC  -odtest_results/runnable -oftest_results/runnable/objc_class_0  runnable/objc_class.d test_results/runnable/objc_class.m.o
dmd> Undefined symbols for architecture x86_64:
dmd>   "_objc_alloc_init", referenced from:
dmd>       _callFooInstanceMethod in objc_class.m.o
dmd> ld: symbol(s) not found for architecture x86_64
dmd> clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
dmd> Error: linker exited with status 1
dmd> ==============================
dmd> Test 'runnable/objc_class.d' failed: Expected rc == 0, but exited with rc == 1
dmd> >>> TARGET FAILED: runnable/objc_class.d
dmd>  ... runnable/objc_self_test.d      -L-framework -LFoundation  -fPIC (-inline -release -g -O)
dmd> ==============================
dmd> Test 'runnable/objc_self_test.d' failed. The logged output:
dmd> clang -m64 -c runnable/extra-files/objc_self_test.m -o test_results/runnable/objc_self_test.m.o
dmd> /private/tmp/nix-build-dmd-2.102.2.drv-0/dmd/generated/osx/release/64/dmd -conf= -m64 -Irunnable -L-framework -LFoundation  -fPIC  -odtest_results/runnable -oftest_results/runnable/objc_self_test_0  runnable/objc_self_test.d test_results/runnable/objc_self_test.m.o
dmd> Undefined symbols for architecture x86_64:
dmd>   "_objc_alloc_init", referenced from:
dmd>       _getValue in objc_self_test.m.o
dmd> ld: symbol(s) not found for architecture x86_64
dmd> clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
dmd> Error: linker exited with status 1
dmd> ==============================
dmd> Test 'runnable/objc_self_test.d' failed: Expected rc == 0, but exited with rc == 1
dmd> >>> TARGET FAILED: runnable/objc_self_test.d
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