Skip to content

onnxruntime failed to build, fatal error: 'Eigen/Core' file not found #226154

Open
@layerssss

Description

@layerssss

brew gist-logs <formula> link OR brew config AND brew doctor output

https://gist.github.com/layerssss/41e7b679e681cec8624cb4559ec34cd7

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

Build onnxruntime from source

What happened (include all command output)?

Running command.

brew install --build-from-source onnxruntime

Last lines of the output

izer.cc.o" "CMakeFiles/onnxruntime_optimizer.dir/private/tmp/onnxruntime-20250609-56064-c60bir/onnxruntime/core/optimizer/unsqueeze_elimination.cc.o" "CMakeFiles/onnxruntime_optimizer.dir/private/tmp/onnxruntime-20250609-56064-c60bir/onnxruntime/core/optimizer/utils.cc.o"
/usr/bin/ranlib libonnxruntime_optimizer.a
[ 51%] Built target onnxruntime_optimizer
make: *** [all] Error 2


READ THIS: https://docs.brew.sh/Troubleshooting

What did you expect to happen?

The package should build and install without error.

Step-by-step reproduction instructions (by running brew commands)

brew update
brew install --build-from-source onnxruntime

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions