[GEM-dev] building gem CVS (anonymous from right now)

B. Bogart ben at ekran.org
Sun Jan 22 21:31:08 CET 2006


Hy Johannes,

Ok I'm back at it now.

before messing with the Make.config I tried to run your cpp command.

bbogart at insitu:~/pd-stuff/Gem/src/Base$ cpp -fPIC -g -O2
-freg-struct-return -O3 -fno-builtin -falign-loops=16 -funroll-loops
-ffast-math -mmmx  -I/usr/X11R6/include  -I/usr/include/ffmpeg
-I/usr/include/quicktime -I/usr/include/avifile-0.7
-I/usr/include/freetype2 -I..  -I/usr/include/FTGL
-I/usr/include/freetype2  GemGLUtil.cpp | head
# 1 "GemGLUtil.cpp"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "GemGLUtil.cpp"
# 18 "GemGLUtil.cpp"
# 1 "GemGLUtil.h" 1
# 20 "GemGLUtil.h"
# 1 "../Base/GemBase.h" 1
# 23 "../Base/GemBase.h"
# 1 "../Base/GemGL.h" 1

without the pipe to get I get 9930 lines of code output to the
console... what the heck???

So I tried gcc rather than cpp:

bbogart at insitu:~/pd-stuff/Gem/src/Base$ gcc -fPIC -g -O2
-freg-struct-return -O3 -fno-builtin -falign-loops=16 -funroll-loops
-ffast-math -mmmx  -I/usr/X11R6/include  -I/usr/include/ffmpeg
-I/usr/include/quicktime -I/usr/include/avifile-0.7
-I/usr/include/freetype2 -I..  -I/usr/include/FTGL
-I/usr/include/freetype2  GemGLUtil.cpp
In file included from GemGLUtil.cpp:18:
GemGLUtil.h:25: error: declaration of C function `int
getGLdefine(t_symbol*)'
    conflicts with
GemGLUtil.h:24: error: previous declaration `int getGLdefine(char*)' here
GemGLUtil.h:26: error: declaration of C function `int getGLdefine(t_atom*)'
    conflicts with
GemGLUtil.h:25: error: previous declaration `int getGLdefine(t_symbol*)'
here
GemGLUtil.cpp: In function `int getGLdefine(t_atom*)':
GemGLUtil.cpp:78: error: cannot convert `t_symbol*' to `t_atom*' for
argument `
    1' to `int getGLdefine(t_atom*)'
GemGLUtil.cpp: In function `int getGLdefine(t_symbol*)':
GemGLUtil.cpp:84: error: declaration of C function `int
getGLdefine(t_symbol*)'
    conflicts with
GemGLUtil.cpp:76: error: previous declaration `int getGLdefine(t_atom*)'
here
GemGLUtil.cpp: In function `int getGLdefine(t_atom*)':
GemGLUtil.cpp:85: error: cannot convert `char*' to `t_symbol*' for
argument `1'
    to `int getGLdefine(t_symbol*)'
GemGLUtil.cpp: In function `int getGLdefine(char*)':
GemGLUtil.cpp:90: error: declaration of C function `int getGLdefine(char*)'
    conflicts with
GemGLUtil.cpp:84: error: previous declaration `int
getGLdefine(t_symbol*)' here
GemGLUtil.cpp: At global scope:
GemGLUtil.cpp:5636: error: parse error at end of input

After changing CXXFLAGS from:

CXXFLAGS ?= -g -O2 -freg-struct-return -O3 -fno-builtin -falign-loops=16
-funroll-loops -ffast-math -mmmx

to:

CXXFLAGS ?= -g -O2 -I/usr/X11R6/include

and make does:

bbogart at insitu:~/pd-stuff/Gem/src$ make
make -C Base -f ..//Makefile.subdir -j4
make[1]: Entering directory `/home/bbogart/pd-stuff/Gem/src/Base'
g++ -c -fPIC -g -O2 -I/usr/X11R6/include  -I/usr/X11R6/include
-I/usr/include/ff
mpeg -I/usr/include/quicktime   -I/usr/include/avifile-0.7
-I/usr/include/free
type2   -I..  -I/usr/include/FTGL -I/usr/include/freetype2  GemBase.cpp
-o GemBa
se.o
g++ -c -fPIC -g -O2 -I/usr/X11R6/include  -I/usr/X11R6/include
-I/usr/include/ff
mpeg -I/usr/include/quicktime   -I/usr/include/avifile-0.7
-I/usr/include/free
type2   -I..  -I/usr/include/FTGL -I/usr/include/freetype2
GemGLUtil.cpp -o Gem
GLUtil.o
g++ -c -fPIC -g -O2 -I/usr/X11R6/include  -I/usr/X11R6/include
-I/usr/include/ff
mpeg -I/usr/include/quicktime   -I/usr/include/avifile-0.7
-I/usr/include/free
type2   -I..  -I/usr/include/FTGL -I/usr/include/freetype2
GemGluObj.cpp -o Gem
GluObj.o
g++ -c -fPIC -g -O2 -I/usr/X11R6/include  -I/usr/X11R6/include
-I/usr/include/ff
mpeg -I/usr/include/quicktime   -I/usr/include/avifile-0.7
-I/usr/include/free
type2   -I..  -I/usr/include/FTGL -I/usr/include/freetype2
GemLoadObj.cpp -o Ge
mLoadObj.o
In file included from GemGLUtil.cpp:18:
GemGLUtil.h:25: error: declaration of C function `int
getGLdefine(t_symbol*)'
    conflicts with
GemGLUtil.h:24: error: previous declaration `int getGLdefine(char*)' here
GemGLUtil.h:26: error: declaration of C function `int getGLdefine(t_atom*)'
    conflicts with
GemGLUtil.h:25: error: previous declaration `int getGLdefine(t_symbol*)'
here
GemGLUtil.cpp: In function `int getGLdefine(t_atom*)':
GemGLUtil.cpp:78: error: cannot convert `t_symbol*' to `t_atom*' for
argument `
    1' to `int getGLdefine(t_atom*)'
