lilith icon indicating copy to clipboard operation
lilith copied to clipboard

error build

Open leonidussaks opened this issue 6 years ago • 3 comments

i tryed build... [leonid@leonid-pc lilith]$ make toolchain/crystal/.build/crystal cd toolchain/crystal && make release=1 make[1]: вход в каталог «/home/leonid/Рабочий стол/lilith/toolchain/crystal» Using /usr/bin/llvm-config [version=9.0.0] g++ -c -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc -I/usr/include -std=c++11 -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS cc -fPIC -c -o src/ext/sigfault.o src/ext/sigfault.c ar -rcs src/ext/libcrystal.a src/ext/sigfault.o CRYSTAL_CONFIG_LIBRARY_PATH="" CRYSTAL_CONFIG_BUILD_COMMIT="9e28451fb" ./bin/crystal build --release -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib cc: ошибка: стол/lilith/toolchain/crystal/src/ext/libcrystal.a: no such file or directory Error: execution of command failed with code: 1: cc "${@}" -o '/home/leonid/.cache/crystal/home-leonid-Рабочий стол-lilith-toolchain-crystal-src-ecr-process.cr/macro_run' -rdynamic -lpcre -lm -lgc -lpthread /home/leonid/Рабочий стол/lilith/toolchain/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib make[1]: *** [Makefile:133: .build/crystal] error 1 make[1]: выход из каталога «/home/leonid/Рабочий стол/lilith/toolchain/crystal» make: *** [Makefile:204: toolchain/crystal/.build/crystal] error 2

leonidussaks avatar Dec 30 '19 17:12 leonidussaks

I'm sorry for you that the build fails; I'll try to be helpful but I may not (I'm still a newbie) When @ffwff comes and instructs something else, just ignore my suggestions and follow his/hers.

  1. This looks like it happens because you have a space in your path.
    • Relevant error message. cc: ошибка: стол/lilith/toolchain/crystal/src/ext/libcrystal.a: no such file or directory while the full path is: /home/leonid/Рабочий стол/lilith/toolchain/crystal
  2. Suggestion: Move or clone the repo into a directory with no spaces in its path and try again.
  3. A more permanant solution would be fixing this in the crystal repo, I guess?

I'll have my fingers crossed for you.

ghost avatar Dec 30 '19 20:12 ghost

really helped. I'm an idiot.

[leonid@leonid-pc lilith]$ make build/kernel CR src/main.cr LD64 build/main.o build/boot.o => build/kernel64 objcopy --output-target=binary build/kernel64 build/kernel64.bin AS32 src/asm/bootstrap.s i686-elf-as src/asm/bootstrap.s -o build/bootstrap.o make: i686-elf-as: command not found make: *** [Makefile:92: build/bootstrap.o] error 127

leonidussaks avatar Dec 31 '19 11:12 leonidussaks

I'm pretty sure everyone struggles from builds, no worries. And IMHO it was a useful report because It suggests an unexpected edge case useful for anybody reading this in the future. Now, for the new issue: If you haven't built cross-binutils, you should. Edit: Read the shiny new Building.md that ffwff wrote!

ghost avatar Dec 31 '19 11:12 ghost