Re: [PD] ppc/linux build issues..
cheers, should have checked the source.. pretty simple, obiously not much demand for big-endian archs these days.. patch attached will add it to the tracker. errordevelo...@gmail.com wrote: hm .. it looks like you should try with GCC 4.3 or .2, 4.4.x is to recent ;) also, if no chances with getting different gcc version - try --without-alsa so it can skip that bit ;) if everything goes ok after make clean ./configure --without-alsa then there could be two things to fix it: a) may be recompile alsa with the new gcc first b) if still get this error - look into s_audio_alsa.c good luck ..)) On Wed, Jan 20, 2010 at 03:48:47AM +1000, dmotd wrote: hi there.. running linux on a powerpc (old powerbook g4), pd-0.42-5 fails to compile (success with older pd-0.41-1, failure with pd-gui-rewrite). any clues? error follows: --- $ make cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX -DUNISTD-DUSEAPI_OSS -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops -fomit-frame-pointer -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX=\/usr/local\ -c -o ../obj/s_audio_alsa.o s_audio_alsa.c s_audio_alsa.c: In function ‘alsa_send_dacs’: s_audio_alsa.c:472: error: called object ‘stderr’ is not a function s_audio_alsa.c:472: error: expected ‘)’ before ‘;’ token s_audio_alsa.c:474: error: too few arguments to function ‘fprintf’ s_audio_alsa.c:474: error: expected ‘;’ before ‘}’ token s_audio_alsa.c:584: error: called object ‘stderr’ is not a function s_audio_alsa.c:584: error: expected ‘)’ before ‘;’ token s_audio_alsa.c:586: error: too few arguments to function ‘fprintf’ s_audio_alsa.c:586: error: expected ‘;’ before ‘}’ token make: *** [s_audio_alsa.o] Error 1 --- $ gcc -v Using built-in specs. Target: powerpc-unknown-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=powerpc --with-cpu=powerpc --disable-altivec --without-altivec Thread model: posix gcc version 4.4.2 (GCC) ___ 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 --- pd-0.42-5/src/s_audio_alsa.c2008-12-11 04:30:53.0 +1000 +++ pd-0.42-5-diff/src/s_audio_alsa.c 2010-01-21 04:18:21.0 +1000 @@ -469,7 +469,7 @@ ((char *)(alsa_snd_buf))[3*j+1] = ((s8) 255); ((char *)(alsa_snd_buf))[3*j+2] = ((s16) 255); #else -fprintf(stderr(big endian 24-bit not supported); +fprintf(stderr, big endian 24-bit not supported); #endif } for (; i thisdevchans; i++, ch++) @@ -581,7 +581,7 @@ * (1./ INT32_MAX); } #else -fprintf(stderr(big endian 24-bit not supported); +fprintf(stderr, big endian 24-bit not supported); #endif } else ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] ppc/linux build issues..
hi there.. running linux on a powerpc (old powerbook g4), pd-0.42-5 fails to compile (success with older pd-0.41-1, failure with pd-gui-rewrite). any clues? error follows: --- $ make cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX -DUNISTD-DUSEAPI_OSS -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops -fomit-frame-pointer -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX=\/usr/local\ -c -o ../obj/s_audio_alsa.o s_audio_alsa.c s_audio_alsa.c: In function ‘alsa_send_dacs’: s_audio_alsa.c:472: error: called object ‘stderr’ is not a function s_audio_alsa.c:472: error: expected ‘)’ before ‘;’ token s_audio_alsa.c:474: error: too few arguments to function ‘fprintf’ s_audio_alsa.c:474: error: expected ‘;’ before ‘}’ token s_audio_alsa.c:584: error: called object ‘stderr’ is not a function s_audio_alsa.c:584: error: expected ‘)’ before ‘;’ token s_audio_alsa.c:586: error: too few arguments to function ‘fprintf’ s_audio_alsa.c:586: error: expected ‘;’ before ‘}’ token make: *** [s_audio_alsa.o] Error 1 --- $ gcc -v Using built-in specs. Target: powerpc-unknown-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=powerpc --with-cpu=powerpc --disable-altivec --without-altivec Thread model: posix gcc version 4.4.2 (GCC) ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] ppc/linux build issues..
hm .. it looks like you should try with GCC 4.3 or .2, 4.4.x is to recent ;) also, if no chances with getting different gcc version - try --without-alsa so it can skip that bit ;) if everything goes ok after make clean ./configure --without-alsa then there could be two things to fix it: a) may be recompile alsa with the new gcc first b) if still get this error - look into s_audio_alsa.c good luck ..)) On Wed, Jan 20, 2010 at 03:48:47AM +1000, dmotd wrote: hi there.. running linux on a powerpc (old powerbook g4), pd-0.42-5 fails to compile (success with older pd-0.41-1, failure with pd-gui-rewrite). any clues? error follows: --- $ make cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX -DUNISTD-DUSEAPI_OSS -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops -fomit-frame-pointer -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX=\/usr/local\ -c -o ../obj/s_audio_alsa.o s_audio_alsa.c s_audio_alsa.c: In function ‘alsa_send_dacs’: s_audio_alsa.c:472: error: called object ‘stderr’ is not a function s_audio_alsa.c:472: error: expected ‘)’ before ‘;’ token s_audio_alsa.c:474: error: too few arguments to function ‘fprintf’ s_audio_alsa.c:474: error: expected ‘;’ before ‘}’ token s_audio_alsa.c:584: error: called object ‘stderr’ is not a function s_audio_alsa.c:584: error: expected ‘)’ before ‘;’ token s_audio_alsa.c:586: error: too few arguments to function ‘fprintf’ s_audio_alsa.c:586: error: expected ‘;’ before ‘}’ token make: *** [s_audio_alsa.o] Error 1 --- $ gcc -v Using built-in specs. Target: powerpc-unknown-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=powerpc --with-cpu=powerpc --disable-altivec --without-altivec Thread model: posix gcc version 4.4.2 (GCC) ___ 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