Skip to content

[email protected]_py310: building using the --HEAD flag requires manual deletion of prior build directory #545

@ipatch

Description

@ipatch

using the below command to install freecad will fail on subsequent rebuilds.

brew install freecad/freecad/freecad --HEAD

error messages,

CMake Error: The source "/Volumes/STORAGE/ipatch/homebrew/tmp/freecadA0.21.2_py310-20240719-95443-gc4e7e/CMakeLists.txt" does not match the source "/Volumes/STORAGE/ipatch/homebrew/tmp/freecadA0.21.2_py310-20240716-34765-m2nw5n/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
-- Cache values

and


Error: freecad/freecad/[email protected]_py310 HEAD-51789ae did not build
Logs:
     /Users/ipatch/Library/Logs/Homebrew/[email protected]_py310/00.options.out
     /Users/ipatch/Library/Logs/Homebrew/[email protected]_py310/01.cmake
     /Users/ipatch/Library/Logs/Homebrew/[email protected]_py310/CMakeCache.txt
     /Users/ipatch/Library/Logs/Homebrew/[email protected]_py310/_deps
Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!

Do not report this issue: you are running in an unsupported configuration.

not entirely sure if this error is related to my particular homebrew setup. i do have the below environment variables setup specific for my homebrew installation on this particular box,

HOMEBREW_TEMP=/Volumes/STORAGE/ipatch/homebrew/tmp
HOMEBREW_CACHE=/Volumes/STORAGE/ipatch/homebrew/cache

the current workaround is to remove the offending folder / directory. ie.

rm -rf /Volumes/STORAGE/ipatch/homebrew/tmp/build

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions