Page MenuHome

External OSL scripts are not compiled anymore
Closed, DuplicatePublic

Description

System Information
Operating system: Windows 10

Blender Version
Broken: 2.93.0 Alpha, branch: master, commit date: 2021-04-06 21:02, hash: e0a1a2f49dab
Worked: 2.91, 2.92

Recent 2.93 always gives cryptic errors when trying to compile any OSL script:

ERROR: error: C:\_WPLabs\Downloads\oslScriptFail.osl:1:10: warning: non-portable path to file '"c\\_WPLabssProgramsmblender29322.932scriptsraddonsacycles\shader\stdcycles.hd'; specified path differs in case from file name 
on disk
#include "c:\\_WPLabs\\Programs\\blender293\\2.93\\scripts\\addons\\cycles\\shader\\stdcycles.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "c\\_WPLabssProgramsmblender29322.932scriptsraddonsacycles\shader\stdcycles.hd
Error: OSL script compilation failed, see console for errors

Scripts are perfectly valid, even simple oneliner cant compile with recent alpha.

To reproduce: try to reload script in attached blend and look into console for this error


Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Thu, Apr 8, 2:18 PM

Can confirm, will check.

note I am getting a slightly different error:

ERROR: error: In file included from /08_Bugtracker_reports/T87279/oslScriptFail.osl:1:
/2.93/scripts/addons/cycles/shader/stdcycles.h:31:10: fatal error: 'stdosl.h' file not found
#include "stdosl.h"
         ^~~~~~~~~~
Philipp Oeser (lichtwerk) triaged this task as High priority.Thu, Apr 8, 3:33 PM

Cant repro here in a local build, but can with the builds from buildbot.
I assume this has to do with the library upgrades in SVN r62577?

Actually, this has been reported before, see T86928: Error: OSL script compilation failed, will merge these reports.

Hopefully a631a9eb1f0b solves this for you @Ilja Razinkov (IPv6).

What I am wondering about is how c:\\_WPLabs\\Programs\\blender293\\2.93\\scripts\\addons\\cycles\\shader\\stdcycles.h gets changed to c\\_WPLabssProgramsmblender29322.932scriptsraddonsacycles\shader\stdcycles.hd
: gets dropped and 7 \ are replaced with s m 2 2 r a d

This comment was removed by Ilja Razinkov (IPv6).
Ilja Razinkov (IPv6) added a comment.EditedSun, Apr 11, 6:46 PM

Sorry, but latest build STILL gives compilation problems. I assume that build already contain commit?

version: 2.93.0 Alpha, branch: master, commit date: 2021-04-10 16:36, hash: ed5507de8a25, type: Release

Moreover, Blender hangs when i tryed to compile script // Once. Most of times this gives error (with mistry chops), once it hanged completely

System-info:


It is still not working (latest build from 14 apr)... really wish to switch for 2.93 because of Geometry Nodes, but this problem completely break workflow :(

Should i create another bug report instead of this one?