OSL broken on Linux kubuntu 14.04 #41318

Closed
opened 2014-08-04 22:03:17 +02:00 by Arie van den berg · 15 comments

System Information
Operating system and graphics card
Linux-x86_64 Ubuntu 14.04 (trusty) kernel 3.13.0-32-generic
NVIDIA GeForce GTX 660
NVIDIA Driver Version: 331.38

Blender Version
broken Kubuntu 14.04 Blender self-built 2.71.3 Hash: e4a13e4
broken Kubuntu 14.04 Blender daily-builds 2.71.3 Hash: 3e607f6
working Kubuntu 14.04 Blender officeel 2.71
working on virtual windows 7 Blender daily-builds 2.71.3 Hash: a90e49e

Short description of error
OSL script compilation failed, see console for errors

Exact steps for others to reproduce the error
Open Blender choose Cycles Render, in the render proporties check Open Shading Language.
Add default material to the default Cube (Uses Nodes).
Open Text Editor, choose Templates -> Open Shading Language choose one (Noise)
open the Node Editor add node Script -> internal -> noise.osl nothing happens.
Click on update shader. Error: OSL script compilation failed, see console for errors
text on console:
Read new prefs: /home/avdb/.config/blender/2.71/config/userpref.blend
found bundled python: /home/avdb/blender-git/build_linux/bin/2.71/python
read blend: /home/avdb/Blender/blender2.50/mech-kip/test-osl.blend
sh: 1: Syntax error: Unterminated quoted string
Error: OSL script compilation failed, see console for errors
test-osl.blend

**System Information** Operating system and graphics card Linux-x86_64 Ubuntu 14.04 (trusty) kernel 3.13.0-32-generic NVIDIA GeForce GTX 660 NVIDIA Driver Version: 331.38 **Blender Version** broken Kubuntu 14.04 Blender self-built 2.71.3 Hash: e4a13e4 broken Kubuntu 14.04 Blender daily-builds 2.71.3 Hash: 3e607f6 working Kubuntu 14.04 Blender officeel 2.71 working on virtual windows 7 Blender daily-builds 2.71.3 Hash: a90e49e **Short description of error** OSL script compilation failed, see console for errors **Exact steps for others to reproduce the error** Open Blender choose Cycles Render, in the render proporties check Open Shading Language. Add default material to the default Cube (Uses Nodes). Open Text Editor, choose Templates -> Open Shading Language choose one (Noise) open the Node Editor add node Script -> internal -> noise.osl nothing happens. Click on update shader. Error: OSL script compilation failed, see console for errors text on console: Read new prefs: /home/avdb/.config/blender/2.71/config/userpref.blend found bundled python: /home/avdb/blender-git/build_linux/bin/2.71/python read blend: /home/avdb/Blender/blender2.50/mech-kip/test-osl.blend sh: 1: Syntax error: Unterminated quoted string Error: OSL script compilation failed, see console for errors [test-osl.blend](https://archive.blender.org/developer/F101475/test-osl.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @ArievandenBerg

Added subscriber: @ArievandenBerg

forget system information:
Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
16000 Mib memory

forget system information: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz 16000 Mib memory

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

Cannot confirm the issue on Windows with 7f32cf4. (OSL 1.5).

Cannot confirm the issue on Windows with 7f32cf4. (OSL 1.5).

Added subscriber: @mont29

Added subscriber: @mont29

Can confirm the issue here with own build (debian64), though after insisting a bit I usually manage to get it compiling (can't find what makes it work :/ ). Here is a session log:

read blend: /home/i74700deb64/Téléchargements/test-osl.blend
sh: 1: Syntax error: Unterminated quoted string
Error: OSL script compilation failed, see console for errors

sh: 1: Syntax error: Unterminated quoted string
Error: OSL script compilation failed, see console for errors

sh: 1: Syntax error: Unterminated quoted string
Error: OSL script compilation failed, see console for errors

sh: 1: Syntax error: Unterminated quoted string
Error: OSL script compilation failed, see console for errors

sh: 1: Syntax error: Unterminated quoted string
Error: OSL script compilation failed, see console for errors

cpp: error: /home/i74700deb64/blender/__work__/build_cmake/bin/2.71/scripts/addons/cycles/shader/s: Aucun fichier ou dossier de ce type
cpp: warning: ‘-x c’ after last input file has no effect
cpp: fatal error: no input files
compilation terminated.
Error: OSL script compilation failed, see console for errors

cpp: error: /home/i74700deb64/blender/__work__/build_cmake/bin/2.71/scripts/addons/cycles/shader/s: Aucun fichier ou dossier de ce type
cpp: warning: ‘-x c’ after last input file has no effect
cpp: fatal error: no input files
compilation terminated.
Error: OSL script compilation failed, see console for errors

cpp: error: /home/i74700deb64/blender/__work__/build_cmake/bin/2.71/scripts/addons/cycles/shader/s: Aucun fichier ou dossier de ce type
cpp: warning: ‘-x c’ after last input file has no effect
cpp: fatal error: no input files
compilation terminated.
Error: OSL script compilation failed, see console for errors

Info: OSL shader compilation succeeded

WARNING: attempting to set parameter with wrong type: Point (exepected 'point', received 'normal')
WARNING: attempting to set parameter with wrong type: Point (exepected 'point', received 'vector')
Saved session recovery to '/tmp/quit.blend'
Error: Not freed memory blocks: 13523

Blender quit

So far, always got that sequence (sh: 1 error, then the cpp ones, then it works…) :(

Can confirm the issue here with own build (debian64), though after insisting a bit I usually manage to get it compiling (can't find what makes it work :/ ). Here is a session log: ``` read blend: /home/i74700deb64/Téléchargements/test-osl.blend sh: 1: Syntax error: Unterminated quoted string Error: OSL script compilation failed, see console for errors sh: 1: Syntax error: Unterminated quoted string Error: OSL script compilation failed, see console for errors sh: 1: Syntax error: Unterminated quoted string Error: OSL script compilation failed, see console for errors sh: 1: Syntax error: Unterminated quoted string Error: OSL script compilation failed, see console for errors sh: 1: Syntax error: Unterminated quoted string Error: OSL script compilation failed, see console for errors cpp: error: /home/i74700deb64/blender/__work__/build_cmake/bin/2.71/scripts/addons/cycles/shader/s: Aucun fichier ou dossier de ce type cpp: warning: ‘-x c’ after last input file has no effect cpp: fatal error: no input files compilation terminated. Error: OSL script compilation failed, see console for errors cpp: error: /home/i74700deb64/blender/__work__/build_cmake/bin/2.71/scripts/addons/cycles/shader/s: Aucun fichier ou dossier de ce type cpp: warning: ‘-x c’ after last input file has no effect cpp: fatal error: no input files compilation terminated. Error: OSL script compilation failed, see console for errors cpp: error: /home/i74700deb64/blender/__work__/build_cmake/bin/2.71/scripts/addons/cycles/shader/s: Aucun fichier ou dossier de ce type cpp: warning: ‘-x c’ after last input file has no effect cpp: fatal error: no input files compilation terminated. Error: OSL script compilation failed, see console for errors Info: OSL shader compilation succeeded WARNING: attempting to set parameter with wrong type: Point (exepected 'point', received 'normal') WARNING: attempting to set parameter with wrong type: Point (exepected 'point', received 'vector') Saved session recovery to '/tmp/quit.blend' Error: Not freed memory blocks: 13523 Blender quit ``` So far, always got that sequence (`sh: 1` error, then the cpp ones, then it works…) :(
Member

Added subscriber: @MartijnBerger

Added subscriber: @MartijnBerger
Member

@mont29 can you check / verify what versions of llvm and or clang exist in your system.
The osl build can really not tolerate other llvm / clang then the one you are building against.

@mont29 can you check / verify what versions of llvm and or clang exist in your system. The osl build can really not tolerate other llvm / clang then the one you are building against.
Sergey Sharybin self-assigned this 2014-08-05 09:27:14 +02:00
Sergey Sharybin was unassigned by Martijn Berger 2014-08-05 11:14:27 +02:00
Martijn Berger self-assigned this 2014-08-05 11:14:27 +02:00
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Closed by: b9e4929846

Closed by: b9e4929846

This issue was referenced by b3e3ca7464

This issue was referenced by b3e3ca7464074ca76cd8761f9a94724ff6730349

It's compiling now but is not quite right, see OSL error.png{F101550}

It's compiling now but is not quite right, see OSL error.png{[F101550](https://archive.blender.org/developer/F101550/OSL-error.png)}

This issue was referenced by 4cf531f7a0

This issue was referenced by 4cf531f7a05434a9bbd6144a7ec0314e60aaff40

Works fine now, thanks

Works fine now, thanks
Sign in to join this conversation.
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
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#41318
No description provided.