OpenShadingLanguage-1.7.5 failed to compile #54732

Closed
opened 2018-04-19 22:41:25 +02:00 by Phillip Kinsley · 6 comments

System Information
Ubuntu 17.10
Lenovo X220 intel video card

Blender Version
Broken: installing deps using the install_deps.sh, Get "ERROR! OpenShadingLanguage-1.7.5 failed to compile, exiting"

Install new version of Ubuntu 17.10 on my laptop. Followed the instruction on installing build environment.
While run the install_deps.sh script it errors out

Tried a new git clone and a clean reload of ubuntu 17.10. Still have the same error

Exact steps for others to reproduce the error
[ 30%] Building CXX object src/liboslcomp/CMakeFiles/oslcomp.dir/osllex.cpp.o
In file included from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/oslconfig.h:79:0,

               from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/oslcomp.h:31,
               from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/oslcomp_pvt.h:36,
               from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/oslgram.y:44:

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:235:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]

                       throw (Iex::MathExc);
                       ^~~~~

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:238:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]

                       throw (Iex::MathExc);
                       ^~~~~

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:763:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
Matrix22::invert (bool singExc) throw (Iex::MathExc)

                                  ^~~~~

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:771:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
Matrix22::inverse (bool singExc) const throw (Iex::MathExc)

                                         ^~~~~

