FS#14766 - [blender] fails to build
Attached to Project:
Arch Linux
Opened by Sven-Hendrik Haase (Svenstaro) - Tuesday, 19 May 2009, 17:48 GMT
Last edited by Allan McRae (Allan) - Monday, 20 July 2009, 06:58 GMT
Opened by Sven-Hendrik Haase (Svenstaro) - Tuesday, 19 May 2009, 17:48 GMT
Last edited by Allan McRae (Allan) - Monday, 20 July 2009, 06:58 GMT
|
Details
Description:
When manually compiling Blender from ABS, the compile will fail like this: In file included from solver_main.cpp:1094: paraloopend.h: In member function ‘void LbmFsgrSolver::mainLoop(int)’: paraloopend.h:25: warning: comparison between signed and unsigned integer expressions paraloopend.h:26: warning: comparison between signed and unsigned integer expressions paraloopend.h:27: warning: comparison between signed and unsigned integer expressions In file included from solver_main.cpp:1134: paraloopend.h: In member function ‘void LbmFsgrSolver::preinitGrids()’: paraloopend.h:25: warning: comparison between signed and unsigned integer expressions paraloopend.h:26: warning: comparison between signed and unsigned integer expressions paraloopend.h:27: warning: comparison between signed and unsigned integer expressions In file included from solver_main.cpp:1197: paraloopend.h: In member function ‘void LbmFsgrSolver::standingFluidPreinit()’: paraloopend.h:25: warning: comparison between signed and unsigned integer expressions paraloopend.h:26: warning: comparison between signed and unsigned integer expressions paraloopend.h:27: warning: comparison between signed and unsigned integer expressions solver_main.cpp: In member function ‘void LbmFsgrSolver::mainLoop(int)’: solver_main.cpp:1707: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[3]: *** [/tmp/yaourt-tmp-svenstaro/abs-blender/src/blender-2.48a/obj/linux-glibc2.9-i386/intern/elbeem/debug/solver_main.o] Error 1 make[2]: *** [debug] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1 ==> ERROR: Build Failed. Aborting... Error: Makepkg was unable to build blender package. I'm using GCC 4.4.0 and my system is fully updated. I have confirmed this issue for i686 and x86_64 on completely separate machines. Additional info: It only started happening recently, as I was able to happily compile Blender before. Did something in the source package change even though it's a stable release? Steps to reproduce: 1) Update ABS 2) makepkg on Blender's PKGBUILD 3) Watch it explode! |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 20 July 2009, 06:58 GMT
Reason for closing: Fixed
Additional comments about closing: blender 2.49a-1
Monday, 20 July 2009, 06:58 GMT
Reason for closing: Fixed
Additional comments about closing: blender 2.49a-1
Native in this case resolves to pentium4 with HT.
Afterwards, the very error posted above follows.
I've build blender direct, with "make"... from the two official mirrors and i tried to build the older version 2.48, too.
But everytime there was the same error.
Maybe it's the new GCC ?
Info: My Systems are both up to date.
The way I fixed it, was "pacman -R gcc; pacman -S gcc" (reinstall gcc).
It turned out after about an hour of investigating, that the gcc package was borked :D
the Scc is to clear the pkg cache (don't want to use the borked package again :D)
corrupt
And why didnt you mae a bug report if you found something wrong with it?
I did, after I found out that the package was corrupt, I did "pacman -R gcc; pacman -Scc; pacman -S gcc" and this fixed the problem.
I did file a bug report, and I requested closure because the reinstall worked.
create a c file and include "main(){}" and see if that compiles. If it doesn't, you're most likely experiencing what I experienced.
g++ -c -DUSE_SUMO_SOLID -fopenmp -pipe -fPIC -funsigned-char -fno-strict-aliasing -DNDEBUG -O2 -Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wredundant-decls -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wsynth -DMOZ_NOT_NET -DPARALLEL -DNOGUI -DELBEEM_BLENDER -I. -I../extern -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include -I/usr/include/libpng solver_main.cpp -o /media/TEST/home/prove/blenderABS/src/blender-2.48a/obj/linux-glibc2.9-i386/intern/elbeem/solver_main.o
In file included from solver_main.cpp:1094:
paraloopend.h: In member function ‘void LbmFsgrSolver::mainLoop(int)’:
paraloopend.h:25: warning: comparison between signed and unsigned integer expressions
paraloopend.h:26: warning: comparison between signed and unsigned integer expressions
paraloopend.h:27: warning: comparison between signed and unsigned integer expressions
In file included from solver_main.cpp:1134:
paraloopend.h: In member function ‘void LbmFsgrSolver::preinitGrids()’:
paraloopend.h:25: warning: comparison between signed and unsigned integer expressions
paraloopend.h:26: warning: comparison between signed and unsigned integer expressions
paraloopend.h:27: warning: comparison between signed and unsigned integer expressions
In file included from solver_main.cpp:1197:
paraloopend.h: In member function ‘void LbmFsgrSolver::standingFluidPreinit()’:
paraloopend.h:25: warning: comparison between signed and unsigned integer expressions
paraloopend.h:26: warning: comparison between signed and unsigned integer expressions
paraloopend.h:27: warning: comparison between signed and unsigned integer expressions
g++ -c -DUSE_SUMO_SOLID -fopenmp -pipe -fPIC -funsigned-char -fno-strict-aliasing -DNDEBUG -O2 -Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wredundant-decls -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wsynth -DMOZ_NOT_NET -DPARALLEL -DNOGUI -DELBEEM_BLENDER -I. -I../extern -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include -I/usr/include/libpng solver_util.cpp -o /media/TEST/home/prove/blenderABS/src/blender-2.48a/obj/linux-glibc2.9-i386/intern/elbeem/solver_util.o
[...]
ar: creating /media/TEST/home/prove/blenderABS/src/blender-2.48a/obj/linux-glibc2.9-i386/intern/elbeem/libelbeem.a
After two minutes gcc crashes here also:
solver_main.cpp: In member function ‘void LbmFsgrSolver::mainLoop(int)’:
solver_main.cpp:1707: internal compiler error: Segmentation fault
g++ -c -DUSE_SUMO_SOLID -DUSE_BULLET -DWITH_BULLET -fopenmp -pipe -fPIC -funsigned-char -fno-strict-aliasing -g -Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wredundant-decls -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wsynth -DMOZ_NOT_NET -DPARALLEL -DNOGUI -DELBEEM_BLENDER -I. -I../extern -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include -I/usr/include/libpng solver_main.cpp -o /var/abs/local/blender/src/blender-2.49/obj/linux-glibc2.10.1-x86_64/intern/elbeem/debug/solver_main.o
<...skipped...>
solver_main.cpp: In member function ‘void LbmFsgrSolver::mainLoop(int)’:
solver_main.cpp:1707: internal compiler error: Segmentation fault
it seems, that problem arises cause of parallel calculations: -DPARALLEL (or -fopenmp)... unfortunately, I've no knowledge (and experience of compilation) to describe it more specifically
2.48(a) is still buggy in extra.
2.49 is out and no update in extra.
It's time for a new maintainer?
The arch package is broken..
FS#14893. Please, read the comments in that task.export NAN_DEBUG=-O