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

Failed buliding on Fedora #136

Open
dov opened this issue Jan 19, 2024 · 1 comment
Open

Failed buliding on Fedora #136

dov opened this issue Jan 19, 2024 · 1 comment

Comments

@dov
Copy link

dov commented Jan 19, 2024

I tried following the instructions in the README.md to compile OCP Fedora 38 but it failed as follows:

pywrap -i /usr/include/clang -l /usr/lib64/libclang.so all ocp.toml
  0%|                                                   | 0/314 [00:00<?, ?it/s]joblib.externals.loky.process_executor._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/clang/cindex.py", line 3832, in register_function
    func = getattr(lib, item[0])
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/__init__.py", line 389, in __getattr__
    func = self.__getitem__(name)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/__init__.py", line 394, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: /usr/lib64/libclang.so: undefined symbol: clang_CXXMethod_isExplicit

pywrap was installed from git with commitid = f3bcde7

ocp was cloned from git and compilation was tried with commit id = 4b98a5d

@adam-urbanczyk
Copy link
Member

If you want to just build OCP (i.e. not per se generate it), you can simply use the generated sources https://github.com/CadQuery/OCP/releases/tag/7.7.2.0

IDK what exactly is going wrong, but likely libclang has a wrong version, cf https://github.com/CadQuery/OCP/blob/master/environment.devenv.yml

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