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
installing 0.20.1 on Apple M1 (errors installing med-file@4.1.1) #374
Comments
thanks for the thorough error/bug report. i'll try and take a deeper look into this probably on monday. i'll have to setup a ventura test box unfortunately because the newest box/vm i have setup is big sur. |
hi @ipatch , thank you very much, please let me know if you need something from my side to be tested once you are working on this. Sorry because I can't contribute much more on this, I don't know too much about how brew inject necessary flags on build time. |
i believe i was able to reproduce this error on the m1 box i have access to. i used the below command to reproduce the error you mentioned above on the m1 box,
the way the directory / tap structure is setup is that the food for thought, i fired a x86 big sur vm this evening and am unable to reproduce this error 😕. i'll continue to further work through this issue. and hopefully submit a PR that applies a fix. |
i just tested pr #375 on the m1 box running macos ventura i have access to, and running the install command i mentioned above seemed to install med-file as it should on the box. if you feel comfortable with your git skills you can pull in the PR locally and use it now, or you can wait for me to run it through the github runners tomorrow to make sure nothing crazy happens, and allow the runners to rebuild the bottles for the older versions of macos. hope this helps. |
this is where i'm at right now. gromgit/homebrew-core-mojave#9 another way to see that issue is from the below job, hopefully this will get resolved sooner than later. https://github.com/FreeCAD/homebrew-freecad/actions/runs/3737189355/jobs/6357290707#step:17:571 |
Hi @ipatch sorry for my very late answer! I tried the following with your remote branch git clone git@github.com:ipatch/homebrew-freecad.git
cd homebrew-freecad
git switch issue.374 then
and I got the following errors Error: Failed to load cask: ./Formula/freecad@0.20.1.rb
Cask 'freecad@0.20.1' is unreadable: wrong constant name #<Class:0x000000013fc3e700>
Warning: Treating ./Formula/freecad@0.20.1.rb as a formula.
==> Fetching dependencies for freecad@0.20.1: freecad/freecad/med-file, freecad/freecad/shiboken2@5.15.5, freecad/freecad/pyside2@5.15.5, opencascade, orocos-kdl and xerces-c
==> Fetching freecad/freecad/med-file@4.1.1
==> Downloading https://raw.githubusercontent.com/archlinux/svntogit-community/458b52e0d43ebbcf67f9025aad66c76454573a06/trunk/hdf5-1.12.patch
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/1bedb86bef42de206c897730e953c014c727d5c52c55f4354fdb56d681d31ca5--hdf5-1.12.patch
==> Downloading https://files.salome-platform.org/Salome/other/med-4.1.1.tar.gz
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/7dcf99218d0dc407132afdc6ebe9e83793e2808f13744a3cb004cb0bbc8335c8--med-4.1.1.tar.gz
==> Fetching freecad/freecad/shiboken2@5.15.5
==> Downloading https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/8944b8b362c7fd87c515efb07eb0fb022e946610/patches/libshiboken-numpy-1.23.compat.patch
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/ed6d1a59a76d10fd011fc6a95bd26ef96d7d91262ac5666e48592f259e6259ab--libshiboken-numpy-1.23.compat.patch
==> Downloading https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/8944b8b362c7fd87c515efb07eb0fb022e946610/patches/libshiboken2-python10-compat.patch
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/35da8d9458288cd8048d657eebe1815741c26d6750ab2f8a9edf499244351925--libshiboken2-python10-compat.patch
==> Downloading https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.15.5-src/pyside-setup-opensource-src-5.15.5.zip
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/7e478bd63671464e429850a09bc66eeda44c95ddd8ab0b66cfc8224ffd477cc9--pyside-setup-opensource-src-5.15.5.zip
==> Fetching freecad/freecad/pyside2@5.15.5
==> Downloading https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.15.5-src/pyside-setup-opensource-src-5.15.5.zip
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/7e478bd63671464e429850a09bc66eeda44c95ddd8ab0b66cfc8224ffd477cc9--pyside-setup-opensource-src-5.15.5.zip
==> Fetching opencascade
==> Downloading https://ghcr.io/v2/homebrew/core/opencascade/manifests/7.6.3_1
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/ec6ceed2e910d4d3a20740dcc196c74de0e20b265ef77489fc4fac2328106e23--opencascade-7.6.3_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/opencascade/blobs/sha256:ee40f04033b6e18e85244585165ae9fe4f607819f90832b987c33ec7dcc0bcf7
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/775dc7c5197966fd092a1d0a15fed2b14abc94fe81a7fc47217342b517fc672c--opencascade--7.6.3_1.arm64_ventura.bottle.tar.gz
==> Fetching orocos-kdl
==> Downloading https://ghcr.io/v2/homebrew/core/orocos-kdl/manifests/1.5.1
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/c3dace39ce0285564caf38a41219e45e00d574ba10a3bf22adcb42857cda7c56--orocos-kdl-1.5.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/orocos-kdl/blobs/sha256:49449b3bff3c05cad2d5ba7d7271d86a9b76a32ac0272e88a7544abc080c1e72
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/f16672e5a47c035c2f3b079692c7d1f8dc41761735c1c536ef0f774fe75a2e06--orocos-kdl--1.5.1.arm64_ventura.bottle.tar.gz
==> Fetching xerces-c
==> Downloading https://ghcr.io/v2/homebrew/core/xerces-c/manifests/3.2.4_1-1
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/3ace7ff6ac268af682c2bee1179fea7f5d2156ba96e474eb20f159ec45d761f8--xerces-c-3.2.4_1-1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/xerces-c/blobs/sha256:99006e9ad984212dc5016d5aa9f6ae8021d50f56fec9e13947d9779d9decc1de
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/5498169a0125d861716f05a473e601eaf88326f86cf060edcdb5ef54a089a826--xerces-c--3.2.4_1.arm64_ventura.bottle.1.tar.gz
==> Fetching freecad@0.20.1
==> Downloading https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/a4b71def99b5fe907550729038752aaf6fa1b9bf/patches/freecad-0.20.1-macos-app-bundling.patch
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/4fa80a175f519cda0d7e502602499c920e22a6290a361b67b4f3f582bccb8dc5--freecad-0.20.1-macos-app-bundling.patch
==> Downloading https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/a4b71def99b5fe907550729038752aaf6fa1b9bf/patches/freecad-0.20.1-macos-10.15-sdk.patch
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/cb41ac94e83f4c532bb20e708cf594b3ac72b0f836f7ecce36d40f99787d3dd9--freecad-0.20.1-macos-10.15-sdk.patch
==> Downloading https://files.pythonhosted.org/packages/8a/46/425a44ab9a71afd2f2c8a78b039c1af8ec21e370047f0ad6e43ca819788e/matplotlib-3.5.1.tar.gz
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/ada3175c16f67bff788969dc97f40f09b70bdd4a8fa32609b40d06a32c878070--matplotlib-3.5.1.tar.gz
==> Downloading https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/83f6bef3a0a4fd3d9559a85acb4ab73b0e4544f8542e67bf54929e86653356e9--PyYAML-6.0.tar.gz
==> Downloading https://github.com/FreeCAD/FreeCAD/archive/refs/tags/0.20.1.tar.gz
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/57542c99e41561dcc0cec6e338e6c04c8ab05e5ef18a0fb97cb4dfe5da8c811c--FreeCAD-0.20.1.tar.gz
==> Installing dependencies for freecad@0.20.1: freecad/freecad/med-file, freecad/freecad/shiboken2@5.15.5, freecad/freecad/pyside2@5.15.5, opencascade, orocos-kdl and xerces-c
==> Installing freecad@0.20.1 dependency: freecad/freecad/med-file
==> Patching
==> Applying hdf5-1.12.patch
patching file 'config/cmake_files/medMacros.cmake'
patching file 'src/ci/MEDfileCompatibility.c'
patching file 'src/hdfi/_MEDattributeNumWrByName.c'
patching file 'src/hdfi/_MEDattributeNumWr.c'
patching file 'src/hdfi/_MEDcheckAttributeStringFunc.c'
patching file 'src/hdfi/_MEDchecknSublinkFunc.c'
patching file 'src/hdfi/_MEDdatagroupExist.c'
patching file 'src/hdfi/_MEDdatasetExist.c'
patching file 'src/hdfi/_MEDfileCreate.c'
patching file 'src/hdfi/_MEDfileOpen.c'
patching file 'src/hdfi/_MEDlinkObjs.c'
patching file 'src/hdfi/_MEDmemFileOpen.c'
patching file 'src/hdfi/_MEDparFileCreate.c'
patching file 'src/hdfi/_MEDparFileOpen.c'
patching file 'tools/medimport/2.3.6/_MEDconvertStringDatasets.c'
==> cmake .. -DMEDFILE_BUILD_PYTHON=ON -DMEDFILE_BUILD_TESTS=OFF -DMEDFILE_INSTALL_DOC=OFF -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/hdf5/lib;/opt/homebrew/opt/gcc/lib -DCMAKE_INSTALL_RPATH=@loader_path/../lib
==> make
Last 15 lines from /Users/christian/Library/Logs/Homebrew/med-file@4.1.1/02.make:
[ 96%] Built target mdump3
[ 96%] Built target mdump4
1 error generated.
1 error generated.
make[2]: *** [python/CMakeFiles/_medfamily.dir/med/medfamily_modulePYTHON_wrap.cxx.o] Error 1
make[1]: *** [python/CMakeFiles/_medfamily.dir/all] Error 2
make[2]: *** [python/CMakeFiles/_medequivalence.dir/med/medequivalence_modulePYTHON_wrap.cxx.o] Error 1
make[1]: *** [python/CMakeFiles/_medequivalence.dir/all] Error 2
1 error generated.
make[2]: *** [python/CMakeFiles/_medfield.dir/med/medfield_modulePYTHON_wrap.cxx.o] Error 1
make[1]: *** [python/CMakeFiles/_medfield.dir/all] Error 2
1 error generated.
make[2]: *** [python/CMakeFiles/_medfile.dir/med/medfile_modulePYTHON_wrap.cxx.o] Error 1
make[1]: *** [python/CMakeFiles/_medfile.dir/all] Error 2
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
installing 0.20.1 on Apple M1 (errors installing med-file@4.1.1) https://github.com/FreeCAD/homebrew-freecad/issues/374 Let me know if this is what you were expecting |
check out this, i am not able to reproduce using my PR |
Hi, @ipatch thank you for your help and detailed video. I follows these instructions and looks like now it is working python3 --version
Python 3.10.6 brew update && brew upgrade
mkdir freecad
cd freecad/
git clone git@github.com:FreeCAD/homebrew-freecad.git
cd homebrew-freecad/
git fetch origin pull/375/head:issue.374
git switch issue.374 brew reinstall Formula/med-file@4.1.1.rb
Error: Failed to load cask: Formula/med-file@4.1.1.rb
Cask 'med-file@4.1.1' is unreadable: wrong constant name #<Class:0x0000000133960170>
Warning: Treating Formula/med-file@4.1.1.rb as a formula.
==> Fetching med-file@4.1.1
==> Downloading https://raw.githubusercontent.com/archlinux/svntogit-community/458b52e0d43ebbcf67f9025aad66c76454573a06/trunk/hdf5-1.12.patch
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/1bedb86bef42de206c897730e953c014c727d5c52c55f4354fdb56d681d31ca5--hdf5-1.12.patch
==> Downloading https://files.salome-platform.org/Salome/other/med-4.1.1.tar.gz
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/7dcf99218d0dc407132afdc6ebe9e83793e2808f13744a3cb004cb0bbc8335c8--med-4.1.1.tar.gz
==> Reinstalling med-file@4.1.1
==> Patching
==> Applying hdf5-1.12.patch
patching file 'config/cmake_files/medMacros.cmake'
patching file 'src/ci/MEDfileCompatibility.c'
patching file 'src/hdfi/_MEDattributeNumWrByName.c'
patching file 'src/hdfi/_MEDattributeNumWr.c'
patching file 'src/hdfi/_MEDcheckAttributeStringFunc.c'
patching file 'src/hdfi/_MEDchecknSublinkFunc.c'
patching file 'src/hdfi/_MEDdatagroupExist.c'
patching file 'src/hdfi/_MEDdatasetExist.c'
patching file 'src/hdfi/_MEDfileCreate.c'
patching file 'src/hdfi/_MEDfileOpen.c'
patching file 'src/hdfi/_MEDlinkObjs.c'
patching file 'src/hdfi/_MEDmemFileOpen.c'
patching file 'src/hdfi/_MEDparFileCreate.c'
patching file 'src/hdfi/_MEDparFileOpen.c'
patching file 'tools/medimport/2.3.6/_MEDconvertStringDatasets.c'
==> cmake .. -DMEDFILE_BUILD_PYTHON=ON -DMEDFILE_BUILD_TESTS=OFF -DMEDFILE_INSTALL_DOC=OFF -DPYTHON_EXECUTABLE=/opt/homebrew/opt/python@3.10/bin/python3.10" -DPYTHON_LIBRARY=/opt/homebrew
==> make
==> make install
🍺 /opt/homebrew/Cellar/med-file@4.1.1/4.1.1: 105 files, 9.7MB, built in 31 seconds
==> Running `brew cleanup med-file@4.1.1`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). brew info med-file
==> freecad/freecad/med-file@4.1.1: stable 4.1.1
Modeling and Data Exchange standardized format library
https://www.salome-platform.org/
/opt/homebrew/Cellar/med-file@4.1.1/4.1.1 (105 files, 9.7MB) *
Built from source on 2023-01-25 at 21:10:46
From: https://github.com/Freecad/homebrew-freecad/blob/HEAD/Formula/med-file@4.1.1.rb
License: GPL-3.0-only
==> Dependencies
Build: cmake ✔, freecad/freecad/swig@4.0.2 ✔
Required: gcc ✔, hdf5 ✔, libaec ✔, python@3.10 ✔ and then, I tried to reinstall brew reinstall Formula/freecad@0.20.1.rb
Error: Failed to load cask: Formula/freecad@0.20.1.rb
Cask 'freecad@0.20.1' is unreadable: wrong constant name #<Class:0x000000012aa737a0>
Warning: Treating Formula/freecad@0.20.1.rb as a formula.
==> Fetching dependencies for freecad@0.20.1: freecad/freecad/pyside2@5.15.5, opencascade, orocos-kdl and xerces-c
==> Fetching freecad/freecad/pyside2@5.15.5
==> Downloading https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.15.5-src/pyside-setup-opensource-src-5.15.5.zip
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/7e478bd63671464e429850a09bc66eeda44c95ddd8ab0b66cfc8224ffd477cc9--pyside-setup-opensource-src-5.15.5.zip
==> Fetching opencascade
==> Downloading https://ghcr.io/v2/homebrew/core/opencascade/manifests/7.6.3_1
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/ec6ceed2e910d4d3a20740dcc196c74de0e20b265ef77489fc4fac2328106e23--opencascade-7.6.3_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/opencascade/blobs/sha256:ee40f04033b6e18e85244585165ae9fe4f607819f90832b987c33ec7dcc0bcf7
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/775dc7c5197966fd092a1d0a15fed2b14abc94fe81a7fc47217342b517fc672c--opencascade--7.6.3_1.arm64_ventura.bottle.tar.gz
==> Fetching orocos-kdl
==> Downloading https://ghcr.io/v2/homebrew/core/orocos-kdl/manifests/1.5.1
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/c3dace39ce0285564caf38a41219e45e00d574ba10a3bf22adcb42857cda7c56--orocos-kdl-1.5.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/orocos-kdl/blobs/sha256:49449b3bff3c05cad2d5ba7d7271d86a9b76a32ac0272e88a7544abc080c1e72
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/f16672e5a47c035c2f3b079692c7d1f8dc41761735c1c536ef0f774fe75a2e06--orocos-kdl--1.5.1.arm64_ventura.bottle.tar.gz
==> Fetching xerces-c
==> Downloading https://ghcr.io/v2/homebrew/core/xerces-c/manifests/3.2.4_1-1
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/3ace7ff6ac268af682c2bee1179fea7f5d2156ba96e474eb20f159ec45d761f8--xerces-c-3.2.4_1-1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/xerces-c/blobs/sha256:99006e9ad984212dc5016d5aa9f6ae8021d50f56fec9e13947d9779d9decc1de
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/5498169a0125d861716f05a473e601eaf88326f86cf060edcdb5ef54a089a826--xerces-c--3.2.4_1.arm64_ventura.bottle.1.tar.gz
==> Fetching freecad@0.20.1
==> Downloading https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/a4b71def99b5fe907550729038752aaf6fa1b9bf/patches/freecad-0.20.1-macos-app-bundling.patch
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/4fa80a175f519cda0d7e502602499c920e22a6290a361b67b4f3f582bccb8dc5--freecad-0.20.1-macos-app-bundling.patch
==> Downloading https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/a4b71def99b5fe907550729038752aaf6fa1b9bf/patches/freecad-0.20.1-macos-10.15-sdk.patch
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/cb41ac94e83f4c532bb20e708cf594b3ac72b0f836f7ecce36d40f99787d3dd9--freecad-0.20.1-macos-10.15-sdk.patch
==> Downloading https://files.pythonhosted.org/packages/8a/46/425a44ab9a71afd2f2c8a78b039c1af8ec21e370047f0ad6e43ca819788e/matplotlib-3.5.1.tar.gz
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/ada3175c16f67bff788969dc97f40f09b70bdd4a8fa32609b40d06a32c878070--matplotlib-3.5.1.tar.gz
==> Downloading https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/83f6bef3a0a4fd3d9559a85acb4ab73b0e4544f8542e67bf54929e86653356e9--PyYAML-6.0.tar.gz
==> Downloading https://github.com/FreeCAD/FreeCAD/archive/refs/tags/0.20.1.tar.gz
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/57542c99e41561dcc0cec6e338e6c04c8ab05e5ef18a0fb97cb4dfe5da8c811c--FreeCAD-0.20.1.tar.gz
==> Reinstalling freecad@0.20.1
==> Installing dependencies for freecad@0.20.1: freecad/freecad/pyside2@5.15.5, opencascade, orocos-kdl and xerces-c
==> Installing freecad@0.20.1 dependency: freecad/freecad/pyside2@5.15.5
==> cmake -DPYTHON_EXECUTABLE=/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -DPYTHON_LIBRARY=/opt/homebrew/opt/python@3.10/Frameworks/Python.frame
==> make -j10
Last 15 lines from /Users/christian/Library/Logs/Homebrew/pyside2@5.15.5/02.make:
(printsupport) [1832ms] Detecting inconsistencies in typesystem (7705)... [OK]
(widgets) [1840ms] Checking inconsistencies in function modifications... [OK]
(widgets) [1842ms] Writing log files... [OK]
(printsupport) [1854ms] Checking inconsistencies in function modifications... [OK]
(printsupport) [1855ms] Writing log files... [OK]
(widgets) [1865ms] Running Source generator... [OK]
(printsupport) [1879ms] Running Source generator... [OK]
(printsupport) [1898ms] Running Header generator... [OK]
Done, (printsupport) 1900ms, 4 warnings (1128 known issues)
[ 2%] Built target QtPrintSupport_generator
[OK]
(widgets) [2300ms] Running Header generator... [OK]
Done, (widgets) 2342ms, 16 warnings (1126 known issues)
[ 2%] Built target QtWidgets_generator
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core! |
i don't understand why you ran the below commands
if you already ran should be able to take a look at the below command,
and you can cd into the the directory listed, and then make your changes in there. just make sure to create a new branch. and if you run |
hi @ipatch , thanks for your help with I got the same error as before using my local brew tap cd /opt/homebrew/Library/Taps/freecad/homebrew-freecad
git fetch origin pull/375/head:issue.374
git switch issue.374g git log
commit 965ddd5a4237ed7b1ad19bdd8710e60245f09189 (HEAD -> issue.374)
Author: chris <chris.r.jones.1983@gmail.com>
Date: Mon Dec 19 16:24:03 2022 -0800
med-file: specifically use python@3.10 with cmake
commit 324f4cc0c029c71a1a929080e0ff875dce2e5698 (origin/master, origin/HEAD, master)
Author: Alexander Bolinsky <alexander.bolinsky@rapyuta-robotics.com>
Date: Mon Jan 23 12:00:25 2023 +0900
Clarify --with-macos-app install flag (#376)
There is no --with-no-macos-app install flag. I removed this install flag and clarified the usage of --with-macos-app.
commit bed122afa31ae31464119e3206c6920711168ea3
Author: Chris <chris.r.jones.1983@gmail.com>
Date: Fri Nov 4 14:40:33 2022 -0500
[no ci] freecad: update caveats (#372)
commit 61cb2d4ef50af8237040edbd92672e5bb65137b3
Author: Chris <chris.r.jones.1983@gmail.com>
Date: Fri Nov 4 14:22:13 2022 -0500
[no ci] use separate patches one for stable 0.20.1 tarball and one fo… (#371)
... brew reinstall freecad/freecad/med-file@4.1.1
==> Fetching freecad/freecad/med-file@4.1.1
==> Downloading https://raw.githubusercontent.com/archlinux/svntogit-community/458b52e0d43ebbcf67f9025aad66c76454573a06/trunk/hdf5-1.12.patch
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/1bedb86bef42de206c897730e953c014c727d5c52c55f4354fdb56d681d31ca5--hdf5-1.12.patch
==> Downloading https://files.salome-platform.org/Salome/other/med-4.1.1.tar.gz
Already downloaded: /Users/christian/Library/Caches/Homebrew/downloads/7dcf99218d0dc407132afdc6ebe9e83793e2808f13744a3cb004cb0bbc8335c8--med-4.1.1.tar.gz
==> Reinstalling freecad/freecad/med-file@4.1.1
==> Patching
==> Applying hdf5-1.12.patch
patching file 'config/cmake_files/medMacros.cmake'
patching file 'src/ci/MEDfileCompatibility.c'
patching file 'src/hdfi/_MEDattributeNumWrByName.c'
patching file 'src/hdfi/_MEDattributeNumWr.c'
patching file 'src/hdfi/_MEDcheckAttributeStringFunc.c'
patching file 'src/hdfi/_MEDchecknSublinkFunc.c'
patching file 'src/hdfi/_MEDdatagroupExist.c'
patching file 'src/hdfi/_MEDdatasetExist.c'
patching file 'src/hdfi/_MEDfileCreate.c'
patching file 'src/hdfi/_MEDfileOpen.c'
patching file 'src/hdfi/_MEDlinkObjs.c'
patching file 'src/hdfi/_MEDmemFileOpen.c'
patching file 'src/hdfi/_MEDparFileCreate.c'
patching file 'src/hdfi/_MEDparFileOpen.c'
patching file 'tools/medimport/2.3.6/_MEDconvertStringDatasets.c'
==> cmake .. -DMEDFILE_BUILD_PYTHON=ON -DMEDFILE_BUILD_TESTS=OFF -DMEDFILE_INSTALL_DOC=OFF -DPYTHON_EXECUTABLE=/opt/homebrew/opt/python@3.10/bin/python3.10" -DPYTHON_LIBRARY=/opt/homebrew
==> make
==> make install
🍺 /opt/homebrew/Cellar/med-file@4.1.1/4.1.1: 105 files, 9.7MB, built in 35 seconds
==> Running `brew cleanup med-file@4.1.1`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). brew uninstall brew install freecad -s -v
...
[OK]
(widgets) [2382ms] Running Header generator... [OK]
Done, (widgets) 2423ms, 16 warnings (1126 known issues)
[ 2%] Built target QtWidgets_generator
make: *** [all] Error 2
==> Formula
Tap: freecad/freecad
Path: /opt/homebrew/Library/Taps/freecad/homebrew-freecad/Formula/pyside2@5.15.5.rb
==> Configuration
HOMEBREW_VERSION: 3.6.20
ORIGIN: https://github.com/Homebrew/brew
HEAD: 344d32bf7f40183359592ef81ca6486e0587981b
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 98cb37c0a6f07d564af5dd96b41309837af97c76
Core tap last commit: 55 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.39.1 => /opt/homebrew/bin/git
Curl: 7.86.0 => /usr/bin/curl
macOS: 13.2-arm64
CLT: 14.2.0.0.1.1668646533
Xcode: 14.2
Rosetta 2: false
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
CXXFLAGS: -std=c++17
MAKEFLAGS: -j10
CMAKE_PREFIX_PATH: /opt/homebrew/opt/openssl@1.1:/opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew/opt/llvm:/opt/homebrew/opt/openblas:/opt/homebrew/opt/qt@5:/opt/homebrew/opt/shiboken2@5.15.5:/opt/homebrew/opt/sphinx-doc:/opt/homebrew
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /opt/homebrew/opt/python@3.10/Frameworks:/opt/homebrew/opt/python@3.11/Frameworks:/opt/homebrew/opt/qt@5/Frameworks
PKG_CONFIG_PATH: /opt/homebrew/opt/python@3.10/lib/pkgconfig:/opt/homebrew/opt/openssl@1.1/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/python@3.11/lib/pkgconfig:/opt/homebrew/opt/z3/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig:/opt/homebrew/opt/gmp/lib/pkgconfig:/opt/homebrew/opt/isl/lib/pkgconfig:/opt/homebrew/opt/mpfr/lib/pkgconfig:/opt/homebrew/opt/openblas/lib/pkgconfig:/opt/homebrew/opt/libpng/lib/pkgconfig:/opt/homebrew/opt/freetype/lib/pkgconfig:/opt/homebrew/opt/pcre2/lib/pkgconfig:/opt/homebrew/opt/glib/lib/pkgconfig:/opt/homebrew/opt/jpeg-turbo/lib/pkgconfig:/opt/homebrew/opt/libtiff/lib/pkgconfig:/opt/homebrew/opt/webp/lib/pkgconfig:/opt/homebrew/opt/qt@5/lib/pkgconfig:/opt/homebrew/opt/shiboken2@5.15.5/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/13
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/cmake/bin:/opt/homebrew/opt/python@3.10/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/python@3.11/bin:/opt/homebrew/opt/z3/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/zstd/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/gcc/bin:/opt/homebrew/opt/numpy/bin:/opt/homebrew/opt/libpng/bin:/opt/homebrew/opt/freetype/bin:/opt/homebrew/opt/pcre2/bin:/opt/homebrew/opt/gettext/bin:/opt/homebrew/opt/glib/bin:/opt/homebrew/opt/jpeg-turbo/bin:/opt/homebrew/opt/giflib/bin:/opt/homebrew/opt/libtiff/bin:/opt/homebrew/opt/webp/bin:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/shiboken2@5.15.5/bin:/opt/homebrew/opt/docutils/bin:/opt/homebrew/opt/pygments/bin:/opt/homebrew/opt/sphinx-doc/bin:/opt/homebrew/opt/python@3.11/libexec/bin:/opt/homebrew/opt/python@3.10/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: freecad/freecad/pyside2@5.15.5 5.15.5 did not build
Logs:
/Users/christian/Library/Logs/Homebrew/pyside2@5.15.5/macbuild5.15.5
/Users/christian/Library/Logs/Homebrew/pyside2@5.15.5/00.options.out
/Users/christian/Library/Logs/Homebrew/pyside2@5.15.5/01.cmake.cc
/Users/christian/Library/Logs/Homebrew/pyside2@5.15.5/01.cmake
/Users/christian/Library/Logs/Homebrew/pyside2@5.15.5/02.make.cc
/Users/christian/Library/Logs/Homebrew/pyside2@5.15.5/02.make
Do not report this issue to Homebrew/brew or Homebrew/core! capture the log of installing brew install freecad/freecad/pyside2@5.15.5 -s -v > /tmp/pyside2.log 1>&2 the log is too big to paste here, the file is attached |
Just to confirm. I get the same error when I try to build freecad on Mac M1.
|
Thanks @ipatch and @christiangda. I have successfully passed the med-file problem and encountered the same pyside2 problem mentioned by @christiangda with the following code snippet.
|
I'm also encountering the build failure and the I've tried replacing all references to After making the function call changes, I'm now encountering a Python error about freeing an un-malloced pointer address when generating |
Any chance this can get resolved? I really like to have FreeCAD on my Mac without having to use Rosetta, as it'll reduce my battery life as other things will use it under the hood as well. Selectively using Rosetta isn't really an option, unless anyone knows how to use a whitelist for Rosetta. |
What is the performance difference between freeCAD and Rosetta that you guys are gaining when doing the migrations!? (Do you loose performance?) |
@alber70g If you're eager to build FreeCAD on macOS for ARM, take a look at my guide: https://github.com/oursland/FreeCAD-Build-Notes This uses |
this issue should be resolved now. just tested with the master branch on the freecad repo using an m1 mac that i have access to. if there is something i have missed, feel free to leave comment below and i am not opposed to reopening the issue. |
Hi
I recently updated my MacBook Pro to the latest OS release 13.1 (macOS Ventura). After that, I tried to install FreeCad's latest version available on the brew, following the instruction available on this link: https://github.com/FreeCAD/homebrew-freecad
The commands I used are:
and also I tried
both of them generate the following error:
Checking the error then I tried to install
med-file@4.1.1
alone to see if was possible fix the problem using the following commandand I got the following error:
I don't understand too much why the brew installation doesn't find the
Python.h
header file in my system, I have installed 3 versions ofpython
, and as default linkedpython3.10
brew list ==> Formulae ansible freetype jasper librsvg nettle sdl2 ant frei0r jbig2dec libsamplerate nglib@6.2.2104 shared-mime-info aom fribidi jpeg libslirp ninja six arm-gcc-bin@8 gawk jpeg-turbo libsndfile node skopeo assimp gcc jpeg-xl libsodium npth smimesign atk gd jq libsoxr numpy snappy autoconf gdbm jsoncpp libssh oniguruma speex automake gdk-pixbuf kpt libssh2 openblas sphinx-doc avr-binutils gettext kubernetes-cli libtasn1 opencascade@7.5.3 sqlite avr-gcc@8 gflags kubeval libtiff opencore-amr srt avrdude gh kustomize libtool opencv suite-sparse awscli ghostscript lame libunibreak openexr swig bazel giflib leptonica libunistring openjdk swig@4.0.2 bdw-gc git libaec libusb openjdk@11 szip boost gl2ps libarchive libusb-compat openjpeg tbb boost-python3 glew libass libuv openssl@1.1 tbb@2020 bootloadhid glib libassuan libvidstab opus tcl-tk brotli glog libavif libvmaf p11-kit teensy_loader_cli bzip2 gmp libb2 libvorbis pango terraform c-ares gnu-getopt libbluray libvpx pcre terragrunt ca-certificates gnu-sed libde265 libx11 pcre2 tesseract cairo gnupg libelf libxau pillow tesseract-lang capstone gnutls libepoxy libxcb pinentry theora ceres-solver go libevent libxdmcp pinentry-mac tree cjson gobject-introspection libffi libxext pixman uchardet clang-format gperf libftdi libxrender pkg-config unbound cmake gpgme libftdi0 libyaml podman utf8cpp cmocka graphite2 libgcrypt libzip protobuf vde coin3d graphviz libgpg-error little-cms2 protoc-gen-go vtk confuse groff libheif llvm psutils webp cython gsettings-desktop-schemas libhid lz4 pugixml wget dav1d gtk+3 libiconv lzo pygments x264 dbus gts libidn m4 pyqt@5 x265 dfu-programmer guile libidn2 make pyside@2 xmlto dfu-util harfbuzz libimagequant matplotlib@3.4.3 python@3.10 xorgproto docbook hdf5 libksba mbedtls python@3.11 xvid docbook-xsl hdf5@1.10 liblqr md4c python@3.9 xz docker hicolor-icon-theme libmng mdloader pyyaml yq docutils hidapi libmpc med-file@4.1.0 qemu z3 double-conversion highway libnghttp2 metis qmk zeromq doxygen htop libogg minikube qt zimg eigen hunspell libomp mpdecimal qt@5 zlib ffmpeg hwloc libpng mpfr rapidjson zstd ffmpeg@4 icu4c libpthread-stubs mpg123 rav1e flac imagemagick libraqm ncurses readline fontconfig imath libraw netcdf rubberband freeimage isl librist netpbm rust
There is a way to tell brew package
med-file@4.1.1
where to find the python3.10 headers?The text was updated successfully, but these errors were encountered: