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

sdlib compilation fails on mac (apple silicon) #277

Open
John-Colvin opened this issue Jun 30, 2023 · 0 comments
Open

sdlib compilation fails on mac (apple silicon) #277

John-Colvin opened this issue Jun 30, 2023 · 0 comments

Comments

@John-Colvin
Copy link
Contributor

Support for arm may be well away from being possible, idk. If so, perhaps specifying x64 somehow would help, as that would trigger rosetta for mac users.

% LLVM_CONFIG=/opt/homebrew/Cellar/llvm/16.0.6/bin/llvm-config make 
ldmd2 -c -of"obj/driver/sdc.o" "src/driver/sdc.d" -makedeps="obj/driver/sdc.o.deps" -m64 -Isrc -w -debug -g -Iimport
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
src/d/semantic/semantic.d(51): Deprecation: alias this for classes/interfaces is deprecated
src/d/llvm/evaluator.d(60): Deprecation: alias this for classes/interfaces is deprecated
src/d/llvm/datalayout.d(13): Deprecation: alias this for classes/interfaces is deprecated
ldmd2 -c -of"obj/sdc.o" src/sdc/config.d src/sdc/sdc.d -makedeps="obj/sdc.o.deps" -m64 -Isrc -w -debug -g -Iimport
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
src/d/semantic/semantic.d(51): Deprecation: alias this for classes/interfaces is deprecated
src/d/llvm/evaluator.d(60): Deprecation: alias this for classes/interfaces is deprecated
src/d/llvm/datalayout.d(13): Deprecation: alias this for classes/interfaces is deprecated
ar rcs "lib/libsdc.a" obj/sdc.o
ldmd2 -c -of"obj/libd.o" src/d/object.d src/d/common/builtintype.d src/d/common/node.d src/d/common/qualifier.d src/d/common/type.d src/d/ast/conditional.d src/d/ast/declaration.d src/d/ast/expression.d src/d/ast/identifier.d src/d/ast/statement.d src/d/ast/type.d src/d/ir/dscope.d src/d/ir/error.d src/d/ir/expression.d src/d/ir/instruction.d src/d/ir/symbol.d src/d/ir/type.d src/d/parser/adt.d src/d/parser/ambiguous.d src/d/parser/base.d src/d/parser/conditional.d src/d/parser/declaration.d src/d/parser/dmodule.d src/d/parser/dtemplate.d src/d/parser/expression.d src/d/parser/identifier.d src/d/parser/statement.d src/d/parser/type.d src/d/semantic/aliasthis.d src/d/semantic/caster.d src/d/semantic/closure.d src/d/semantic/datalayout.d src/d/semantic/declaration.d src/d/semantic/defaultinitializer.d src/d/semantic/dmodule.d src/d/semantic/dtemplate.d src/d/semantic/evaluator.d src/d/semantic/expression.d src/d/semantic/flow.d src/d/semantic/identifier.d src/d/semantic/mangler.d src/d/semantic/scheduler.d src/d/semantic/semantic.d src/d/semantic/sizeof.d src/d/semantic/statement.d src/d/semantic/symbol.d src/d/semantic/type.d src/d/semantic/typepromotion.d src/d/semantic/vrp.d -makedeps="obj/libd.o.deps" -m64 -Isrc -w -debug -g
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
src/d/semantic/semantic.d(51): Deprecation: alias this for classes/interfaces is deprecated
ar rcs "lib/libd.a" obj/libd.o
ldmd2 -c -of"obj/libd-llvm.o" src/d/llvm/backend.d src/d/llvm/codegen.d src/d/llvm/constant.d src/d/llvm/datalayout.d src/d/llvm/evaluator.d src/d/llvm/expression.d src/d/llvm/global.d src/d/llvm/intrinsic.d src/d/llvm/local.d src/d/llvm/runtime.d src/d/llvm/statement.d src/d/llvm/type.d import/llvm/c/target.d -makedeps="obj/libd-llvm.o.deps" -m64 -Isrc -w -debug -g -Iimport
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
src/d/semantic/semantic.d(51): Deprecation: alias this for classes/interfaces is deprecated
src/d/llvm/evaluator.d(60): Deprecation: alias this for classes/interfaces is deprecated
src/d/llvm/datalayout.d(13): Deprecation: alias this for classes/interfaces is deprecated
src/d/llvm/evaluator.d(382): Deprecation: foreach: loop index implicitly converted from `size_t` to `uint`
src/d/llvm/expression.d(438): Deprecation: foreach: loop index implicitly converted from `size_t` to `uint`
ar rcs "lib/libd-llvm.a" obj/libd-llvm.o
ldmd2 -c -of"obj/sdmd.o" sdlib/d/rt/eh.d sdlib/d/rt/object.d sdlib/d/rt/dwarf.d -makedeps="obj/sdmd.o.deps" -m64 -I/Users/john/dlang/ldc-1.33.0-beta2/bin/../import/ -Isdlib
ar rcs "lib/libsdmd.a" obj/sdmd.o
ldmd2 -c -of"obj/config.o" src/config/build.d src/config/hash.d src/config/heap.d src/config/jsonparser.d src/config/map.d src/config/traits.d src/config/value.d -makedeps="obj/config.o.deps" -m64 -Isrc -w -debug -g
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
ar rcs "lib/libconfig.a" obj/config.o
ldmd2 -c -of"obj/source.o" src/source/context.d src/source/decodedchar.d src/source/dlexer.d src/source/escapesequence.d src/source/exception.d src/source/jsonlexer.d src/source/lexbase.d src/source/lexermixin.d src/source/lexnumeric.d src/source/lexpreprocessor.d src/source/lexstring.d src/source/lexwhitespace.d src/source/location.d src/source/manager.d src/source/name.d src/source/packedfloat.d src/source/packedint.d src/source/parserutil.d src/source/swar/bin.d src/source/swar/comment.d src/source/swar/dec.d src/source/swar/hex.d src/source/swar/newline.d src/source/swar/oct.d src/source/swar/util.d src/source/util/ascii.d src/source/util/charset.d src/source/util/identifier.d src/source/util/lookup.d src/source/util/unicode_tables.d src/source/util/utf8.d -makedeps="obj/source.o.deps" -m64 -Isrc -w -debug -g
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
ar rcs "lib/libsource.a" obj/source.o
ldmd2 -c -of"obj/util.o" src/util/bitfields.d src/util/fastcast.d src/util/main.d src/util/math.d src/util/terminal.d src/util/visitor.d -makedeps="obj/util.o.deps" -m64 -Isrc -w -debug -g
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
ar rcs "lib/libutil.a" obj/util.o
ldmd2 -of"bin/sdc" obj/driver/sdc.o lib/libsdc.a lib/libd.a lib/libd-llvm.a lib/libsdmd.a lib/libconfig.a lib/libsource.a lib/libutil.a -m64 -Isrc -w -debug -g -Xcc=-L/Library/D/dmd/lib -Xcc=-lc++ -Xcc=-L/opt/homebrew/Cellar/llvm/16.0.6/lib -Xcc=-Wl,-search_paths_first -Xcc=-Wl,-headerpad_max_install_names -Xcc=-lLLVM-16
ld: warning: directory not found for option '-L/Library/D/dmd/lib'
ldmd2 -c -of"obj/driver/sdfmt.o" "src/driver/sdfmt.d" -makedeps="obj/driver/sdfmt.o.deps" -m64 -Isrc -w -debug -g -Iimport
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
ldmd2 -c -of"obj/format.o" src/format/chunk.d src/format/config.d src/format/parser.d src/format/rulevalues.d src/format/span.d src/format/writer.d -makedeps="obj/format.o.deps" -m64 -Isrc -w -debug -g
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
ar rcs "lib/libsdfmt.a" obj/format.o
ldmd2 -of"bin/sdfmt" obj/driver/sdfmt.o lib/libsdfmt.a lib/libconfig.a lib/libsource.a lib/libutil.a -m64 -Isrc -w -debug -g -Xcc=-L/Library/D/dmd/lib -Xcc=-lc++
ld: warning: directory not found for option '-L/Library/D/dmd/lib'
ldmd2 -c -of"obj/driver/sdunit.o" "src/driver/sdunit.d" -makedeps="obj/driver/sdunit.o.deps" -m64 -Isrc -w -debug -g -Iimport
src/source/context.d(17): Deprecation: alias this for classes/interfaces is deprecated
src/d/semantic/semantic.d(51): Deprecation: alias this for classes/interfaces is deprecated
src/d/llvm/evaluator.d(60): Deprecation: alias this for classes/interfaces is deprecated
src/d/llvm/datalayout.d(13): Deprecation: alias this for classes/interfaces is deprecated
ldmd2 -of"bin/sdunit" obj/driver/sdunit.o lib/libsdc.a lib/libd.a lib/libd-llvm.a lib/libsdmd.a lib/libconfig.a lib/libsource.a lib/libutil.a -m64 -Isrc -w -debug -g -Xcc=-L/Library/D/dmd/lib -Xcc=-lc++ -Xcc=-L/opt/homebrew/Cellar/llvm/16.0.6/lib -Xcc=-Wl,-search_paths_first -Xcc=-Wl,-headerpad_max_install_names -Xcc=-lLLVM-16
ld: warning: directory not found for option '-L/Library/D/dmd/lib'
bin/sdc -c -o obj/object.o sdlib/object.d  -Isdlib
bin/sdc -c -o obj/sdlib/gc.o sdlib/d/gc/allocclass.d sdlib/d/gc/arena.d sdlib/d/gc/base.d sdlib/d/gc/bin.d sdlib/d/gc/bitmap.d sdlib/d/gc/capi.d sdlib/d/gc/emap.d sdlib/d/gc/extent.d sdlib/d/gc/finddivisor.d sdlib/d/gc/heap.d sdlib/d/gc/hpd.d sdlib/d/gc/pages.d sdlib/d/gc/rbtree.d sdlib/d/gc/region.d sdlib/d/gc/ring.d sdlib/d/gc/rtree.d sdlib/d/gc/sizeclass.d sdlib/d/gc/spec.d sdlib/d/gc/tcache.d sdlib/d/gc/util.d  -Isdlib
No available targets are compatible with triple "arm64-apple-darwin22.5.0"
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