In file included from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/oslconfig.h:79:0,

               from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/oslcomp.h:31,
               from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/oslcomp_pvt.h:36,
               from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/osllex.l:101:

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:235:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]

                       throw (Iex::MathExc);
                       ^~~~~

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:238:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]

                       throw (Iex::MathExc);
                       ^~~~~

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:763:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
Matrix22::invert (bool singExc) throw (Iex::MathExc)

                                  ^~~~~

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:771:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
Matrix22::inverse (bool singExc) const throw (Iex::MathExc)

                                         ^~~~~

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/build/src/liboslcomp/osllex.cpp: In function 'int yy_get_next_buffer()':
/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/build/src/liboslcomp/osllex.cpp:874:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

 for ( n = 0; n < max_size && \

/home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/build/src/liboslcomp/osllex.cpp:1652:3: note: in expansion of macro 'YY_INPUT'

 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
 ^~~~~~~~

[ 31%] Linking CXX shared library liboslcomp.so
[ 31%] Built target oslcomp
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
ERROR! OpenShadingLanguage-1.7.5 failed to compile, exiting

**System Information** Ubuntu 17.10 Lenovo X220 intel video card **Blender Version** Broken: installing deps using the install_deps.sh, Get "ERROR! OpenShadingLanguage-1.7.5 failed to compile, exiting" Install new version of Ubuntu 17.10 on my laptop. Followed the instruction on installing build environment. While run the install_deps.sh script it errors out Tried a new git clone and a clean reload of ubuntu 17.10. Still have the same error **Exact steps for others to reproduce the error** [ 30%] Building CXX object src/liboslcomp/CMakeFiles/oslcomp.dir/osllex.cpp.o In file included from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/oslconfig.h:79:0, ``` from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/oslcomp.h:31, from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/oslcomp_pvt.h:36, from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/oslgram.y:44: ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:235:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] ``` throw (Iex::MathExc); ^~~~~ ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:238:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] ``` throw (Iex::MathExc); ^~~~~ ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:763:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] Matrix22<T>::invert (bool singExc) throw (Iex::MathExc) ``` ^~~~~ ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:771:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] Matrix22<T>::inverse (bool singExc) const throw (Iex::MathExc) ``` ^~~~~ ``` In file included from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/oslconfig.h:79:0, ``` from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/oslcomp.h:31, from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/oslcomp_pvt.h:36, from /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/osllex.l:101: ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:235:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] ``` throw (Iex::MathExc); ^~~~~ ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:238:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] ``` throw (Iex::MathExc); ^~~~~ ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:763:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] Matrix22<T>::invert (bool singExc) throw (Iex::MathExc) ``` ^~~~~ ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/src/include/OSL/matrix22.h:771:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] Matrix22<T>::inverse (bool singExc) const throw (Iex::MathExc) ``` ^~~~~ ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/build/src/liboslcomp/osllex.cpp: In function 'int yy_get_next_buffer()': /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/build/src/liboslcomp/osllex.cpp:874:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ``` for ( n = 0; n < max_size && \ ``` /home/philki/src/blender-deps/OpenShadingLanguage-1.7.5/build/src/liboslcomp/osllex.cpp:1652:3: note: in expansion of macro 'YY_INPUT' ``` YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), ^~~~~~~~ ``` [ 31%] Linking CXX shared library liboslcomp.so [ 31%] Built target oslcomp Makefile:151: recipe for target 'all' failed make: *** [all] Error 2 ERROR! OpenShadingLanguage-1.7.5 failed to compile, exiting

Added subscriber: @kinphi

Added subscriber: @kinphi
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Ray molenkamp self-assigned this 2018-04-19 23:06:09 +02:00
Member

from the bug submission page.

What not to report here

  • Feature requests, see the developer contact page.
  • Items that are already on our To Do list.
  • Compile or build issues, ask on #blendercoders or mail bf-committers.

that being said, if you don't need osl, you can skip it by adding --skip-osl to your build_deps command

from the bug submission page. >**What not to report here** > >- Feature requests, see the developer contact page. >- Items that are already on our To Do list. >- **Compile or build issues, ask on #blendercoders or mail bf-committers.** that being said, if you don't need osl, you can skip it by adding `--skip-osl ` to your build_deps command

Added subscriber: @PeterKrauspe

Added subscriber: @PeterKrauspe

Found a similiar behaviour on centos 7.4.1708:
some log snippets:
......

/data/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/oslcomp.cpp:234:63:   required from here
/usr/include/c++/4.8.2/bits/stl_list.h:505:8: error: no matching function for call to 'boost::fast_pool_allocator<std::_List_node<boost::wave::cpplexer::lex_token<> >, boost::default_user_allocator_new_delete, boost::mutex, 32u, 0u>::construct(std::list<boost::wave::cpplexer::lex_token<>, boost::fast_pool_allocator<boost::wave::cpplexer::lex_token<>, boost::default_user_allocator_new_delete, boost::mutex, 32u, 0u> >::_Node*&)'
        _M_get_Node_allocator().construct(__p,
......

/usr/include/boost/pool/pool_alloc.hpp:398:10: note:   candidate expects 2 arguments, 1 provided
[ 75%] Building CXX object src/liboslexec/CMakeFiles/oslexec.dir/osogram.cpp.o
make[2]: *** [src/liboslexec/CMakeFiles/oslexec.dir/__/liboslcomp/oslcomp.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/liboslexec/CMakeFiles/oslexec.dir/all] Error 2
make: *** [all] Error 2
ERROR! OpenShadingLanguage-1.7.5 failed to compile, exiting
Found a similiar behaviour on centos 7.4.1708: some log snippets: ...... ``` /data/blender-deps/OpenShadingLanguage-1.7.5/src/liboslcomp/oslcomp.cpp:234:63: required from here /usr/include/c++/4.8.2/bits/stl_list.h:505:8: error: no matching function for call to 'boost::fast_pool_allocator<std::_List_node<boost::wave::cpplexer::lex_token<> >, boost::default_user_allocator_new_delete, boost::mutex, 32u, 0u>::construct(std::list<boost::wave::cpplexer::lex_token<>, boost::fast_pool_allocator<boost::wave::cpplexer::lex_token<>, boost::default_user_allocator_new_delete, boost::mutex, 32u, 0u> >::_Node*&)' _M_get_Node_allocator().construct(__p, ...... /usr/include/boost/pool/pool_alloc.hpp:398:10: note: candidate expects 2 arguments, 1 provided [ 75%] Building CXX object src/liboslexec/CMakeFiles/oslexec.dir/osogram.cpp.o make[2]: *** [src/liboslexec/CMakeFiles/oslexec.dir/__/liboslcomp/oslcomp.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [src/liboslexec/CMakeFiles/oslexec.dir/all] Error 2 make: *** [all] Error 2 ERROR! OpenShadingLanguage-1.7.5 failed to compile, exiting ```
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#54732
No description provided.