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

error build #19

Open
leonidussaks opened this issue Dec 30, 2019 · 3 comments
Open

error build #19

leonidussaks opened this issue Dec 30, 2019 · 3 comments

Comments

@leonidussaks
Copy link

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

@ghost
Copy link

ghost commented Dec 30, 2019

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.

@leonidussaks
Copy link
Author

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

@ghost
Copy link

ghost commented Dec 31, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants