View previous topic :: View next topic |
Author |
Message |
Tuxenstein Apprentice
Joined: 28 May 2005 Posts: 155
|
Posted: Wed Apr 22, 2009 9:14 am Post subject: Blender failing to build (SOLVED) |
|
|
I've no idea as to what the heck is going on with this as far as why it's refusing to compile, but I'm hoping someone here might.
Quote: | >>> Configuring source in /var/tmp/portage/media-gfx/blender-2.48a-r3/work/blender-2.48a ...
* enabling openmp
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-gfx/blender-2.48a-r3/work/blender-2.48a ...
scons: Reading SConscript files ...
Command-line arguments
No command-line arguments given
Command-line targets
No targets given, using default
Using config file: config/linux2-config.py
Using user-config file: user-config.py
scons: warning: The Options class is deprecated; use the Variables class instead.
File "/var/tmp/portage/media-gfx/blender-2.48a-r3/work/blender-2.48a/tools/btools.py", line 135, in read_opts
scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/var/tmp/portage/media-gfx/blender-2.48a-r3/work/blender-2.48a/tools/btools.py", line 140, in read_opts
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/var/tmp/portage/media-gfx/blender-2.48a-r3/work/blender-2.48a/SConstruct", line 225, in <module>
Linux platform detected:
checking for FreeAlut... no
Building in ../build/linux2/
Configuring library bf_soundsystem
Configuring library bf_string
Configuring library bf_ghost
Configuring library bf_guardedalloc
Configuring library bf_bmfont
Configuring library bf_moto
Configuring library blender_CTR
Configuring library bf_memutil
Configuring library bf_decimation
Configuring library bf_IK
Configuring library blender_bop
Configuring library blender_ONL
Configuring library bf_elbeem
Configuring library blender_BSP
Configuring library extern_glew
Configuring library extern_bullet2linmath
Configuring library extern_bullet2dynamics
Configuring library extern_bullet2collision_broadphase
Configuring library extern_bullet2collision_dispatch
Configuring library extern_bullet2collision_gimpact
Configuring library extern_bullet2collision_shapes
Configuring library extern_bullet2collision_narrowphase
Configuring library extern_bullet2softbody
Configuring library extern_ftgl
Configuring library extern_openjpeg
Configuring library extern_binreloc
Configuring library bf_avi
Configuring library bf_blenkernel
Configuring library bf_blenlib
Configuring library bf_blenloader
Configuring library bf_blenpluginapi
Configuring library bf_gpu
Configuring library bf_imbuf
Configuring library bf_cineon
Configuring library bf_dna
Configuring library blender_python
Configuring library blender_radiosity
Configuring library bf_readblenfile
Configuring library blender_render
Configuring library src
Configuring library nodes
Configuring library bf_yafray
Configuring library bf_ftfont
Configuring library bf_dds
Configuring library bf_kernel
Configuring library blender_creator
sh: svnversion: command not found
Configuring program blender
>>> ../install/linux2 release/freedesktop/icons/22x22 blender.xcf.bz2
>>> ../install/linux2 release/freedesktop/icons/22x22 blender.png
>>> ../install/linux2 release/freedesktop/icons/32x32 blender.svg
>>> ../install/linux2 release/freedesktop/icons/32x32 blender.png
>>> ../install/linux2 release/freedesktop/icons/16x16 blender.xcf.bz2
>>> ../install/linux2 release/freedesktop/icons/16x16 blender.png
>>> ../install/linux2 release/freedesktop/icons/scalable blender.svg
>>> ../install/linux2 release/plugins bmake
>>> ../install/linux2 release/plugins Makefile
>>> ../install/linux2 release/plugins/texture tiles.c
>>> ../install/linux2 release/plugins/texture clouds2.c
>>> ../install/linux2 release/plugins/texture Makefile
>>> ../install/linux2 release/plugins/sequence color-correction-hsv.c
>>> ../install/linux2 release/plugins/sequence gamma.c
>>> ../install/linux2 release/plugins/sequence dnr.c
>>> ../install/linux2 release/plugins/sequence blur.c
>>> ../install/linux2 release/plugins/sequence color-correction-yuv.c
>>> ../install/linux2 release/plugins/sequence scatter.c
>>> ../install/linux2 release/plugins/sequence Makefile
scons: done reading SConscript files.
scons: Building targets ...
Compiling ==> 'SND_DummyDevice.cpp'
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: error: unrecognized command line option "-fopenmp"
cc1plus: error: unrecognized command line option "-fopenmp"
cc1plus: error: unrecognized command line option "-fopenmp"
Compiling ==> 'SND_DeviceManager.cpp'
scons: *** [/var/tmp/portage/media-gfx/blender-2.48a-r3/work/build/linux2/intern/SoundSystem/dummy/SND_DummyDevice.o] Error 1
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: error: unrecognized command line option "-fopenmp"
cc1plus: error: unrecognized command line option "-fopenmp"
cc1plus: error: unrecognized command line option "-fopenmp"
scons: *** [/var/tmp/portage/media-gfx/blender-2.48a-r3/work/build/linux2/intern/SoundSystem/intern/SND_DeviceManager.o] Error 1
scons: building terminated because of errors.
*
* ERROR: media-gfx/blender-2.48a-r3 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2694: Called die
* The specific snippet of code:
* scons ${MAKEOPTS/-l[0-9]} || die "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org";
* The die message:
* !!! Please add /var/tmp/portage/media-gfx/blender-2.48a-r3/work/blender-2.48a/scons.config when filing bugs reports to bugs.gentoo.org |
As always, all help will be greatly appreciated. Thanks!
Last edited by Tuxenstein on Tue Apr 28, 2009 1:41 am; edited 1 time in total |
|
Back to top |
|
|
justinkb Apprentice
Joined: 23 Dec 2008 Posts: 161
|
Posted: Wed Apr 22, 2009 10:03 am Post subject: |
|
|
you have -fopenmp in your cflags but the compiler used in the build doesn't support it. |
|
Back to top |
|
|
Tuxenstein Apprentice
Joined: 28 May 2005 Posts: 155
|
Posted: Wed Apr 22, 2009 7:34 pm Post subject: |
|
|
So how do I resolve this? |
|
Back to top |
|
|
justinkb Apprentice
Joined: 23 Dec 2008 Posts: 161
|
Posted: Thu Apr 23, 2009 1:19 pm Post subject: |
|
|
remove it from your cflags? at least temporarily. |
|
Back to top |
|
|
Tuxenstein Apprentice
Joined: 28 May 2005 Posts: 155
|
Posted: Sat Apr 25, 2009 2:20 am Post subject: |
|
|
Strangely enough, I don't see it even listed there.
While I doubt it would have made a difference, I also tried upgrading Blender trying to remove that use flag and it still refused to build. |
|
Back to top |
|
|
Elbar Thera n00b
Joined: 15 May 2008 Posts: 60
|
Posted: Sat Apr 25, 2009 10:28 am Post subject: |
|
|
Well, i'm not sure but you may take a look at:
Code: | euse -I openmp
global use flags (searching: openmp)
************************************************************
[+ D ] openmp - Build support for the OpenMP (support parallel computing), requires >=sys-devel/gcc-4.2 built with USE="openmp"
Installed packages matching this USE flag:
sci-libs/fftw-3.2.1
sys-devel/gcc-4.3.3-r2
sys-devel/gettext-0.17
media-gfx/imagemagick-6.5.1.0
media-gfx/blender-2.48a-r3
local use flags (searching: openmp)
************************************************************
no matching entries found |
That use-flag is enabled by default here...
Code: | eix -e gcc
[I] sys-devel/gcc
Available versions:
(2.95) 2.95.3-r9 (~)2.95.3-r10!s
(3.1) 3.1.1-r2
(3.2) **3.2.2!s 3.2.3-r4
(3.3) (~)3.3.6-r1!s
(3.4) 3.4.6-r2!s
(4.0) ~*4.0.4!s
(4.1) 4.1.2!s
(4.2) (~)4.2.4-r1!s
(4.3) **4.3.0!s (~)4.3.1!s (~)4.3.1-r1!s (~)4.3.2!s (~)4.3.2-r2!s 4.3.2-r3!s (~)4.3.3!s (~)4.3.3-r2!s
{altivec bootstrap boundschecking build d doc fixed-point fortran gcj gtk hardened ip28 ip32r10k java libffi mudflap multilib multislot n32 n64 nls nocxx nopie nossp objc objc++ objc-gc openmp static test vanilla}
Installed versions: 4.1.2(4.1)!s(06:30:52 PM 01/28/2009)(doc fortran gtk mudflap nls -altivec -bootstrap -build -d -gcj -hardened -ip28 -ip32r10k -libffi-multilib -multislot -n32 -n64 -nocxx -objc -objc++ -objc-gc -test -vanilla)
4.3.3-r2(4.3)!s(09:05:37 AM 03/28/2009)(doc fortran gtk mudflap nls openmp -altivec -bootstrap -build -fixed-point -gcj -hardened -ip28 -ip32r10k -libffi -multilib -multislot -n32 -n64 -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla)
Homepage: http://gcc.gnu.org/
Description: The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking
|
That's the reason why :4.3 has it enabled too (btw i'm using an athlon xp -> no need for openmp over here )
Code: | eix blender
[I] media-gfx/blender
Available versions: 2.48a-r3 {blender-game ffmpeg jpeg nls openal openexr openmp player png quicktime verse}
Installed versions: 2.48a-r3(11:20:35 PM 04/09/2009)(blender-game ffmpeg jpeg nls openal openexr openmp png quicktime -player -verse)
Homepage: http://www.blender.org/
Description: 3D Creation/Animation/Publishing System
|
And still, blender builds fine with the openmp flag..
I dont know which version of gcc you are using, but if its > 4.1 then you may need to re-emerge gcc with the openmp flag enabled or else ...
Maybe it help, but most likely not
Elbar |
|
Back to top |
|
|
Tuxenstein Apprentice
Joined: 28 May 2005 Posts: 155
|
Posted: Mon Apr 27, 2009 11:43 pm Post subject: |
|
|
I actually have the latest version of gcc installed, but also had the same problem with the previous versions of gcc.
I tried to disable that use flag and Blender still won't build! This is the output I'm now getting:
Quote: | Linking library ==> 'libbf_yafray.a'
Linking program ==> 'blender'
/var/tmp/portage/media-gfx/blender-2.48a-r3/work/build/linux2/lib/libbf_soundsystem.a(SND_OpenALDevice.o): In function `SND_OpenALDevice::LoadSample(STR_String const&, void*, int)':
SND_OpenALDevice.cpp:(.text+0x11b1): undefined reference to `alutLoadWAVMemory'
SND_OpenALDevice.cpp:(.text+0x1252): undefined reference to `alutUnloadWAV'
SND_OpenALDevice.cpp:(.text+0x1285): undefined reference to `alutLoadWAVFile'
collect2: ld returned 1 exit status
scons: *** [/var/tmp/portage/media-gfx/blender-2.48a-r3/work/build/linux2/bin/blender] Error 1
scons: building terminated because of errors.
*
* ERROR: media-gfx/blender-2.48a-r3 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2694: Called die
* The specific snippet of code:
* scons ${MAKEOPTS/-l[0-9]} || die "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org";
* The die message:
* !!! Please add /var/tmp/portage/media-gfx/blender-2.48a-r3/work/blender-2.48a/scons.config when filing bugs reports to bugs.gentoo.org
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-gfx/blender-2.48a-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-gfx/blender-2.48a-r3/temp/environment'.
*
>>> Failed to emerge media-gfx/blender-2.48a-r3, Log file:
>>> '/var/tmp/portage/media-gfx/blender-2.48a-r3/temp/build.log'
* Messages for package media-gfx/blender-2.48a-r3:
* disabling openmp
*
* ERROR: media-gfx/blender-2.48a-r3 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2694: Called die
* The specific snippet of code:
* scons ${MAKEOPTS/-l[0-9]} || die "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org";
* The die message:
* !!! Please add /var/tmp/portage/media-gfx/blender-2.48a-r3/work/blender-2.48a/scons.config when filing bugs reports to bugs.gentoo.org |
As an added "bonus" (and I don't know if this is directly related or not, but this problem didn't appear until I began trying to build Blender...), strangely I've now lost sound (?) and am getting an error message regarding OpenAL.
I do appreciate all the help I've received so far, though.
Except for the bizarre sound loss (which remains unresolved), I managed to finally get it installed by re-emerging freealut as suggested in this thread. |
|
Back to top |
|
|
paulj Guru
Joined: 30 Sep 2004 Posts: 511 Location: Wales, UK
|
Posted: Mon May 04, 2009 12:36 am Post subject: |
|
|
I have the latest gcc installed, but hadn't selected it via gcc-config. Check that you are actually using the latest version, and if not change over to it using gcc-config.
Solved it for me! |
|
Back to top |
|
|
bluenuht Tux's lil' helper
Joined: 01 Oct 2005 Posts: 141
|
Posted: Wed Jul 01, 2009 2:05 pm Post subject: |
|
|
I had the same error and found gcc was set to the older profile
Code: | [1] x86_64-pc-linux-gnu-4.1.2 *
[2] x86_64-pc-linux-gnu-4.3.2
|
when I ran and reran the blender emerge I saw the same error but it did not stop the build.
Blender works fine. but should the portage package have been set to have a dependancy of gcc 4.3.2 ? _________________ x86_64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz GenuineIntel GNU/Linux GeForce GTX NVIDIA 1660TI 16GB |
|
Back to top |
|
|
|