Can't compile dforce kernels - get linking error

Hi,

I've just started using DAZ and I wanted to play with Dforce for fabric draping.

When I click on "simulate" I get a message saying I need to compile my DForce Kernel. Fair enough, except that it fails to compile.

Looking at my log file, It seems the linker doesn't like something:

lld: error: undefined hidden symbol: find_coplanarity_times
>>> referenced by C:\Users\dahills\AppData\Local\Temp\comgr-b3a28a\input\linked.bc.o:(calcVertTriCollisionCollidePoint)
>>> referenced by C:\Users\dahills\AppData\Local\Temp\comgr-b3a28a\input\linked.bc.o:(calcVertTriCollisionCollidePoint)
Error: Creating the executable from LLVM IRs failed.

2021-07-31 20:56:51.267 WARNING: ..\..\..\src\dzopenclkernelfactory.cpp(499): ERROR: clBuildProgram (-11)
2021-07-31 20:56:51.267 WARNING: Source built for calcTriVertCollisionCollideFace. Build log:

lld: error: undefined hidden symbol: find_coplanarity_times
>>> referenced by C:\Users\dahills\AppData\Local\Temp\comgr-b031a9\input\linked.bc.o:(calcTriVertCollisionCollideFace)
>>> referenced by C:\Users\dahills\AppData\Local\Temp\comgr-b031a9\input\linked.bc.o:(calcTriVertCollisionCollideFace)
Error: Creating the executable from LLVM IRs failed.

2021-07-31 20:56:53.413 WARNING: ..\..\..\src\dzopenclkernelfactory.cpp(499): ERROR: clBuildProgram (-11)
2021-07-31 20:56:53.413 WARNING: Source built for calcEdgeCollisionCollideEdge. Build log:

lld: error: undefined hidden symbol: find_coplanarity_times
>>> referenced by C:\Users\dahills\AppData\Local\Temp\comgr-32070e\input\linked.bc.o:(calcEdgeCollisionCollideEdge)
>>> referenced by C:\Users\dahills\AppData\Local\Temp\comgr-32070e\input\linked.bc.o:(calcEdgeCollisionCollideEdge)
Error: Creating the executable from LLVM IRs failed.

Any ideas what I can do about that?

I've got a Radeon RX5700 XT graphics card 

Comments

  • The problems are the LLVM IRs. These are not standard codes. So there is no way to determine if a standard OpenCL implementation can compile it or not. The standard IR for OpenCL is SPIR-V now.

  • TheRendererMen said:

    The problems are the LLVM IRs. These are not standard codes. So there is no way to determine if a standard OpenCL implementation can compile it or not. The standard IR for OpenCL is SPIR-V now.

    I just installed DAZ 4.20 on Windows 10 with an AMD RD 5800 XT card and I'm getting the "Error initializing  OpenCL kernels" message.

    Is there a fix for this yet?

  • Been back and forward with support for weeks now, they just keep getting me to send the log files over and over again even though they always show exactly the same thing.

    One small glimmer of hope is that the most recent email from them provided a copy of an old version of DAZ studio (4.16) for me to try but that has exactly the same problem.

    Given that people have been reporting this problem since the middle of last year and there's still no sign of a fix does anyone know of a workaround?

    (Short of selling a kidney to buy a high end nVidia GPU from a scalper, of course)

Sign In or Register to comment.