Installation: Opencascade compilation error

98 zobrazení
Přeskočit na první nepřečtenou zprávu

jose.a...@gmail.com

nepřečteno,
27. 2. 2022 7:22:1527.02.22
komu: deal.II User Group
Hi,

I'm trying to install deal.ii on a recently reformatted machine but I get the following compilation error

[ 54%] Building CXX object source/opencascade/CMakeFiles/obj_opencascade_debug.dir/utilities.cc.o
/home/jose/source/dealii/source/opencascade/utilities.cc:47:12: fatal error: BRepAdaptor_HCompCurve.hxx: No such file or directory
   47 | #  include <BRepAdaptor_HCompCurve.hxx>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [source/opencascade/CMakeFiles/obj_opencascade_debug.dir/build.make:76: source/opencascade/CMakeFiles/obj_opencascade_debug.dir/utilities.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:5454: source/opencascade/CMakeFiles/obj_opencascade_debug.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

To install Opencascade I followed the instructions found on the Gmsh compilation page. Has anyone gotten and solved this error?

Best regards,
Jose

Wolfgang Bangerth

nepřečteno,
28. 2. 2022 11:15:4528.02.22
komu: dea...@googlegroups.com

Jose:
does that file exist on your system? And what version of OpenCascade do
you have installed?
Best
W.


On 2/27/22 05:22, jose.a...@gmail.com wrote:
> *** Caution: EXTERNAL Sender ***
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.onelab.info%2Fgmsh%2Fgmsh%2F-%2Fwikis%2FGmsh-compilation&data=04%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cf37717b85622412fda8508d9f9ebcbc9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637815615029095059%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=pxo1OFIPPOWu7G0DjQ0PWIYoYA6giMEBR75z%2F%2Bxl5bw%3D&reserved=0>.
> Has anyone gotten and solved this error?
>
> Best regards,
> Jose
>
> --
> The deal.II project is located at http://www.dealii.org/
> <https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.dealii.org%2F&data=04%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cf37717b85622412fda8508d9f9ebcbc9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637815615029095059%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=4ncGlKmp1SBS1vXc0a54WoBeKf%2BYJfo9Hef4oQU3EXo%3D&reserved=0>
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fforum%2Fdealii%3Fhl%3Den&data=04%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cf37717b85622412fda8508d9f9ebcbc9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637815615029095059%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=NVYf7KGUi761JTHHjAIt76stYvRQKDQxi15d5xdOy%2BA%3D&reserved=0>
> ---
> You received this message because you are subscribed to the Google
> Groups "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dealii+un...@googlegroups.com
> <mailto:dealii+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/3bbc9e45-912b-4683-8cf9-cd73bb41c80cn%40googlegroups.com
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fdealii%2F3bbc9e45-912b-4683-8cf9-cd73bb41c80cn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cf37717b85622412fda8508d9f9ebcbc9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637815615029095059%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=xajVnD2Z7EkLc%2Fr7r1yKqoB7nEMcX5Uy%2BpJGaq1Igx0%3D&reserved=0>.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

jose.a...@gmail.com

nepřečteno,
28. 2. 2022 15:50:4228.02.22
komu: deal.II User Group
Hi Wolfgang,

I installed version 7.5 and the file does exists:

jose@ThinkPad-T460:~/source/dealii_build$ sudo find / -type f -name "BRepAdaptor_HCompCurve.hxx"
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/local/occt-V7_5_0/include/opencascade/BRepAdaptor_HCompCurve.hxx
/usr/include/opencascade/BRepAdaptor_HCompCurve.hxx
/home/jose/source/occt-V7_5_0/build/include/opencascade/BRepAdaptor_HCompCurve.hxx
/home/jose/source/occt-V7_5_0/src/BRepAdaptor/BRepAdaptor_HCompCurve.hxx
jose@ThinkPad-T460:~/source/dealii_build$

Best regards,
Jose

Wolfgang Bangerth

nepřečteno,
28. 2. 2022 15:58:2028.02.22
komu: dea...@googlegroups.com
On 2/28/22 13:50, jose.a...@gmail.com wrote:
>
> jose@ThinkPad-T460:~/source/dealii_build$ sudo find / -type f -name
> "BRepAdaptor_HCompCurve.hxx"
> find: ‘/run/user/1000/doc’: Permission denied
> find: ‘/run/user/1000/gvfs’: Permission denied
> /usr/local/occt-V7_5_0/include/opencascade/BRepAdaptor_HCompCurve.hxx
> /usr/include/opencascade/BRepAdaptor_HCompCurve.hxx

