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

No rule to make target osx-arm64 #6

Open
OneAvargeCoder193 opened this issue Mar 20, 2022 · 5 comments
Open

No rule to make target osx-arm64 #6

OneAvargeCoder193 opened this issue Mar 20, 2022 · 5 comments

Comments

@OneAvargeCoder193
Copy link

Whenever I write make I keep getting this:

mkdir -p ./bin
export LD_PATH="-framework QuartzCore -framework Cocoa -framework Carbon -framework Metal -framework CoreFoundation -framework IOKit"
cd lib/bx && make osx-arm64
make[1]: *** No rule to make target `osx-arm64'. Stop.
make: *** [libs] Error 2

@williamhCode
Copy link

williamhCode commented Mar 22, 2022

I have the same error on an m1 mac.

@jkelly80
Copy link

jkelly80 commented Mar 31, 2022

Did you clone with the subdirectories?

Edit: Also this thread may be helpful

@williamhCode
Copy link

Did you clone with the subdirectories?

Edit: Also this thread may be helpful

yep, and god that thread is long

@agnlt64
Copy link

agnlt64 commented Jan 2, 2023

I followed all the steps from the thread above and I still get this linking error. (I also posted this in the thread, but since it is closed I don't know if anybody will ever see my it).

==== Building bin2c (debug) ====
Creating ../../osx-arm64/obj/Debug/bin2c
Creating ../../osx-arm64/obj/Debug/bin2c/tools/bin2c
bin2c.cpp
Linking bin2c
Undefined symbols for architecture arm64:
  "operator delete(void*)", referenced from:
      Bin2cWriter::~Bin2cWriter() in bin2c.o
      bx::MemoryBlock::~MemoryBlock() in bin2c.o
      bx::MemoryWriter::~MemoryWriter() in bin2c.o
      bx::FileReader::~FileReader() in libbxDebug.a(file.o)
      bx::FileWriter::~FileWriter() in libbxDebug.a(file.o)
      bx::DirectoryReader::~DirectoryReader() in libbxDebug.a(file.o)
      bx::FileReaderImpl::~FileReaderImpl() in libbxDebug.a(file.o)
      ...
  "___cxa_guard_acquire", referenced from:
      bx::getStdIn() in libbxDebug.a(file.o)
      bx::getStdOut() in libbxDebug.a(file.o)
      bx::getStdErr() in libbxDebug.a(file.o)
      bx::getNullOut() in libbxDebug.a(file.o)
      bx::getDebugOut() in libbxDebug.a(debug.o)
      bx::getTempPath(char*, unsigned int*) in libbxDebug.a(filepath.o)
  "___cxa_guard_release", referenced from:
      bx::getStdIn() in libbxDebug.a(file.o)
      bx::getStdOut() in libbxDebug.a(file.o)
      bx::getStdErr() in libbxDebug.a(file.o)
      bx::getNullOut() in libbxDebug.a(file.o)
      bx::getDebugOut() in libbxDebug.a(debug.o)
      bx::getTempPath(char*, unsigned int*) in libbxDebug.a(filepath.o)
  "___cxa_pure_virtual", referenced from:
      vtable for bx::WriterI in bin2c.o
      vtable for bx::MemoryBlockI in bin2c.o
      vtable for bx::WriterSeekerI in bin2c.o
      vtable for bx::SeekerI in bin2c.o
      vtable for bx::FileReaderI in libbxDebug.a(file.o)
      vtable for bx::ReaderSeekerI in libbxDebug.a(file.o)
      vtable for bx::SeekerI in libbxDebug.a(file.o)
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../../osx-arm64/bin/bin2cDebug] Error 1
make[2]: *** [bin2c] Error 2
make[1]: *** [osx-arm64-debug] Error 2
make: *** [libs] Error 2

Since I changed all the appropiate files, idk what I have done wrong :(
My config is:

clang++ -v:
  Using built-in specs.
  COLLECT_GCC=g++-12
  COLLECT_LTO_WRAPPER=/opt/homebrew/Cellar/gcc/12.2.0/bin/../libexec/gcc/aarch64-apple-darwin22/12/lto-wrapper
  Target: aarch64-apple-darwin22
  Configured with: ../configure --prefix=/opt/homebrew/opt/gcc --libdir=/opt/homebrew/opt/gcc/lib/gcc/current --disable-nls --enable-checking=release --with-gcc-major-version-only --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-12 --with-gmp=/opt/homebrew/opt/gmp --with-mpfr=/opt/homebrew/opt/mpfr --with-mpc=/opt/homebrew/opt/libmpc --with-isl=/opt/homebrew/opt/isl --with-zstd=/opt/homebrew/opt/zstd --with-pkgversion='Homebrew GCC 12.2.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --with-system-zlib --build=aarch64-apple-darwin22 --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
  Thread model: posix
  Supported LTO compression algorithms: zlib zstd
  gcc version 12.2.0 (Homebrew GCC 12.2.0)
xcodebuild -version:
  Xcode 14.2
  Build version 14C18

I'm using macOS Ventura 13.1.

@Adamkob12
Copy link

Adamkob12 commented Apr 14, 2023

Same issue any solvers?

EDIT: Solved! I rm -rf'ed the project and recloned it. follow both steps: 1) #2 (comment) 2) #2 (comment)
and that should be good

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

5 participants