Dear pd-list,
I am having a nice time with pd.
I just suffer this sort of thing when I try to make the creb 0.90 external under ubuntu (which is just debian-linux-stuff I guess)
I type this in terminal after doing $/./configure in the creb directory i unpacked from tarball:
$/make
****************then output is as follows**************************
make -C system
make[1]: Entering directory /home/thomasgreg/creb-0.9.0/system' cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o setup.o -c setup.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o envelope_util.o -c envelope_util.c make[1]: Leaving directory
/home/thomasgreg/creb-0.9.0/system'
make -C modules
make[1]: Entering directory /home/thomasgreg/creb-0.9.0/modules' cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ead.o -c ead.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ear.o -c ear.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o eadsr.o -c eadsr.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o dist.o -c dist.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o tabreadmix.o -c tabreadmix.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o xfm.o -c xfm.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o qmult.o -c qmult.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o qnorm.o -c qnorm.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o cheby.o -c cheby.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o abs.o -c abs.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ramp.o -c ramp.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o dwt.o -c dwt.c cc1: warnings being treated as errors dwt.c: In function 'dwt_permutation': dwt.c:193: warning: format '%d' expects type 'int', but argument 2 has type 't_int' dwt.c:193: warning: format '%d' expects type 'int', but argument 3 has type 'long int' dwt.c:195: warning: format '%d' expects type 'int', but argument 2 has type 't_int' dwt.c:195: warning: format '%d' expects type 'int', but argument 3 has type 'long int' dwt.c: In function 'dwt_filter': dwt.c:243: warning: assignment from incompatible pointer type dwt.c:248: warning: assignment from incompatible pointer type make[1]: *** [dwt.o] Error 1 make[1]: Leaving directory
/home/thomasgreg/creb-0.9.0/modules'
make: *** [current] Error 2
so I dunno...
.. a fellow called Pun Chik posted this problem a while ago (december 2004) .. but there was no solution... maybe it is such a silly problem that is easily overcome.. (none-the-less it be wrecking my head more than the usual linux woe.)
If anybody has some idea I am very much appreciating..
Thanks-a-million,
Thomasgregory.
Assuming the warnings you get are trivial, just remove the -Werror flag from /home/thomasgreg/creb-0.9.0/modules/Makefile.
Martin
Thomas Greg Corcoran wrote:
Dear pd-list,
I am having a nice time with pd.
I just suffer this sort of thing when I try to make the creb 0.90 external under ubuntu (which is just debian-linux-stuff I guess)
I type this in terminal after doing $/./configure in the creb directory i unpacked from tarball:
$/make
****************then output is as follows**************************
make -C system make[1]: Entering directory
/home/thomasgreg/creb-0.9.0/system' cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o setup.o -c setup.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o envelope_util.o -c envelope_util.c make[1]: Leaving directory
/home/thomasgreg/creb-0.9.0/system' make -C modules make[1]: Entering directory/home/thomasgreg/creb-0.9.0/modules' cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ead.o -c ead.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ear.o -c ear.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o eadsr.o -c eadsr.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o dist.o -c dist.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o tabreadmix.o -c tabreadmix.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o xfm.o -c xfm.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o qmult.o -c qmult.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o qnorm.o -c qnorm.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o cheby.o -c cheby.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o abs.o -c abs.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ramp.o -c ramp.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o dwt.o -c dwt.c cc1: warnings being treated as errors dwt.c: In function 'dwt_permutation': dwt.c:193: warning: format '%d' expects type 'int', but argument 2 has type 't_int' dwt.c:193: warning: format '%d' expects type 'int', but argument 3 has type 'long int' dwt.c:195: warning: format '%d' expects type 'int', but argument 2 has type 't_int' dwt.c:195: warning: format '%d' expects type 'int', but argument 3 has type 'long int' dwt.c: In function 'dwt_filter': dwt.c:243: warning: assignment from incompatible pointer type dwt.c:248: warning: assignment from incompatible pointer type make[1]: *** [dwt.o] Error 1 make[1]: Leaving directory
/home/thomasgreg/creb-0.9.0/modules' make: *** [current] Error 2
so I dunno...
.. a fellow called Pun Chik posted this problem a while ago (december 2004) .. but there was no solution... maybe it is such a silly problem that is easily overcome.. (none-the-less it be wrecking my head more than the usual linux woe.)
If anybody has some idea I am very much appreciating..
Thanks-a-million,
Thomasgregory.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
That removal of -Werror flag is doing fine , thanks .... but after a few extra seconds of grace I get this other error :
it relates to blosc.cc ... there was previous posts (~january 2006) on the list about this but nothing conclusive ...
*******************dddduh*********************************
make -C system
make[1]: Entering directory /home/thomasgreg/creb-0.9.0/system' cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o setup.o -c setup.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o envelope_util.o -c envelope_util.c make[1]: Leaving directory
/home/thomasgreg/creb-0.9.0/system'
make -C modules
make[1]: Entering directory /home/thomasgreg/creb-0.9.0/modules' cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ead.o -c ead.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ear.o -c ear.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o eadsr.o -c eadsr.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o dist.o -c dist.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o tabreadmix.o -c tabreadmix.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o xfm.o -c xfm.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o qmult.o -c qmult.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o qnorm.o -c qnorm.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o cheby.o -c cheby.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o abs.o -c abs.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ramp.o -c ramp.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o dwt.o -c dwt.c dwt.c: In function 'dwt_permutation': dwt.c:193: warning: format '%d' expects type 'int', but argument 2 has type 't_int' dwt.c:193: warning: format '%d' expects type 'int', but argument 3 has type 'long int' dwt.c:195: warning: format '%d' expects type 'int', but argument 2 has type 't_int' dwt.c:195: warning: format '%d' expects type 'int', but argument 3 has type 'long int' dwt.c: In function 'dwt_filter': dwt.c:243: warning: assignment from incompatible pointer type dwt.c:248: warning: assignment from incompatible pointer type cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o bfft.o -c bfft.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o dynwav.o -c dynwav.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o statwav.o -c statwav.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o bdiag.o -c bdiag.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o diag.o -c diag.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o matrix.o -c matrix.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o permut.o -c permut.c permut.c: In function 'permut_perform': permut.c:129: warning: initialization from incompatible pointer type cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o lattice.o -c lattice.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ratio.o -c ratio.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o ffpoly.o -c ffpoly.c ffpoly.c: In function 'ffpoly_compute': ffpoly.c:52: warning: initialization from incompatible pointer type ffpoly.c: In function 'ffpoly_new': ffpoly.c:138: warning: assignment from incompatible pointer type cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o fwarp.o -c fwarp.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o junction.o -c junction.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o fdn.o -c fdn.c fdn.c: In function 'fdn_setupdelayline': fdn.c:327: warning: initialization from incompatible pointer type cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o window.o -c window.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o cmath.o -c cmath.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o eblosc.o -c eblosc.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o bitsplit.o -c bitsplit.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o sbosc.o -c sbosc.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o blocknorm.o -c blocknorm.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o resofilt.o -c resofilt.c cc -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o scrollgrid1D.o -c scrollgrid1D.c make[1]: Leaving directory
/home/thomasgreg/creb-0.9.0/modules'
make -C modules++
make[1]: Entering directory /home/thomasgreg/creb-0.9.0/modules++' g++ -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o biquadseries.o -c biquadseries.cc cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ g++ -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o filterortho.o -c filterortho.cc cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ g++ -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o blosc.o -c blosc.cc cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ blosc.cc: In function 't_float _get_bandlimited_discontinuity(t_bloscctl*, float*)': blosc.cc:114: error: invalid conversion from 't_int*' to 'int*' blosc.cc:114: error: initializing argument 2 of 'float _play_voice_lint(float*, int*, float, float)' make[1]: *** [blosc.o] Error 1 make[1]: Leaving directory
/home/thomasgreg/creb-0.9.0/modules++'
make: *** [current] Error 2
????????
Warm regards,
Mr. ThomasGreg
Thomas Greg Corcoran wrote:
Hi,
That removal of -Werror flag is doing fine , thanks .... but after a few extra seconds of grace I get this other error :
it relates to blosc.cc ... there was previous posts (~january 2006) on the list about this but nothing conclusive ...
...
make[1]: Entering directory `/home/thomasgreg/creb-0.9.0/modules++' g++ -DPD -DCREB_VERSION="0.9.0" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o biquadseries.o -c biquadseries.cc cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ g++ -DPD -DCREB_VERSION="0.9.0" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o filterortho.o -c filterortho.cc cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ g++ -DPD -DCREB_VERSION="0.9.0" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o blosc.o -c blosc.cc cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ blosc.cc: In function 't_float _get_bandlimited_discontinuity(t_bloscctl*, float*)': blosc.cc:114: error: invalid conversion from 't_int*' to 'int*' blosc.cc:114: error: initializing argument 2 of 'float _play_voice_lint(float*, int*, float, float)'
Line 114 of blosc.cc is: sum += _play_voice_lint(table, ctl->c_index+i, ctl->c_frac[i], ctl->c_vscale[i]); You could probably change it to: sum += _play_voice_lint(table, &ctl->c_index[i], ctl->c_frac[i], ctl->c_vscale[i]); ...which avoids any confusion the compiler might have about what size of object is being pointed at. Martin
Mr. Peach,
thanks for you patience and suggestions
after a bit of fiddling it turns out that changing that function's definition:
to this: [line 91] static inline float _play_voice_lint(float *table, int index, float frac, float scale)
seeems to make stuff work.
thanks-a-million,
Mr. Greg.
On Sun, 10 Sep 2006, Thomas Greg Corcoran wrote:
to this: [line 91] static inline float _play_voice_lint(float *table, int index, float frac, float scale) seeems to make stuff work.
This can't possibly work. The compiler should spit more errors at you than before. What it needs is t_int *index, like it is in the current CVS version. I fixed it some time ago:
revision 1.2 date: 2005/12/31 19:31:09; author: matju; state: Exp; lines: +2 -2 fixed int vs t_int
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
Ahaa,
okay. i remake it then.
thanks very much,
Thomasgreg
On 9/10/06, Mathieu Bouchard matju@artengine.ca wrote:
On Sun, 10 Sep 2006, Thomas Greg Corcoran wrote:
to this: [line 91] static inline float _play_voice_lint(float *table, int index, float frac, float scale) seeems to make stuff work.
This can't possibly work. The compiler should spit more errors at you than before. What it needs is t_int *index, like it is in the current CVS version. I fixed it some time ago:
revision 1.2 date: 2005/12/31 19:31:09; author: matju; state: Exp; lines: +2 -2 fixed int vs t_int
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
On Sat, 9 Sep 2006, Martin Peach wrote:
Line 114 of blosc.cc is:
sum += _play_voice_lint(table, ctl->c_index+i, ctl->c_frac[i], ctl->c_vscale[i]); You could probably change it to: sum += _play_voice_lint(table, &ctl->c_index[i], ctl->c_frac[i], ctl->c_vscale[i]); ...which avoids any confusion the compiler might have about what size of object is being pointed at. Martin
The compiler isn't confused: in C/C++, changing whatever+i to &whatever[i] never makes any difference to the type of the pointer.
in m_pd.h, t_int is typedefed as long, which means that in 64-bit mode, using int in place of t_int or vice-versa may lead to crashes, or weirdnesses like what happens when pd treats a t_word as a t_float and vice-versa.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
Mathieu Bouchard wrote:
On Sat, 9 Sep 2006, Martin Peach wrote:
Line 114 of blosc.cc is:
sum += _play_voice_lint(table, ctl->c_index+i, ctl->c_frac[i], ctl->c_vscale[i]); You could probably change it to: sum += _play_voice_lint(table, &ctl->c_index[i], ctl->c_frac[i], ctl->c_vscale[i]); ...which avoids any confusion the compiler might have about what size of object is being pointed at. Martin
The compiler isn't confused: in C/C++, changing whatever+i to &whatever[i] never makes any difference to the type of the pointer.
You're right of course. The real problem seems to be that Thomas was using an older version of the file...In the version from cvs c_index is a t_int and _play_voice_lint expects a pointer to t_int, so it should work alright. The error was about converting a t_int* to an int*, which didn't make sense to me since no ints should be involved: blosc.cc:114: error: invalid conversion from 't_int*' to 'int*' blosc.cc:114: error: initializing argument 2 of 'float _play_voice_lint(float*, int*, float, float)' ...but obviously the error explicitly states that _play_voice_lint expects an int* as the second argument, which is not the case in the latest version, which has: static inline float _play_voice_lint(float *table, t_int *index, float frac, float scale) So now I'm wondering if/why it ever worked at all before. Martin
in m_pd.h, t_int is typedefed as long, which means that in 64-bit mode, using int in place of t_int or vice-versa may lead to crashes, or weirdnesses like what happens when pd treats a t_word as a t_float and vice-versa.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
okay it compiled like this
************************........................lots of stuff............then...... lude/dspi -o filterortho.o -c filterortho.cc g++ -DPD -DCREB_VERSION="0.9.0" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o blosc.o -c blosc.cc make[1]: Leaving directory `/home/thomasgreg/creb-0.9.0/modules++' rm -f creb.pd_linux g++ -export_dynamic -shared -o creb.pd_linux system/*.o modules/*.o modules++/*.o -lm
I had changed that function play_voice_lint to accept the type int index (in the second variable, which originally was a type *int for my version, and I changed all the occurences of *index to index within that function.
I had also removed -Wstrictprototypes flag thing from the Makefile (which may also have something to do with stuff)
I say: $~/pd -lib creb.... then I get pd with creb...
so it worked; but maybe that object blosc is all screwed up for me
I hope that explains how it happened i'm new to programming so idunno
anyway i reckon i'lll just redo all with the newer-and-nicer stuff.. make some music.. and we can get back to living life free from my confused newbie problem.
thanks.a.million,
Thomasgreg
Thomas Greg Corcoran wrote:
okay it compiled like this
************************........................lots of stuff............then...... lude/dspi -o filterortho.o -c filterortho.cc g++ -DPD -DCREB_VERSION="0.9.0" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -INONE/pd/src -I../include -I../include/dspi -o blosc.o -c blosc.cc make[1]: Leaving directory `/home/thomasgreg/creb-0.9.0/modules++' rm -f creb.pd_linux g++ -export_dynamic -shared -o creb.pd_linux system/*.o modules/*.o modules++/*.o -lm
I had changed that function play_voice_lint to accept the type int index (in the second variable, which originally was a type *int for my version, and I changed all the occurences of *index to index within that function.
Wouldn't it have been easier to just get the latest version from cvs and use that? It sounds like what you did could break the object. Did you actually try the blosc object?
I had also removed -Wstrictprototypes flag thing from the Makefile (which may also have something to do with stuff)
Most of the functions in blosc.cc are indeed missing protoypes. It's easier just to add them. Personally I feel dirty when the prototypes aren't there :)
I say: $~/pd -lib creb.... then I get pd with creb...
so it worked; but maybe that object blosc is all screwed up for me
Why not try it and see?
I hope that explains how it happened i'm new to programming so idunno
anyway i reckon i'lll just redo all with the newer-and-nicer stuff..
Good idea.
make some music.. and we can get back to living life free from my confused newbie problem.
thanks.a.million,
Yes, if I had more time I'd try it myself ;) Martin
Thomasgreg
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
FYI: creb is included in the Pd-extended autobuilds.
http://autobuilds.puredata.info
You can also build creb like this:
cd pure-data/externals make creb
.hc
On Sep 11, 2006, at 9:14 AM, Martin Peach wrote:
Thomas Greg Corcoran wrote:
okay it compiled like this
************************........................lots of stuff............then...... lude/dspi -o filterortho.o -c filterortho.cc g++ -DPD -DCREB_VERSION="0.9.0" -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wno-unused -Wno-parentheses -Wno- switch -INONE/pd/src -I../include -I../include/dspi -o blosc.o -c blosc.cc make[1]: Leaving directory `/home/thomasgreg/creb-0.9.0/modules++' rm -f creb.pd_linux g++ -export_dynamic -shared -o creb.pd_linux system/*.o modules/*.o modules++/*.o -lm
I had changed that function play_voice_lint to accept the type int index (in the second variable, which originally was a type *int
for my version, and I changed all the occurences of *index to index within that
function.Wouldn't it have been easier to just get the latest version from
cvs and use that? It sounds like what you did could break the
object. Did you actually try the blosc object?I had also removed -Wstrictprototypes flag thing from the Makefile (which may also have something to do with stuff)
Most of the functions in blosc.cc are indeed missing protoypes.
It's easier just to add them. Personally I feel dirty when the
prototypes aren't there :)I say: $~/pd -lib creb.... then I get pd with creb...
so it worked; but maybe that object blosc is all screwed up for me
Why not try it and see?
I hope that explains how it happened i'm new to programming so idunno
anyway i reckon i'lll just redo all with the newer-and-nicer stuff..
Good idea.
make some music.. and we can get back to living life free from my confused newbie problem.
thanks.a.million,
Yes, if I had more time I'd try it myself ;) Martin
Thomasgreg
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
The arc of history bends towards justice. - Dr. Martin Luther
King, Jr.