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?
I also have this problem on the following system: -march=pentium4 -mmmx -mfpmath=sse -msse -msse2 -O3
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?
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.
Ah yes, I forgot about the bootstrap.

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.
Section Spell Grimoire Version Installed Version
------- ----- ---------------- -----------------
devel autoconf 2.57 2.57
devel automake 1.7.2 1.7.2
Here's the error (this is using ./bootstrap to set things up, which is much nicer than the manual way I was trying

):
[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/v

F 8 st(0) [82])
(float_extend:DF (subreg:SF (reg/v

I 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]
Hmm....for some reason the [code] tags didn't work.

They worked during my first Preview, but then stopped working. Ah well, I'll just stick to normal text then.
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.