Previous Thread  Next Thread

chat icon [Compiling] blender-2.26 (

Skinkie

Posted: Thu Mar 06, 2003 8:28 am
Joined: 06 Mar 2003
Posts: 1
Some dependencies result in a segfault under gcc3, source/blender/.libs/libblender_blender.la has many -lm, -lc if some are removed it will compile.

My fatal error,
Code:

gcc -O3 -march=athlon-tbird -mcpu=athlon-tbird -I/usr/X11R6/include -funsigned-char -o .libs/blender  -L/usr/lib/python2.3/config -L/usr/X11R6/lib source/.libs/libblender_source.so -lm -lm -L/usr/lib -lm -lm -lm -L/usr/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src -L/usr/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lm -lm -lm -L/usr/src/gcc-build/gcc -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lm -lc -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lm -lm -lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lm -lm -lm -lm -lm -lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s intern/.libs/libblender_intern.so -lm -lm -lm -lm -lm -lgcc_s -lc -lm -lm -lm -lm -lm -lm -lslang -lm -lgpm -lm -lm -lm -lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lm -lm -lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lm -lm -lm -lm -lm -lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s intern/python/frozen/libfrozen.a -lpython2.3 -lXxf86dga -lGLU -lGL /usr/lib/libSDL.so -lm /usr/lib/libesd.so /usr/lib/libaudiofile.so -lm /usr/lib/libasound.so -laudio -lXt -lX11 -lXext /usr/lib/libaa.so -lutil -lm /usr/lib/libjpeg.so -lpng -lcrypto -lssl -lpthread -ldl /usr/lib/./libstdc++.so -lm -lm -lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lz -Wl,--rpath -Wl,/usr/lib/.
intern/.libs/libblender_intern.so: undefined reference to `GHOST_SystemX11::GHOST_SystemX11[in-charge]()'
intern/.libs/libblender_intern.so: undefined reference to `GHOST_WindowManager::GHOST_WindowManager[in-charge]()'
collect2: ld returned 1 exit status

any clues?
Reply with quote


sandalle

Posted: Wed Mar 26, 2003 9:02 am
Joined: 26 Mar 2003
Posts: 6
I also have this problem on the following system: -march=pentium4 -mmmx -mfpmath=sse -msse -msse2 -O3
Reply with quote


Michel

Posted: Wed Mar 26, 2003 10:15 am
Joined: 16 Oct 2002
Posts: 209
sandalle wrote:
I also have this problem on the following system: -march=pentium4 -mmmx -mfpmath=sse -msse -msse2 -O3

hmm,

Did you build from cvs or from the 2.26 source package?
A lot of updates have been made to the buildsystem the last couple of days, so could you try to build from a recent cvs?

With regards,
Michel
Reply with quote


sandalle

Posted: Wed Mar 26, 2003 4:45 pm
Joined: 26 Mar 2003
Posts: 6
I originally tried from the 2.26 source, and then I also tried from the 2003-03-26 CVS snapshot tarball as I heard that there were autoconf fixes, same error. With the snapshot, I had to do the following before ./configure would even work:

aclocal &&
autoconf &&
touch config.sub &&
automake

There's no "&&" after automake as it had errors, but managed to create 'Makefile.in', which was needed by ./configure. Then it still complained that "config.guess" couldn't be found and that 'source/blender/bpython/Makefile.am' couldn't find './compile'. But it still continued, so...

However, I think my error is slightly different, after looking at it, as I don't have as many "-lm"'s in my compile log, though I do have quite a few. Will post the exact error I'm getting later today.

Any idea on when 2.27 will be released?
Reply with quote


SirDude

Posted: Wed Mar 26, 2003 5:30 pm
Joined: 13 Oct 2002
Posts: 939
don't do all that run the bootstrap script which will fix everything and
build a configure script.

If your still getting errors you may need to update your versions of
autoconf, automake.
Reply with quote


sandalle

Posted: Wed Mar 26, 2003 5:44 pm
Joined: 26 Mar 2003
Posts: 6
Ah yes, I forgot about the bootstrap. Wink I'll try that when I get home.

As for the latest versions...well, I run a source-based distro, so we always have the latest. Smile

Section Spell Grimoire Version Installed Version
------- ----- ---------------- -----------------
devel autoconf 2.57 2.57
devel automake 1.7.2 1.7.2
Reply with quote


sandalle

Posted: Thu Mar 27, 2003 2:26 am
Joined: 26 Mar 2003
Posts: 6
Here's the error (this is using ./bootstrap to set things up, which is much nicer than the manual way I was trying Wink):

[code]
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../intern/guardedalloc -I../../source/blender/makesdna -I../../source/blender/
blenkernel -I../../source/blender/blenloader -I../../source/blender/bpython/include -I../../source/blender/blenlib -I..
/../source/blender/renderconverter -I../../source/blender/render/extern/include -I../../source/kernel/gen_messaging -I.
./../source/kernel/gen_system -I../../source/blender/include -march=pentium4 -mmmx -mfpmath=sse -msse -msse2 -O3 -funsi
gned-char -MT creator.lo -MD -MP -MF .deps/creator.Tpo -c creator.c -o creator.o >/dev/null 2>&1
mv -f .libs/creator.lo creator.lo
rm -fr .libs/libblender_creator.la .libs/libblender_creator.* .libs/libblender_creator.*
ar cru .libs/libblender_creator.al buildinfo.lo creator.lo
ranlib .libs/libblender_creator.al
creating libblender_creator.la
(cd .libs && rm -f libblender_creator.la && ln -s ../libblender_creator.la libblender_creator.la)
make[4]: *** No rule to make target `blender/blenkernel/libblender_blenkernel.la', needed by `libblender_source.la'.
make[4]: Target `all-am' not remade because of errors.
make[3]: *** [all-recursive] Error 1
make[3]: Target `all' not remade because of errors.
make[3]: *** No rule to make target `source/libblender_source.la', needed by `blender'.
make[3]: Target `all-am' not remade because of errors.
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error [code]
[/code]

I also get this error right after the above error:

[code]
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../intern/guardedalloc -I../../..
/source/blender/include -I../../../source/blender/blenlib -I../../../source/blen
der/makesdna -I../../../source/blender/bpython/include -I../../../source/blender
/render/extern/include -I../../../source/blender/imbuf -I../../../source/blender
/avi -I../../../intern/iksolver/extern -I../../../source/blender/blenloader -mar
ch=pentium4 -mmmx -mfpmath=sse -msse -msse2 -O3 -funsigned-char -MT ika.lo -MD -
MP -MF .deps/ika.Tpo -c intern/ika.c -fPIC -DPIC -o .libs/ika.lo
intern/ika.c: In function `calc_limb':
intern/ika.c:209: unable to find a register to spill in class `FLOAT_REGS'
intern/ika.c:209: this is the insn:
(insn 104 102 105 (set (reg/vVery HappyF 8 st(0) [82])
(float_extend:DF (subreg:SF (reg/vVery HappyI 23 rxmm2 [60]) 0))) 133 {*extendsf
df2_1} (nil)
(nil))
intern/ika.c:209: confused by earlier errors, bailing out
make[5]: *** [ika.lo] Error 1
[/code]
Reply with quote


sandalle

Posted: Thu Mar 27, 2003 2:28 am
Joined: 26 Mar 2003
Posts: 6
Hmm....for some reason the [code] tags didn't work. Sad They worked during my first Preview, but then stopped working. Ah well, I'll just stick to normal text then.
Reply with quote


Michel

Posted: Fri Mar 28, 2003 3:49 pm
Joined: 16 Oct 2002
Posts: 209
sandalle wrote:
Here's the error (this is using ./bootstrap to set things up, which is much nicer than the manual way I was trying Wink):

creating libblender_creator.la
(cd .libs && rm -f libblender_creator.la && ln -s ../libblender_creator.la libblender_creator.la)
make[4]: *** No rule to make target `blender/blenkernel/libblender_blenkernel.la', needed by `libblender_source.la'.


hm, looking at this, makes me suspect that you did a checkout from cvs Smile. In the last few days, some things have changed in the auto* tools. And one of them is that the linking has changed. This is precisely an error that somehow occurs when doing a 'make', 'cvs update', 'make'. Normally this should work, but I'm not confident it works when changes to the build system are made. So I have to ask you:
Did you do a 'make clean' before you did a make?

With regards,
Michel
Reply with quote


sandalle

Posted: Wed Apr 02, 2003 3:34 am
Joined: 26 Mar 2003
Posts: 6
I was using the 2.26 tarball. I can try with a 'make clean' before ./bootstrap. I had also tried one of the CVS snapshots, same error. All of my compiles started from a clean untar/checkout.
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group