Cycles OSL - compiling shaders failing due "\" and "n" symbols combination inside include paths - Needs OSL update #83631
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#83631
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10 Enterprise 1909 18363.1198
Graphics card: Intel(R) UHD Graphics 620
OSL Compiler version: 1.10.10
Blender Version
Broken:
46e66d154c
Short description of error
During building OSL shaders a compiler reports errors like this:
The problem is, that "" and "n" symbol combinations, which naturally appears in file paths, handled as new line, which cause fail of the file including.
Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
P.S. Is it upstream problem and should be reported to OSL compiler tracker?
Added subscriber: @Sirgienko
Added subscriber: @maxim_d33
CC: @maxim_d33
Added subscribers: @LazyDodo, @EAW
Researching this, it looks like this was fixed upstream already, fixed in Blender, then broken again? I'll have to test.
b9c9b00171
stdosl.h
issue fixed in a commit Feb 11 D6812: Fix: OSL warnings during builddf1e9b662b
8d60e6fa38
Fixed on Feb 17 see #73830 (Blender complains that it cannot find "stdosl.h", despite it existing at "/usr/share/OSL/shaders/stdosl.h") for further details.@LazyDodo Is a pair of parenthesis missing in a CMake file? Did fixing Linux break Windows perhaps?
No this is an issue in oslc nothing we do on the blender side can fix/unfix this behavior.
i'd have to test with the latest osl to see if the issue has been fixed already and if not report it upstream.
Added subscriber: @brecht
The bug was fixed in the clang code path in #1101, but the boost_wave codepath above it still has the issue which sadly is the current path our libraries take.
couple of options here
@brecht thoughts?
I wouldn't mind upgrading to 1.11. I already did adjustments for API changes a bit before the release, hopefully it will just build and work as is. But if note I can update the code.
Changed status from 'Needs Triage' to: 'Confirmed'
I managed to build 1.11, passes all tests without any modifications in blender (and fixes this issue). The deps builder for osl needed some more substantial changes and cleanup, i'll try to get that polished up in the next couple of days.
Thanks!
Cycles OSL - compiling shaders failing due "\" and "n" symbols combination inside include pathsto Cycles OSL - compiling shaders failing due "\" and "n" symbols combination inside include paths - Needs OSL updateThis issue was referenced by blender/cycles@5fe5537a34
This issue was referenced by
4fb0c83c1c
Added subscriber: @hargettp
FYI, the commit in D10212 broke builds on Mac OS X Big Sur (Apple M1 Mac / darwin arm64).
The error after running
make
is:The contents of CMakeError.log are:
The commit just before this one still builds just fine.
Update your svn libs, @sebbas was on that yesterday, i assume that was completed?
Added subscriber: @sebbas
I see you're on Apple M1. @hargettp the libs still have to be updated for that, so far the changes only considered x86.
As soon as I have access to an M1 machine again, I'll make the lib update.
@LazyDodo Yeah, I think it's time to make Apple arm a hard requirement for lib updates.
Ah this makes sense @sebbas ; I ran
make update
before doing a fresh build, so missing ARM libraries would certainly do it.@hargettp ARM libraries have been updated, so after
make update
builds should work again!Worked like a charm and running again on Apple M1--thx @sebbas !
Changed status from 'Confirmed' to: 'Resolved'
Great, let's consider this resolved then.