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

Cannot compile on MacOS #259

Open
CaptChrisD opened this issue Nov 12, 2024 · 1 comment
Open

Cannot compile on MacOS #259

CaptChrisD opened this issue Nov 12, 2024 · 1 comment

Comments

@CaptChrisD
Copy link

Environment

  • Elixir version (elixir -v): 1.17.2

  • Nerves environment: (mix nerves.env --info)
    Nerves: 1.11.2
    Nerves System BR: 1.29.0

  • Additional information about your host, target hardware or environment that
    may help

Current behavior

  1. Clone this repo
  2. mix deps.get
  3. mix compile
>>> rpicam-apps 1.5.0 Building..................................................** (Mix) The Nerves Docker build_runner encountered an error while building:

-----
/home/nerves/project/host/bin/aarch64-nerves-linux-gnu-g++ -Irpicam_app.so.1.5.0.p -I. -I.. -Icore -I/home/nerves/project/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/libcamera -I/home/nerves/project/host/aarch64-buildroot-linux-gnu/sysroot/usr/include -I/home/nerves/project/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/libpng16 -I/home/nerves/project/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/libdrm -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++17 -O3 -pedantic -Wno-unused-parameter -faligned-new -Wno-psabi -DLIBDRM_PRESENT=1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g2 -D_FORTIFY_SOURCE=1 -fPIC -pthread -DBOOST_ALL_NO_LIB -MD -MQ rpicam_app.so.1.5.0.p/core_options.cpp.o -MF rpicam_app.so.1.5.0.p/core_options.cpp.o.d -o rpicam_app.so.1.5.0.p/core_options.cpp.o -c ../core/options.cpp
aarch64-nerves-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[6/42] Compiling C++ object rpicam_app.so.1.5.0.p/encoder_encoder.cpp.o
[7/42] Compiling C++ object rpicam_app.so.1.5.0.p/core_post_processor.cpp.o
FAILED: rpicam_app.so.1.5.0.p/core_post_processor.cpp.o 
/home/nerves/project/host/bin/aarch64-nerves-linux-gnu-g++ -Irpicam_app.so.1.5.0.p -I. -I.. -Icore -I/home/nerves/project/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/libcamera -I/home/nerves/project/host/aarch64-buildroot-linux-gnu/sysroot/usr/include -I/home/nerves/project/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/libpng16 -I/home/nerves/project/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/libdrm -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++17 -O3 -pedantic -Wno-unused-parameter -faligned-new -Wno-psabi -DLIBDRM_PRESENT=1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g2 -D_FORTIFY_SOURCE=1 -fPIC -pthread -DBOOST_ALL_NO_LIB -MD -MQ rpicam_app.so.1.5.0.p/core_post_processor.cpp.o -MF rpicam_app.so.1.5.0.p/core_post_processor.cpp.o.d -o rpicam_app.so.1.5.0.p/core_post_processor.cpp.o -c ../core/post_processor.cpp
aarch64-nerves-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[8/42] Compiling C++ object post_processing_stages/core-postproc.so.p/negate_stage.cpp.o
[9/42] Compiling C++ object post_processing_stages/core-postproc.so.p/hdr_stage.cpp.o
[10/42] Compiling C++ object post_processing_stages/core-postproc.so.p/motion_detect_stage.cpp.o
[11/42] Compiling C++ object rpicam_app.so.1.5.0.p/core_rpicam_app.cpp.o
ninja: build stopped: subcommand failed.
make[1]: *** [package/pkg-generic.mk:289: /home/nerves/project/build/rpicam-apps-1.5.0/.stamp_built] Error 1
make: *** [Makefile:23: _all] Error 2

Expected behavior

Should be able to compile to support custom system on MacOS

@pojiro
Copy link

pojiro commented Nov 13, 2024

fatal error: Killed signal terminated program cc1plus compilation terminated., this might be caused from OOM killer.

Have you checked the memory consumption during the build?

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