openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

scons failing on mac bootstrap

Open herman5 opened this issue 3 years ago • 4 comments
trafficstars

Describe the bug

On macOS 12.4, scons fails to build after a fresh openpilot install and running $ tools/mac_setup.sh

$ cd openpilot && pipenv shell
$ scons -u -j$(nproc)

Warning: Please note that the following versions of CasADi  are officially supported: 3.5.5 or 3.5.4 or 3.5.3 or 3.5.2 or 3.5.1 or 3.4.5 or 3.4.0.
 If there is an incompatibility with the CasADi generated code, please consider changing your CasADi version.
Version 3.5.4+ currently in use.
sh: /Users/dylanherman/openpilot/third_party/acados/Darwin/t_renderer: Bad CPU type in executable

Exception: Rendering of main.in.c failed!

Attempted to execute OS command:
/Users/dylanherman/openpilot/third_party/acados/Darwin/t_renderer '/Users/dylanherman/openpilot/pyextra/acados_template/c_templates_tera/*' 'main.in.c' '/Users/dylanherman/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/acados_ocp_long.json' 'main_long.c'

Exiting.

scons: *** [selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code/Makefile] Error 1
scons: building terminated because of errors.

Opening as an issue as it's been referenced in past discussions as well as in #dev-openpilot with no resolution.

This was ran on a macbook with Intel CPUs.

OS Version

macOS 12.4

openpilot version or commit

eb17291ca13035b40d653da107653d4420517aaa

Additional info

No response

herman5 avatar Jul 11 '22 00:07 herman5

Yep, I have a branch I've started working on supporting intel macs with. They only have the arm executable for acados for macOS at the moment.

LoganxDev avatar Jul 23 '22 23:07 LoganxDev

@LoganxDev thanks! If you want to push that branch, maybe we can track progress here.

herman5 avatar Jul 24 '22 17:07 herman5

wip branch

There's the branch I'm using, the current issue is some ffmpeg lib headers aren't being found even though the libs are in the lib path in the root Sconstruct.

LoganxDev avatar Jul 27 '22 16:07 LoganxDev

There have been a few PRs to fix builds on macOS, do you want to check if this is still an issue on the latest master?

incognitojam avatar Jan 21 '23 23:01 incognitojam

Mac is being worked on

haraschax avatar May 23 '23 16:05 haraschax