anybody knows, why alitvec fails to compile on os-x 10.3? is this an issue of an outdated gcc?
mfg.asdr. IOhannes
Message: 2 Date: Sun, 22 Oct 2006 04:10:40 -0400 (EDT) From: pd@idmi.poly.edu (Pd User) Subject: [PD-cvs] autobuild: pd-extended macosx103-powerpc 2006-10-22 03.15.04 To: pd-cvs@iem.at Message-ID: 20061022081040.E4495FF114@macosx103-powerpc.idmi.poly.edu ... g++ -c -g -O2 -fPIC -freg-struct-return -O3 -falign-loops=16 -funroll-loops -ffast-math -faltivec -I.. -I/Users/pd/auto-build/pd-extended/pd/src GemPixConvertAltivec.cpp -o GemPixConvertAltivec.o g++ -c -g -O2 -fPIC -freg-struct-return -O3 -falign-loops=16 -funroll-loops -ffast-math -faltivec -I.. -I/Users/pd/auto-build/pd-extended/pd/src GemPixConvertSSE2.cpp -o GemPixConvertSSE2.o g++ -c -g -O2 -fPIC -freg-struct-return -O3 -falign-loops=16 -funroll-loops -ffast-math -faltivec -I.. -I/Users/pd/auto-build/pd-extended/pd/src GemPixDualObj.cpp -o GemPixDualObj.o GemPixConvertAltivec.cpp: In function `void YUV422_to_YV12_altivec(short int*, short int*, short int*, short int*, unsigned char*, int, int)': GemPixConvertAltivec.cpp:636: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:637: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:643: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:644: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:645: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:646: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp: In function `void YUV422_to_BGRA_altivec(unsigned char*, long unsigned int, unsigned char*)': GemPixConvertAltivec.cpp:772: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:773: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:774: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:775: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:776: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:777: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:788: error: cannot convert `vector short unsigned int' to `vector short int' in assignment GemPixConvertAltivec.cpp:789: error: cannot convert `vector short unsigned int' to `vector short int' in assignment GemPixConvertAltivec.cpp:790: error: cannot convert `vector short unsigned int' to `vector short int' in assignment make[3]: *** [GemPixConvertAltivec.o] Error 1 make[3]: *** Waiting for unfinished jobs....
FYI, This is the gcc version:
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
.hc
On Oct 22, 2006, at 1:03 PM, IOhannes m zmoelnig wrote:
anybody knows, why alitvec fails to compile on os-x 10.3? is this an issue of an outdated gcc?
mfg.asdr. IOhannes
Message: 2 Date: Sun, 22 Oct 2006 04:10:40 -0400 (EDT) From: pd@idmi.poly.edu (Pd User) Subject: [PD-cvs] autobuild: pd-extended macosx103-powerpc 2006-10-22 03.15.04 To: pd-cvs@iem.at Message-ID: 20061022081040.E4495FF114@macosx103-powerpc.idmi.poly.edu ... g++ -c -g -O2 -fPIC -freg-struct-return -O3 -falign-loops=16 -funroll-loops -ffast-math -faltivec -I.. -I/Users/pd/auto-build/pd-extended/pd/src GemPixConvertAltivec.cpp -o GemPixConvertAltivec.o g++ -c -g -O2 -fPIC -freg-struct-return -O3 -falign-loops=16 -funroll-loops -ffast-math -faltivec -I.. -I/Users/pd/auto-build/pd-extended/pd/src GemPixConvertSSE2.cpp -o GemPixConvertSSE2.o g++ -c -g -O2 -fPIC -freg-struct-return -O3 -falign-loops=16 -funroll-loops -ffast-math -faltivec -I.. -I/Users/pd/auto-build/pd-extended/pd/src GemPixDualObj.cpp -o GemPixDualObj.o GemPixConvertAltivec.cpp: In function `void YUV422_to_YV12_altivec (short int*, short int*, short int*, short int*, unsigned char*, int, int)': GemPixConvertAltivec.cpp:636: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:637: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:643: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:644: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:645: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp:646: error: no instance of overloaded builtin function `vec_sl' matches the parameter list GemPixConvertAltivec.cpp: In function `void YUV422_to_BGRA_altivec (unsigned char*, long unsigned int, unsigned char*)': GemPixConvertAltivec.cpp:772: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:773: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:774: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:775: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:776: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:777: error: cannot convert `vector int' to `vector unsigned int' in assignment GemPixConvertAltivec.cpp:788: error: cannot convert `vector short unsigned int' to `vector short int' in assignment GemPixConvertAltivec.cpp:789: error: cannot convert `vector short unsigned int' to `vector short int' in assignment GemPixConvertAltivec.cpp:790: error: cannot convert `vector short unsigned int' to `vector short int' in assignment make[3]: *** [GemPixConvertAltivec.o] Error 1 make[3]: *** Waiting for unfinished jobs....
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
------------------------------------------------------------------------
Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies. - Amy Smith
On Tue, 24 Oct 2006, Hans-Christoph Steiner wrote:
On Oct 22, 2006, at 1:03 PM, IOhannes m zmoelnig wrote:
anybody knows, why altivec fails to compile on os-x 10.3? is this an issue of an outdated gcc?
FYI, This is the gcc version: gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
I don't know about Altivec, but some forms of MMX/SSE support are rather unstable until gcc 4.1. However this might be only affecting implicit SIMD, not explicit SIMD as GEM is compiled with. I remember devel_0_39 compilation crashing gcc 3.3 in a module that doesn't refer to SIMD, so this had to be a problem with implicit SIMD.
(Else I've never used Altivec so I can't really tell.)
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
On Oct 24, 2006, at 12:10 AM, Hans-Christoph Steiner wrote:
FYI, This is the gcc version:
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
.hc
On Oct 22, 2006, at 1:03 PM, IOhannes m zmoelnig wrote:
anybody knows, why alitvec fails to compile on os-x 10.3? is this an issue of an outdated gcc?
...10.3 is only supported up to a certain Xcode (I think 2.1?), so do we know what's installed on the compile farm?
20061022081040.E4495FF114@macosx103-powerpc.idmi.poly.edu ... g++ -c -g -O2 -fPIC -freg-struct-return -O3 -falign-loops=16 -funroll-loops -ffast-math -faltivec -I.. -I/Users/pd/auto-build/pd-extended/pd/src GemPixConvertAltivec.cpp -o GemPixConvertAltivec.o
...snip...maybe we should add -maltivec to this compile? It's really for something else, and guarantees crashes if you try to run the code on a G3, but...?
GemPixConvertAltivec.cpp: In function `void YUV422_to_YV12_altivec (short int*, short int*, short int*, short int*, unsigned char*, int, int)': GemPixConvertAltivec.cpp:636: error: no instance of overloaded builtin function `vec_sl' matches the parameter list
...snip...hmm, I had just made all the vectors "vector signed short", but on close re-examination of the altivec programmer's interface manual, the shift should be a 'vector unsigned short': I'll commit this and see if it goes away...
GemPixConvertAltivec.cpp: In function `void YUV422_to_BGRA_altivec (unsigned char*, long unsigned int, unsigned char*)': GemPixConvertAltivec.cpp:772: error: cannot convert `vector int' to `vector unsigned int' in assignment
...snip...sure enough, similar problem here: the vec_add() is trying to do "vector unsigned int" = "vector signed int" + "vector signed int", but they should all be the same type...again, I'll try to change some types around, but I'll have to do a bit more testing to make sure it still does what I think it should...
...ultimate question, tho, is why don't I see these errors on my 10.4/ gcc4 compiles?
jamie
...jeez, I should read compile logs more closely...
On Oct 24, 2006, at 12:42 PM, james tittle wrote:
...ultimate question, tho, is why don't I see these errors on my 10.4/gcc4 compiles?
...answer: it's now only reported as a warning ("comparison between signed and unsigned integer expressions")
...hmdeedmm...
On Oct 24, 2006, at 12:42 PM, james tittle wrote:
On Oct 24, 2006, at 12:10 AM, Hans-Christoph Steiner wrote:
FYI, This is the gcc version:
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
.hc
On Oct 22, 2006, at 1:03 PM, IOhannes m zmoelnig wrote:
anybody knows, why alitvec fails to compile on os-x 10.3? is this an issue of an outdated gcc?
...10.3 is only supported up to a certain Xcode (I think 2.1?), so do we know what's installed on the compile farm?
The 10.3 box has the latest Xcode and the gcc update.
.hc
20061022081040.E4495FF114@macosx103-powerpc.idmi.poly.edu ... g++ -c -g -O2 -fPIC -freg-struct-return -O3 -falign-loops=16 -funroll-loops -ffast-math -faltivec -I.. -I/Users/pd/auto-build/pd-extended/pd/src GemPixConvertAltivec.cpp -o GemPixConvertAltivec.o
...snip...maybe we should add -maltivec to this compile? It's really for something else, and guarantees crashes if you try to run the code on a G3, but...?
GemPixConvertAltivec.cpp: In function `void YUV422_to_YV12_altivec (short int*, short int*, short int*, short int*, unsigned char*, int, int)': GemPixConvertAltivec.cpp:636: error: no instance of overloaded builtin function `vec_sl' matches the parameter list
...snip...hmm, I had just made all the vectors "vector signed short", but on close re-examination of the altivec programmer's interface manual, the shift should be a 'vector unsigned short': I'll commit this and see if it goes away...
GemPixConvertAltivec.cpp: In function `void YUV422_to_BGRA_altivec (unsigned char*, long unsigned int, unsigned char*)': GemPixConvertAltivec.cpp:772: error: cannot convert `vector int' to `vector unsigned int' in assignment
...snip...sure enough, similar problem here: the vec_add() is trying to do "vector unsigned int" = "vector signed int" + "vector signed int", but they should all be the same type...again, I'll try to change some types around, but I'll have to do a bit more testing to make sure it still does what I think it should...
...ultimate question, tho, is why don't I see these errors on my 10.4/gcc4 compiles?
jamie
------------------------------------------------------------------------