Build Issue

55 views
Skip to first unread message

Mohammad Wasfi

unread,
Oct 28, 2022, 12:28:52 PM10/28/22
to ProjectChrono
Hello, 

I am trying to link the chrono-projects branch to Chrono and I am able to configure and generate with any problems. However, I get the following error in the attached picture when I try to make it. I am using (cuda/11.6.0, and eigen/3.4.0-gcc-11.2.0). 


Thank you, 

error.png

Radu Serban

unread,
Oct 29, 2022, 9:49:33 AM10/29/22
to ProjectChrono

Mohammad,

 

Could you please confirm the compiler and compiler version you are using? Not sure if it is GCC-11.2, or if that is part of your eigen installation name.

 

Also, when configuring chrono-projects with CMake enable CMAKE_VERBOSE_MAKEFILE and then post here the full compile command where the error occurs.

 

Thanks,
Radu

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/302ddfff-79a1-4e67-ab00-6793ad88f61en%40googlegroups.com.

Mohammad Wasfi

unread,
Oct 29, 2022, 7:34:04 PM10/29/22
to ProjectChrono
Hi Ruda,

Yes, I am using GCC/11.2.0.

I have enabled the CMAKE_VERBOSE_MAKEFILE and attached is the error I see on the screen. Not sure if that is what you meant by "the full command" but I just took a screen shoot of the entire screen. 

Thank you, 

error.png

Radu Serban

unread,
Oct 30, 2022, 5:45:35 AM10/30/22
to ProjectChrono

Mohammad,

 

Please make sure you pull the latest Chrono code in the ‘main’ branch of the repository, then reconfigure with CMake and rebuild.  I had fixed this issue a while back, but you are likely using an older version of the Chrono code.

 

To make sure you have the fix, once you reconfigured Chrono with CMake, look at the file cmake/ChronoConfig.cmake in your *build* tree.  Starting at line 71, it should contain something like:

# Collect compiler and linker flags in CMake lists!

string(REGEX REPLACE "[ \t]+" ";" CHRONO_CXX_FLAGS " -pthread -fopenmp -march=native")

string(REGEX REPLACE "[ \t]+" ";" CHRONO_C_FLAGS " -pthread -fopenmp -march=native")

string(REGEX REPLACE "[ \t]+" ";" CHRONO_LINKER_FLAGS "")

 

--Radu

Reply all
Reply to author
Forward
0 new messages