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

added dockerfile and testing scripts #25

Closed
wants to merge 4 commits into from
Closed

added dockerfile and testing scripts #25

wants to merge 4 commits into from

Conversation

zmm
Copy link
Contributor

@zmm zmm commented Apr 17, 2024

No description provided.

@jcdkiki
Copy link
Collaborator

jcdkiki commented May 21, 2024

Возможно, Makefile не завершался с кодом ошибки из-за команд, начинающихся на '@'

install_deps:
	apt install -y ninja-build cmake bear
	@echo "install deps: OK"

Если убрать последнюю строку, то make в случае ошибки будет завершаться с соответствующим кодом:

jcdkiki@pc:~/code/oclint_extensions$ make install && echo OK OK OK OK OK OK
apt install -y ninja-build cmake bear g++
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
make: *** [Makefile:40: install_deps] Error 100
jcdkiki@pc:~/code/oclint_extensions$

В других целях тоже убрал '@'-команды, а в install_deps добавил установку g++. Исходя из логов, которые Вы мне отправляли, cmake не мог найти компилятор с++ и падал именно на этом ((по крайней мере это моя версия произошедшего)). Остальные ошибки возникали, потому что make просто не мог вовремя остановиться. Теперь, если что, сможет остановиться ((наверное)).

Прошу протестировать как-нибудь, интернет сейчас не позволяет oclint в докере собрать (скрипт сборки oclint`а зачем-то клонирует репозиторий на полгига).

@zmm zmm closed this Jul 18, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants