jdah / minecraft-again

yeah I made it again
MIT License
664 stars 73 forks source link

No rule to make target `osx-arm64` #6

Open OneAvargeCoder193 opened 2 years ago

OneAvargeCoder193 commented 2 years ago

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 commented 2 years ago

I have the same error on an m1 mac.

jkelly80 commented 2 years ago

Did you clone with the subdirectories?

Edit: Also this thread may be helpful

williamhCode commented 2 years ago

Did you clone with the subdirectories?

Edit: Also this thread may be helpful

yep, and god that thread is long

agnlt64 commented 1 year ago

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 commented 1 year ago

Same issue any solvers?

EDIT: Solved! I rm -rf'ed the project and recloned it. follow both steps: 1) https://github.com/jdah/minecraft-again/issues/2#issuecomment-1014977947 2) https://github.com/jdah/minecraft-again/issues/2#issuecomment-1014996349 and that should be good