I was working towards compiling Blender, but ran into a few problems
when installing it.
System: LFS SVN, [built w/ GCC 4.4.0, albet I attempted using GCC
4.4.3 just to ensure it was not a GCC Bug], Multilib [64bit part built
as per LFS Book (/usr/lib). 32bit in /usr/lib/32]
from src/arch/i386/x86_floatmul.c [I posted the code], I am getting
the following err
while (samples_main--) {
temp = __builtin_ia32_pmulhw(*(v4hi*)bpt, v_sa.v);
*(v4hi*)bpt = __builtin_ia32_psllw(temp, 1LL);
bpt += 4;
temp = __builtin_ia32_pmulhw(*(v4hi*)bpt, v_sa.v);
*(v4hi*)bpt = __builtin_ia32_psllw(temp, 1LL);
bpt += 4;
}
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common/include -I../include
-I../src/arch/i386 -Wall -ansi -pedantic -finline-functions
-ffast-math -fomit-frame-pointer -fvisibility=hidden
-I/usr/include/alsa -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g
-O2 -MT libopenal_la-x86_floatmul.lo -MD -MP -MF
.deps/libopenal_la-x86_floatmul.Tpo -c arch/i386/x86_floatmul.c -fPIC
-DPIC -o .libs/libopenal_la-x86_floatmul.o
arch/i386/x86_floatmul.c:86:46: warning: use of C99 long long integer constant
arch/i386/x86_floatmul.c: In function '_alFloatMul':
arch/i386/x86_floatmul.c:86: error: incompatible type for argument 2
of '__builtin_ia32_psllw'
arch/i386/x86_floatmul.c:86: note: expected 'short int __vector__' but
argument is of type 'long long int'
arch/i386/x86_floatmul.c:89:46: warning: use of C99 long long integer constant
arch/i386/x86_floatmul.c:89: error: incompatible type for argument 2
of '__builtin_ia32_psllw'
arch/i386/x86_floatmul.c:89: note: expected 'short int __vector__' but
argument is of type 'long long int'
make[3]: *** [libopenal_la-x86_floatmul.lo] Error 1
It looks to me, that it can be fixed by casting 1LL to short int
__vector__, but unfortunately I am at a loss when it comes to vectors.
--
Nathan Coulson (conathan)
------
Location: Brittish Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page