install_deps.sh fails when compiling OSL #39938
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#39938
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
Tested on Xubuntu and Ubuntu 14.04
Blender Version
Broken: currently
Worked: prior to April 24 2014
Short description of error
From a clean install (i.e. no Blender source, no /opt/lib/ or ~/src folders), follow the standard build instructions for Ubuntu up to and including the point where you run install_deps.sh
Troubleshooting so far:
Problem appears to be from changes introduced to OSL's src/cmake/modules/FindIlmBase.cmake file on April 24 2014, diff is here:
17ce27739b (diff-10b22e8cc61b4493866c72933aeafa5c)
Regressing the changes to FindIlmBase.cmake manually and re-running install_deps.sh with "git reset --hard" commented out of the compile_OSL() function got OSL building again successfully.
Can confirm that install_deps.sh followed the "else" path through these two lines of FindIlmBase.cmake - these are commented out in the current non-working version:
Not sure how to proceed from here myself but it appears you can feed CMake a var with the correct library names - ILMBASE_CUSTOM_LIBRARIES -- I'm not sure of the exact syntax to do this from install_deps.sh otherwise I'd keep hacking. Over to you!
Changed status to: 'Open'
Added subscriber: @quollism
Thought I jagged a fix for this but I didn't. Could be helpful to know this all the same:
Tried changing this part of install_deps.sh compile_OSL() function:
To this:
This mostly gets OSL compiling again, but it errors near the end:
...
[ 97%] Building CXX object src/testshade/CMakeFiles/testshade.dir/testshademain.cpp.o
Linking CXX executable testshade
/usr/bin/ld: CMakeFiles/testshade.dir/simplerend.cpp.o: undefined reference to symbol '_ZN7Iex_2_17BaseExcD2Ev'
/opt/lib/openexr/lib/libIex-2_1.so.11: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make- [x]: *** [src/testshade/testshade] Error 1
make- [x]: *** [src/testshade/CMakeFiles/testshade.dir/all] Error 2
make- [x]: *** Waiting for unfinished jobs....
[ 98%] Building CXX object src/testrender/CMakeFiles/testrender.dir/simplerend.cpp.o
[100%] Building CXX object src/testrender/CMakeFiles/testrender.dir/testrender.cpp.o
Linking CXX executable testrender
/usr/bin/ld: CMakeFiles/testrender.dir/simplerend.cpp.o: undefined reference to symbol '_ZN7Iex_2_17BaseExcD2Ev'
/opt/lib/openexr/lib/libIex-2_1.so.11: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make- [x]: *** [src/testrender/testrender] Error 1
make- [x]: *** [src/testrender/CMakeFiles/testrender.dir/all] Error 2
make: *** [all] Error 2
ERROR! OpenShadingLanguage-1.4.0 failed to compile, exiting
So whatever the fix for this is, it's not that. OSL builds just fine with the older version of FindIlmBase.cmake though. Go figure.
Added subscriber: @mont29
I’d like to get the log of the error in install_deps from the unchanged (trunk) version…
Also, did install_deps build openexr, or did it installed it from ubuntu's packages?
install_deps builds both IlmBase and OpenEXR itself just fine.
Error log as follows:
Grmll… stupid CMake could at least spit out libs he does not find, instead of stupid var names!
Anyway, thanks for the log, will try and see whether I can reproduce that somehow :/
Added subscriber: @plasmasolutions
Added subscriber: @nudelZ
This issue was referenced by blender/blender-addons-contrib@9fb4c487ed
This issue was referenced by
9fb4c487ed
Changed status from 'Open' to: 'Resolved'
Closed by commit
9fb4c487ed
.Added subscriber: @sunnystormy
Tried compiling version 2.75a on Fedora 22 today and got this:
After testing with a "sudo dnf install ilmbase" I found that I already have this package installed:
Any thoughts?
Added subscriber: @heath_petty
I'm seeing the exact same issue on Fedora 22: