Install Deps OSL 1.7.1 and clang-3.5 #47939

Closed
opened 2016-03-25 21:13:38 +01:00 by Stefan Büttner · 10 comments

Hey there,

the default version for llvm/clang used in the install_deps.sh script is 3.4. Since I didn't find clang-3.4 for my distribution, I tried 3.5 and 3.6. However, both of them faild building OSL 1.7.1.
Clang-3.5 requires OSL_BUILD_CPP11 to be set whereas OSL 1.7.1 does apparently not build with Clang-3.6 at all (https://github.com/imageworks/OpenShadingLanguage/issues/480).

So this patch should fix the Clang-3.5 problem and issue an error in case using a newer Clang version.

Cheers,
Stefan

osl-clang-3.5.patch

Hey there, the default version for llvm/clang used in the install_deps.sh script is 3.4. Since I didn't find clang-3.4 for my distribution, I tried 3.5 and 3.6. However, both of them faild building OSL 1.7.1. Clang-3.5 requires OSL_BUILD_CPP11 to be set whereas OSL 1.7.1 does apparently not build with Clang-3.6 at all (https://github.com/imageworks/OpenShadingLanguage/issues/480). So this patch should fix the Clang-3.5 problem and issue an error in case using a newer Clang version. Cheers, Stefan [osl-clang-3.5.patch](https://archive.blender.org/developer/F298295/osl-clang-3.5.patch)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @StefanButtner

Added subscriber: @StefanButtner

Well, better use this patch >.<

osl-clang-3.5.patch

Well, better use this patch >.< [osl-clang-3.5.patch](https://archive.blender.org/developer/F298305/osl-clang-3.5.patch)

Added subscriber: @mont29

Added subscriber: @mont29
Bastien Montagne self-assigned this 2016-03-26 00:30:53 +01:00

Thanks for the patch, but it’s not only an issue for llvm/osl, it’s also an issue in Blender itself then, where you need to enable cpp11 etc.

So for now let’s keep install_deps as is, it’s already complicated enough, and let’s stick to officially supported version of llvm (3.4). Will update the script to only accept 3.4 packages (will build own llvm/clang otherwise).

Thanks for the patch, but it’s not only an issue for llvm/osl, it’s also an issue in Blender itself then, where you need to enable cpp11 etc. So for now let’s keep install_deps as is, it’s already complicated enough, and let’s stick to officially supported version of llvm (3.4). Will update the script to only accept 3.4 packages (will build own llvm/clang otherwise).

This issue was referenced by eac770a33a

This issue was referenced by eac770a33ad0bc0f00fc82f579fde7c62aa48a87

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Okay. Yet this it still fails on my system because the scripts assumes that if llvm-3.4-dev is available, also clang-3.4 is available. However, this is not the case (although I'm not sure if that's a problem of my system due to misconfiguration, though). But apt-cache show llvm-3.4-dev shows no dependencies to clang. So the script should also check if clang is available, shouldn't it?

What about something like this?
llvm-clang.patch

Okay. Yet this it still fails on my system because the scripts assumes that if *llvm-3.4-dev* is available, also *clang-3.4* is available. However, this is not the case (although I'm not sure if that's a problem of my system due to misconfiguration, though). But *apt-cache show llvm-3.4-dev* shows no dependencies to clang. So the script should also check if clang is available, shouldn't it? What about something like this? [llvm-clang.patch](https://archive.blender.org/developer/F298348/llvm-clang.patch)

Good point. In fact, it’s clang which depends on llvm (same version), so should be enough to check on clang package version.

Good point. In fact, it’s clang which depends on llvm (same version), so should be enough to check on clang package version.

This issue was referenced by 9317f9c055

This issue was referenced by 9317f9c05562671aaa0ac8e4d28aa1bb5e688a0b
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
3 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#47939
No description provided.