It's slightly concerning that you have two of these files. Regardless,
the question then is why your compiler then doesn't pick it up. Can you
compile with
make VERSBOSE=ON
again to see what the command line is, and specifically which include
paths are set with -I?

Best
W.

jose.a...@gmail.com

nepřečteno,
28. 2. 2022 17:01:5428.02.22
komu: deal.II User Group
Here is the output:

[ 54%] Building CXX object source/opencascade/CMakeFiles/obj_opencascade_debug.dir/utilities.cc.o
cd /home/jose/source/dealii_build/source/opencascade && /usr/bin/c++ -DBOOST_NO_AUTO_PTR -DDEBUG -I/home/jose/source/dealii_build/source/opencascade -I/home/jose/source/dealii_build/include -I/home/jose/source/dealii/include -isystem /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -isystem /usr/lib/x86_64-linux-gnu/openmpi/include -isystem /usr/include/trilinos -isystem /usr/include/hdf5/openmpi -isystem /usr/include/scotch -isystem /usr/include/suitesparse -isystem /usr/local/petsc-3.12.5/include -isystem /usr/local/include/opencascade -isystem /usr/local/p4est-2.2/FAST/include -isystem /usr/include/slepc -pedantic -fPIC -Wall -Wextra -Wmissing-braces -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch -Wsynth -Wwrite-strings -Wno-placement-new -Wno-deprecated-declarations -Wno-literal-suffix -Wno-psabi -Wno-class-memaccess -fopenmp-simd -pthread -Wno-unused-local-typedefs -O0 -ggdb -Wa,--compress-debug-sections -MD -MT source/opencascade/CMakeFiles/obj_opencascade_debug.dir/utilities.cc.o -MF CMakeFiles/obj_opencascade_debug.dir/utilities.cc.o.d -o CMakeFiles/obj_opencascade_debug.dir/utilities.cc.o -c /home/jose/source/dealii/source/opencascade/utilities.cc

/home/jose/source/dealii/source/opencascade/utilities.cc:47:12: fatal error: BRepAdaptor_HCompCurve.hxx: No such file or directory
   47 | #  include <BRepAdaptor_HCompCurve.hxx>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [source/opencascade/CMakeFiles/obj_opencascade_debug.dir/build.make:76: source/opencascade/CMakeFiles/obj_opencascade_debug.dir/utilities.cc.o] Error 1
make[2]: Leaving directory '/home/jose/source/dealii_build'

make[1]: *** [CMakeFiles/Makefile2:5454: source/opencascade/CMakeFiles/obj_opencascade_debug.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Best regards,
Jose

Wolfgang Bangerth

nepřečteno,
28. 2. 2022 21:33:4628.02.22
komu: dea...@googlegroups.com
On 2/28/22 15:01, jose.a...@gmail.com wrote:
> *** Caution: EXTERNAL Sender ***
>
> Here is the output:
>
> [ 54%] Building CXX object
> source/opencascade/CMakeFiles/obj_opencascade_debug.dir/utilities.cc.o
> cd /home/jose/source/dealii_build/source/opencascade && /usr/bin/c++
> -DBOOST_NO_AUTO_PTR -DDEBUG
> -I/home/jose/source/dealii_build/source/opencascade
> -I/home/jose/source/dealii_build/include -I/home/jose/source/dealii/include
> -isystem /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -isystem
> /usr/lib/x86_64-linux-gnu/openmpi/include -isystem /usr/include/trilinos
> -isystem /usr/include/hdf5/openmpi -isystem /usr/include/scotch -isystem
> /usr/include/suitesparse -isystem /usr/local/petsc-3.12.5/include -isystem
> /usr/local/include/opencascade -isystem /usr/local/p4est-2.2/FAST/include
> -isystem /usr/include/slepc -pedantic -fPIC -Wall -Wextra -Wmissing-braces


So this contains
-isystem /usr/local/include/opencascade
where it would expect the include file, but you have it here:

> > /usr/local/occt-V7_5_0/include/opencascade/BRepAdaptor_HCompCurve.hxx
> > /usr/include/opencascade/BRepAdaptor_HCompCurve.hxx

The question is how everything ended up in the wrong directories. How did you
install OpenCASCADE?

jose.a...@gmail.com

nepřečteno,
6. 3. 2022 17:16:5606.03.22
komu: deal.II User Group
Hi,

I deleted all the /usr/ folders and installed opencascade from scratch following the gmsh guide I mentioned above. It seems I did indeed something wrong during the first installation as it is working now.

make test is failing but I'll try to solve it on my own first.

Thanks for the help!

Regards,
Jose
Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv