Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887059 - media-gfx/blender-3.3.0-r1 with dev-libs/boost-1.81: intern/locale/boost_locale_wrapper.cpp:112:10: error: ‘cout’ is not a member of ‘std’
Summary: media-gfx/blender-3.3.0-r1 with dev-libs/boost-1.81: intern/locale/boost_loca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: boost-1.83 boost-1.82
  Show dependency tree
 
Reported: 2022-12-18 21:03 UTC by Kobboi
Modified: 2023-08-12 09:01 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-12-18 21:03:17 UTC
[374/4629] /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -DNDEBUG -DWITH_OPENGL -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX
__ -D__SSE2__ -D__SSE__ -I/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/locale  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wuniniti
alized -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Wno-cha
r-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized -Wundef -Wmissin
g-declarations -Wimplicit-fallthrough=5 -O2 -march=znver3 -pipe -fomit-frame-pointer -g -ggdb3 -DNDEBUG -fopenmp -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contr
act=off -msse2 -fmacro-prefix-map="/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/"="" -fmacro-prefix-map="/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blende
r-3.3.0_build/"="" -Wno-maybe-uninitialized  -std=c++17 -MD -MT intern/locale/CMakeFiles/bf_intern_locale.dir/boost_locale_wrapper.cpp.o -MF intern/locale/CMakeFiles/bf_intern_lo
cale.dir/boost_locale_wrapper.cpp.o.d -o intern/locale/CMakeFiles/bf_intern_locale.dir/boost_locale_wrapper.cpp.o -c /var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.
0/intern/locale/boost_locale_wrapper.cpp
FAILED: intern/locale/CMakeFiles/bf_intern_locale.dir/boost_locale_wrapper.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -DNDEBUG -DWITH_OPENGL -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2
__ -D__SSE__ -I/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/locale  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wuninitialized -Wre
dundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Wno-char-subscript
s -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized -Wundef -Wmissing-declarati
ons -Wimplicit-fallthrough=5 -O2 -march=znver3 -pipe -fomit-frame-pointer -g -ggdb3 -DNDEBUG -fopenmp -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off -ms
se2 -fmacro-prefix-map="/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/"="" -fmacro-prefix-map="/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0_bui
ld/"="" -Wno-maybe-uninitialized  -std=c++17 -MD -MT intern/locale/CMakeFiles/bf_intern_locale.dir/boost_locale_wrapper.cpp.o -MF intern/locale/CMakeFiles/bf_intern_locale.dir/bo
ost_locale_wrapper.cpp.o.d -o intern/locale/CMakeFiles/bf_intern_locale.dir/boost_locale_wrapper.cpp.o -c /var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/lo
cale/boost_locale_wrapper.cpp
/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/locale/boost_locale_wrapper.cpp: In function ‘void bl_locale_set(const char*)’:
/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/locale/boost_locale_wrapper.cpp:112:10: error: ‘cout’ is not a member of ‘std’
  112 |     std::cout << "bl_locale_set(" << locale << "): " << e.what() << " \n";
      |          ^~~~
/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/locale/boost_locale_wrapper.cpp:12:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
   11 | #include "boost_locale_wrapper.h"
  +++ |+#include <iostream>
   12 | 
/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/locale/boost_locale_wrapper.cpp:115:10: error: ‘cout’ is not a member of ‘std’
  115 |     std::cout << "bl_locale_set(" << locale << "): " << e.what() << " \n";
      |          ^~~~
/var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/locale/boost_locale_wrapper.cpp:115:10: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?


Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-19 08:15:48 UTC
Does the trivial include fix it mentions fix it?

(adding #include <iostream> at the top of /var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/locale/boost_locale_wrapper.cpp)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-19 08:16:00 UTC
(In reply to Sam James from comment #1)
> Does the trivial include fix it mentions fix it?
> 
> (adding #include <iostream> at the top of
> /var/tmp/portage/media-gfx/blender-3.3.0-r1/work/blender-3.3.0/intern/locale/
> boost_locale_wrapper.cpp)

*Does the trivial include fix that it mentions work?
Comment 3 wippie 2022-12-19 08:46:46 UTC
Had the same issue. Applied the include fix, seems to build.
Comment 4 Bernd 2022-12-19 17:01:33 UTC
I can confirm that the mentioned trivial patch fixed the issue and builds and at least starts up blender 3.3.
Comment 5 Kobboi 2022-12-19 17:16:38 UTC
I have a PR for it, will push when I get home
Comment 6 Larry the Git Cow gentoo-dev 2022-12-20 10:53:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6f63d6d4100e9bdc95f4e9c6804335e124ac6bd

commit c6f63d6d4100e9bdc95f4e9c6804335e124ac6bd
Author:     Christophe Lermytte <gentoo@lermytte.be>
AuthorDate: 2022-12-19 13:57:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-20 10:53:10 +0000

    media-gfx/blender: fix build with boost-1.81
    
    Patch as suggested by the compiler:
    
    "intern/locale/boost_locale_wrapper.cpp:12:1: note: ‘std::cout’ is defined
    in header ‘<iostream>’; did you forget to ‘#include <iostream>’?"
    
    Signed-off-by: Christophe Lermytte <gentoo@lermytte.be>
    Closes: https://bugs.gentoo.org/887059
    Closes: https://github.com/gentoo/gentoo/pull/28713
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/blender/blender-3.3.0-r1.ebuild               |  1 +
 .../files/blender-3.3.0-fix-build-with-boost-1.81.patch | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)