GemGLUtil.cpp: In function `int getGLdefine(t_symbol*)':
GemGLUtil.cpp:84: error: declaration of C function `int
getGLdefine(t_symbol*)'
    conflicts with
GemGLUtil.cpp:76: error: previous declaration `int getGLdefine(t_atom*)'
here
GemGLUtil.cpp: In function `int getGLdefine(t_atom*)':
GemGLUtil.cpp:85: error: cannot convert `char*' to `t_symbol*' for
argument `1'
    to `int getGLdefine(t_symbol*)'
GemGLUtil.cpp: In function `int getGLdefine(char*)':
GemGLUtil.cpp:90: error: declaration of C function `int getGLdefine(char*)'
    conflicts with
GemGLUtil.cpp:84: error: previous declaration `int
getGLdefine(t_symbol*)' here
GemGluObj.cpp:98: error: parse error at end of input
g++ -c -fPIC -g -O2 -I/usr/X11R6/include  -I/usr/X11R6/include
-I/usr/include/ff
mpeg -I/usr/include/quicktime   -I/usr/include/avifile-0.7
-I/usr/include/free
type2   -I..  -I/usr/include/FTGL -I/usr/include/freetype2  GemMan.cpp
-o GemMan
.o
make[1]: *** [GemGluObj.o] Error 1
make[1]: *** Waiting for unfinished jobs....
GemBase.cpp:138: error: parse error at end of input
make[1]: *** [GemBase.o] Error 1
GemGLUtil.cpp: At global scope:
GemGLUtil.cpp:5636: error: parse error at end of input
make[1]: *** [GemGLUtil.o] Error 1
make: *** [Base] Error 2
bbogart at insitu:~/pd-stuff/Gem/src$ GemMan.cpp:1567: error: parse error
at end of
  input

So I'm stuck, Any other ideas Johannes?

I hope this is not some other damn AMD64 issue...

I'll try another fresh checkout, but I don't think that'll change
anything...

Thanks.

B.


IOhannes m zmoelnig wrote:
> B. Bogart wrote:
>
>> Hi Johannes,
>>
>> Ok I'm confused, so I did a fresh (anon) CVS checkout and Gem is still
>> bailing at the same point:
>
>
> ...
>
>
> is still don't have a clue what be the cause of your problems.
> could you send the output of the following line run from sr/Base:
> cpp -fPIC -g -O2 -freg-struct-return -O3 -fno-builtin -falign-loops=16
> -funroll-loops -ffast-math -mmmx  -I/usr/X11R6/include
> -I/usr/include/ffmpeg -I/usr/include/quicktime
> -I/usr/include/avifile-0.7   -I/usr/include/freetype2 -I..
> -I/usr/include/FTGL -I/usr/include/freetype2  GemGLUtil.cpp
>
>
> you could also try to set the CXXFLAGS in Make.config from
> to something simple like
> "-g -O2 -I/usr/X11R6/include"
> (especially try without "-freg-struct-return")
>
>
> mfg.asd.r
> IOhannes
>
> _______________________________________________
> GEM-dev mailing list
> GEM-dev at iem.at
> http://lists.puredata.info/listinfo/gem-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20060122/528d3ab3/attachment.pgp>


More information about the GEM-dev mailing list