eosnetworkfoundation / mandel.cdt

Obsolete. Use https://github.com/AntelopeIO/cdt instead.
Other
7 stars 2 forks source link

ccache duplicating generation of .obj files #7

Closed ClaytonCalabrese closed 2 years ago

ClaytonCalabrese commented 2 years ago

Using WSL 2.0 with Ubuntu 20.04, I was attempting to build mandel.cdt. I repeatedly ran into missing symbol errors, regardless of the version of mandel.cdt I was using. Eventually I narrowed the culprit to ccache, which was taking the first generated .obj file and duplicating it across all other .obj files.

This meant that each .obj file had the same symbols as crypt.obj, meaning symbols such as strlen, memcmp and others were always missing when trying to compile.

I was able to resolve this by disabling ccache using the following command export CCACHE_DISABLE=1. Due to being avoidable, I don't consider this bug to be of any urgency to resolve.

larryk85 commented 2 years ago

Thanks Clayton, I will add a cmake flag to disable CCACHE entirely. Or did you want to work on it?

larryk85 commented 2 years ago

Also, we have a new tool that we are trying to get going called DUNE. Can I ask that you be a guinea pig for that tool?