miningcore
miningcore copied to clipboard
Build fail on dependancies
Since few days, the build is failing on dependancies in my docker dev container:
g++ -shared -pthread -L. -Wl,-whole-archive librandomx.a -Wl,-no-whole-archive -o librandomarq.so -lstdc++ -lgcc -lc /workspace/miningcore/src/Miningcore/Miningcore.csproj(123,9): error MSB3073: The command "(cd /workspace/miningcore/src/Miningcore/ && sh build-libs-linux.sh bin/Debug/net6.0/)" exited with code -1.
Build FAILED.
crypto/oaes_lib.c(514,2): warning GAB0B5702: 'ftime' is deprecated [-Wdeprecated-declarations] [/workspace/miningcore/src/Miningcore/Miningcore.csproj] /usr/lib/gcc/x86_64-linux-gnu/10/include/wmmintrin.h(87,1): error GA9D18FE8: inlining failed in call to 'always_inline' '_mm_aeskeygenassist_si128': target specific option mismatch [/workspace/miningcore/src/Miningcore/Miningcore.csproj] /usr/lib/gcc/x86_64-linux-gnu/10/include/avxintrin.h(454,1): error GA9D18FE8: inlining failed in call to 'always_inline' '__m256 _mm256_cvtepi32_ps(__m256i)': target specific option mismatch [/workspace/miningcore/src/Miningcore/Miningcore.csproj] /usr/lib/gcc/x86_64-linux-gnu/10/include/avxintrin.h(908,1): error GA9D18FE8: inlining failed in call to 'always_inline' '__m256i _mm256_load_si256(const __m256i*)': target specific option mismatch [/workspace/miningcore/src/Miningcore/Miningcore.csproj] /workspace/miningcore/src/Miningcore/Miningcore.csproj(123,9): error MSB3073: The command "(cd /workspace/miningcore/src/Miningcore/ && sh build-libs-linux.sh bin/Debug/net6.0/)" exited with code -1. 1 Warning(s) 4 Error(s)
Time Elapsed 00:02:15.39
I tried with 'dotnet publish -c Debug --framework net6.0' and 'dotnet build', same result. But the weird thing is that my builder image for production is not failing. I'm not sure of what's wrong in my dev container, as it is the exact same docker image with same packages.
Im facing the same issue when I tried to set up by docker on MacOS
Im facing the same issue when I tried to set up by docker on MacOS
Are u using binding mount volume on your host file system for the sources?
Exact same problem here.
Miningcore.csproj(123,9): error MSB3073: The command "(cd /workspace/miningcore/src/Miningcore/ && sh build-libs-linux.sh bin/Debug/net6.0/)
Just for reference, when I run this command manualy it works perfectly:
cd /workspace/miningcore/src/Miningcore/ && sh build-libs-linux.sh bin/Debug/net6.0/
But still, can not compile Miningcore. I am running a LXD virtual-machine "images:ubuntu/20.04/cloud".
Thanks.
I've just tried to build Mining core using the release package v72 (https://github.com/oliverw/miningcore/archive/refs/tags/v72.tar.gz) instead of git cloning this repo and got this error when building it:
(cut) Building into ../../build MSBuild version 17.3.0+92e077650 for .NET Determining projects to restore... All projects are up-to-date for restore. Cannot find the .git directory /root/.nuget/packages/gitversion.msbuild/5.10.3/tools/GitVersion.MsBuild.targets(9,9): error MSB3073: The command "dotnet --roll-forward Major "/root/.nuget/packages/gitversion.msbuild/5.10.3/tools/netcoreapp3.1/gitversion.dll" "/root/miningcore-72/src/Miningcore" -output file -outputfile obj/gitversion.json" exited with code 1. [/root/miningcore-72/src/Miningcore/Miningcore.csproj] alien@mars:~/miningcore-72#
Can anyone give us updated directions on how to build Miningcore? If we follow the instructions available now it does not work.
Thanks.
Try this and see if it works. https://github.com/lurchinms/kriptokyng_miningcore
Try this and see if it works. https://github.com/lurchinms/kriptokyng_miningcore
Same problem. Tried ./build-ubuntu-20.04.sh on a a new virtual machine Ubuntu 20.04 LTS, totally updated.
@lurchinms I am using the image "images:ubuntu/20.04/cloud" on a LXD virtual machine. Maybe some packages are missing on this Ubuntu image, but I have no clue which ones.
@lurchinms I am running on a Xeon E5-2650L v2
@lurchinms Trying again on the same virtual machine but this time I increased the numbers of CPUs to 8 and the memory to 8GB. It worked!!
Compiled @lurchinms fork of miningcore without problem running ./build-ubuntu-20.04.sh on a virtual machine with Ubuntu 20.04, 8 cpus and 8GB of RAM.
On the other hand the original Miningcore did not build in this same virtual machine. I am attaching the full log of the build process.
Only error I noticed is this, but I do not know what is causing it:
/usr/lib/gcc/x86_64-linux-gnu/9/include/avx2intrin.h(913,1): error G3DA2B0AA: inlining failed in call to always_inline ‘__m256i _mm256_xor_si256(__m256i, __m256i)’: target specific option mismatch [/root/miningcore/src/Miningcore/Miningcore.csproj]
Because of this error the command (cd /root/miningcore/src/Miningcore/ && sh build-libs-linux.sh bin/Release/net6.0/)
exits with code -1 and the build breaks.
I hope this helps.
Oddly enough, if I run the command (cd /root/miningcore/src/Miningcore/ && sh build-libs-linux.sh bin/Release/net6.0/)
directly it works without any problem. It only crashes when called from the dotnet publish, inside the ./build-ubuntu-20.04.sh.
[SOLVED] #1350
Cannot reproduce anymore on dev
branch. Please request re-open if problem persists.