[SOLVED] Re: [gentoo-user] Do we have any Blender build experts in the house?

2016-06-02 Thread Andrew Lowe

On 05/29/16 01:58, Andrew Lowe wrote:

Hi all,
I'm attempting to build Blender, 2,7,6 but am running into a problem
during linking. I am getting a series of errors referring to an, for
example:

unresolved reference to 'Imf_2_1::Header::view[abi:cxx11]() const

There are a whole series of these errors all referencing undefined
things contained within a library called "Imf_2_1". I've done some
googling and I think this is something to do with a library from
Industrial Light & Magic but other than that, I can't work things out.
Has anyone come across this sort of problem before I have to post the
whole gory details of this problem.

Any thoughts greatly appreciated,
Andrew




Thanks to all those who provided thoughts. Todd's one:

revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

eventually worked. 280 ebuilds building takes a fair amount of time...

Andrew



Re: [gentoo-user] Do we have any Blender build experts in the house?

2016-05-29 Thread Todd Goodman
* Andrew Lowe  [160528 13:59]:
> Hi all,
>   I'm attempting to build Blender, 2,7,6 but am running into a problem 
> during linking. I am getting a series of errors referring to an, for 
> example:
> 
> unresolved reference to 'Imf_2_1::Header::view[abi:cxx11]() const
> 
> There are a whole series of these errors all referencing undefined 
> things contained within a library called "Imf_2_1". I've done some 
> googling and I think this is something to do with a library from 
> Industrial Light & Magic but other than that, I can't work things out. 
> Has anyone come across this sort of problem before I have to post the 
> whole gory details of this problem.
> 
>   Any thoughts greatly appreciated,
>   Andrew

When I've seen errors like that in the past my first step has been to
make sure all my libraries have been rebuilt with the new GCC.

Don't know if this is your issue and could be completely off, but a
recent news entry is:

2015-10-22-gcc-5-new-c++11-abi
  Title GCC 5 Defaults to the New C++11 ABI
  AuthorMike Frysinger 
  Posted2015-10-22
  Revision  2

  GCC 5 uses the new C++ ABI by default.  When building new code,
  you might run
  into link time errors that include lines similar to:
  ...: undefined reference to
  '_ZNSt6chrono12steady_clock3nowEv@GLIBCXX_3.4.17'

  Or you might see linkage failures with "std::__cxx11::string" in
  the output.

  These are signs that you need to rebuild packages using the new
  C++ ABI.
  You can quickly do so by using revdep-rebuild (from gentoolkit).

  For gentoolkit-0.3.1 or higher:
  # revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

  For previous versions of gentoolkit:
  # revdep-rebuild --library 'libstdc\+\+\.so\.6' -- --exclude gcc

  For more details, feel free to peruse:
  https://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/
  
https://blogs.gentoo.org/blueness/2015/03/10/the-c11-abi-incompatibility-problem-in-gentoo/




Re: [gentoo-user] Do we have any Blender build experts in the house?

2016-05-28 Thread Andrew Lowe

On 05/29/16 10:46, J. García wrote:

El sáb, 28-05-2016 a las 17:26 -0600, J. García escribió:


BTW, eix won't help you here, I tried it, so the next step is to find
what provides the symbol 'Imf_2_1::Header::view', after some searches
with find and then google, I arrived at opencv(though not 100% sure),
so you might need to rebuild that and make sure(read the log) g++ is
being called with std=c++11. tracking this sort of stuff might be
tricky.

I was left with the doubt if opencv was the package causing trouble,
and it is not, so I searched a bit more in depth, and I have found the
library you need to rebuild, it is libIlmImf.so, and this time I'm
sure.

Looking for the package:

$ qfile /usr/lib64/libIlmImf.so
media-libs/openexr (/usr/lib64/libIlmImf.so)

Looking for the symbol:

$ readelf -s /usr/lib64/libIlmImf.so  | grep   '.*Header.*view.*'
  1617: 0004a35025 FUNCGLOBAL DEFAULT   10
_ZNK7Imf_2_16Header4viewB
  2248: 00049e6025 FUNCGLOBAL DEFAULT   10
_ZN7Imf_2_16Header4viewB5

So you need to: emerge --oneshot media-libs/openexr


	I kicked off a revdep-rebuild between your previous email and this one. 
I got 280 packages that needed a rebuild so I've let it go and in turn 
I'll rerun the Blender install.


Fingers crossed,
Andrew



Re: [gentoo-user] Do we have any Blender build experts in the house?

2016-05-28 Thread J.
El sáb, 28-05-2016 a las 17:26 -0600, J. García escribió:
> 
> BTW, eix won't help you here, I tried it, so the next step is to find
> what provides the symbol 'Imf_2_1::Header::view', after some searches
> with find and then google, I arrived at opencv(though not 100% sure),
> so you might need to rebuild that and make sure(read the log) g++ is
> being called with std=c++11. tracking this sort of stuff might be
> tricky.
I was left with the doubt if opencv was the package causing trouble,
and it is not, so I searched a bit more in depth, and I have found the
library you need to rebuild, it is libIlmImf.so, and this time I'm
sure.

Looking for the package:

$ qfile /usr/lib64/libIlmImf.so 
media-libs/openexr (/usr/lib64/libIlmImf.so)

Looking for the symbol: 

$ readelf -s /usr/lib64/libIlmImf.so  | grep   '.*Header.*view.*'
  1617: 0004a35025 FUNCGLOBAL DEFAULT   10
_ZNK7Imf_2_16Header4viewB
  2248: 00049e6025 FUNCGLOBAL DEFAULT   10
_ZN7Imf_2_16Header4viewB5

So you need to: emerge --oneshot media-libs/openexr



Re: [gentoo-user] Do we have any Blender build experts in the house?

2016-05-28 Thread J.
El dom, 29-05-2016 a las 01:58 +0800, Andrew Lowe escribió:
> Hi all,
>   I'm attempting to build Blender, 2,7,6 but am running into a
> problem 
> during linking. I am getting a series of errors referring to an, for 
> example:
> 
> unresolved reference to 'Imf_2_1::Header::view[abi:cxx11]() const
> 
I've hit this sort of errors a few times(libreoffice mainly), no need
for blender experts.
The problem is your when linking the libraries/binaries, it is trying
to link code compiled with -std=c++11 and some library compiled with an
older standard,and thus it the linker cannot find binary code that
maches what your newly compiled programs wants. there was a news item
about this, you should read/revisit it, named:
  Title GCC 5 Defaults to the New C++11 ABI
  AuthorMike Frysinger 
  Posted2015-10-22
  Revision  2

The proposed solution is:
(quote from the news item)
For gentoolkit-0.3.1 or higher:
# revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

For previous versions of gentoolkit:
# revdep-rebuild --library 'libstdc\+\+\.so\.6' -- --exclude gcc

But I've encountered some packages that weren't rebuild with that, so
what I do is: search for the library that needs rebuild(hint e.g. for
your case,  eix imf) and then emerge -av1 that library, and try again
rebuilding the package I wanted in the first place(blender for you). I
say rebuild but I really just manually call ´ebuild $PORDTDIR/cat/pkg-
ver' install as the portage user, and then package, and install it as a
binary at the end, but how to do this is out of the scope of the
interest of this thread.
BTW, eix won't help you here, I tried it, so the next step is to find
what provides the symbol 'Imf_2_1::Header::view', after some searches
with find and then google, I arrived at opencv(though not 100% sure),
so you might need to rebuild that and make sure(read the log) g++ is
being called with std=c++11. tracking this sort of stuff might be
tricky.




[gentoo-user] Do we have any Blender build experts in the house?

2016-05-28 Thread Andrew Lowe

Hi all,
	I'm attempting to build Blender, 2,7,6 but am running into a problem 
during linking. I am getting a series of errors referring to an, for 
example:


unresolved reference to 'Imf_2_1::Header::view[abi:cxx11]() const

There are a whole series of these errors all referencing undefined 
things contained within a library called "Imf_2_1". I've done some 
googling and I think this is something to do with a library from 
Industrial Light & Magic but other than that, I can't work things out. 
Has anyone come across this sort of problem before I have to post the 
whole gory details of this problem.


Any thoughts greatly appreciated,
Andrew