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

Build error when running docker compose #1

Open
leksuss opened this issue Jan 5, 2023 · 2 comments
Open

Build error when running docker compose #1

leksuss opened this issue Jan 5, 2023 · 2 comments

Comments

@leksuss
Copy link
Contributor

leksuss commented Jan 5, 2023

Fresh Debian 11 with 1gb RAM

Install docker, then run:
docker compose build

After about a half hour I see errors, last strings:



#0 179.2 [ 33%] Building CXX object tl/CMakeFiles/tl_api.dir/generate/auto/tl/ton_api.cpp.o
#0 2903.7 make[3]: *** [tl/CMakeFiles/tl_api.dir/build.make:63: tl/CMakeFiles/tl_api.dir/generate/auto/tl/ton_api.cpp.o] Error 255
#0 2903.7 make[2]: *** [CMakeFiles/Makefile2:7245: tl/CMakeFiles/tl_api.dir/all] Error 2
#0 2903.7 make[1]: *** [CMakeFiles/Makefile2:12584: rldp-http-proxy/CMakeFiles/rldp-http-proxy.dir/rule] Error 2
#0 2903.7 make: *** [Makefile:2944: rldp-http-proxy] Error 2
------
failed to solve: executor failed running [/bin/sh -c cmake --build . -j$(nproc) --target rldp-http-proxy generate-random-id]: exit code: 2

Here is full log, if necessary.

@kdimentionaltree
Copy link
Owner

Hello, sorry for a long delay with answer. The problem may be in insufficient RAM memory: for building ton binaries required about 4GBs of RAM.
But to be sure, could you please attach full build logs?

@leksuss
Copy link
Contributor Author

leksuss commented Feb 20, 2023

Yes, I already figured it out. 2GB was enough for building TON binaries. I created a pull request with updated readme with this information. Anyway, thank you for your reply!

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

2 participants