I'm trying to build chuck under gcc 4.3 and failing...
So, I thought, it must be an easy fix :-)
After the first error this fixes it:
----
--- chuck_vm.cpp~ 2007-10-03 22:37:33.000000000 -0400
+++ chuck_vm.cpp 2008-07-08 09:57:35.044314579 -0400
@@ -49,7 +49,7 @@
#include
There was a lot of work done on the gcc STL implementation in 4.3 --
the problem is that evidently <algorithm> was pulled in anyway without
explicitly including it by including algorithmfwd.h and the result was
pulling in half the universe prior to 4.3. The bug relevant to gcc
introducing this error message is here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34105
Thanks,
Brandon Nickell
On Tue, Jul 8, 2008 at 8:27 AM, Fernando Lopez-Lezcano
I'm trying to build chuck under gcc 4.3 and failing...
So, I thought, it must be an easy fix :-) After the first error this fixes it:
---- --- chuck_vm.cpp~ 2007-10-03 22:37:33.000000000 -0400 +++ chuck_vm.cpp 2008-07-08 09:57:35.044314579 -0400 @@ -49,7 +49,7 @@ #include
#endif - +#include <algorithm>
//-----------------------------------------------------------------------------
----
So far so good, and then the second error was defeated by:
---- --- ugen_stk.cpp~ 2007-10-04 04:44:34.000000000 -0400 +++ ugen_stk.cpp 2008-07-08 10:03:16.910915822 -0400 @@ -41,7 +41,7 @@ #include
#include #include - +#include ----
Yes, very easy, and then the third error (there may be more) was no longer easy to fix:
util_opsc.cpp: In member function 'bool UDP_Port_Listener::add(UDP_Subscriber*)': util_opsc.cpp:1169: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator
> >, __gnu_cxx::__normal_iterator > >, UDP_Subscriber*&)' util_opsc.cpp: In member function 'bool UDP_Port_Listener::drop(UDP_Subscriber*)': util_opsc.cpp:1188: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >, UDP_Subscriber*&)' No clue about this whatsoever and I could not get inspiration as I usually do from googling it or similar stuff... Must be a type thingy?
I guess programming in c++ is required knowledge :-( Any help appreciated! -- Fernando
_______________________________________________ chuck-dev mailing list chuck-dev@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
Hi Nando! Thanks for looking into this on your busy schedule! I believe the error below can also be fixed by including <algorithm> near the top of util_opsc.cpp. Just a heads up: we'll be releaseing chuck-1.2.1.2 in the next few days. We do our best to make sure it's gcc-4.3 compliant. Thanks again! Best wishes, Ge! The error:
----
Yes, very easy, and then the third error (there may be more) was no longer easy to fix:
util_opsc.cpp: In member function 'bool UDP_Port_Listener::add(UDP_Subscriber*)': util_opsc.cpp:1169: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator
> >, __gnu_cxx::__normal_iterator > >, UDP_Subscriber*&)' util_opsc.cpp: In member function 'bool UDP_Port_Listener::drop(UDP_Subscriber*)': util_opsc.cpp:1188: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >, UDP_Subscriber*&)'
On Tue, 2008-07-08 at 22:47 -0700, Ge Wang wrote:
Hi Nando!
Thanks for looking into this on your busy schedule! I believe the error below can also be fixed by including <algorithm> near the top of util_opsc.cpp.
That and a couple more patches did it. Complete patch attached, I imagine with this it will build on other gcc 4.3 based systems as well (this is for Fedora 9). On to chuck friends now (audicle, etc)... -- Fernando
Just a heads up: we'll be releaseing chuck-1.2.1.2 in the next few days. We do our best to make sure it's gcc-4.3 compliant.
Thanks again!
Best wishes, Ge!
The error:
----
Yes, very easy, and then the third error (there may be more) was no longer easy to fix:
util_opsc.cpp: In member function 'bool UDP_Port_Listener::add(UDP_Subscriber*)': util_opsc.cpp:1169: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator
> >, __gnu_cxx::__normal_iterator > >, UDP_Subscriber*&)' util_opsc.cpp: In member function 'bool UDP_Port_Listener::drop(UDP_Subscriber*)': util_opsc.cpp:1188: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >, UDP_Subscriber*&)'
That and a couple more patches did it. Complete patch attached, I imagine with this it will build on other gcc 4.3 based systems as well (this is for Fedora 9). On to chuck friends now (audicle, etc)...
Fernando, thank you very much! I've patched the latest chuck (rc6 for 1.2.1.2) with your modifications and also addressed the warnings from 4.3 - it's a good thing gcc finally decided to catch those sketchy string literal @=> char * inconsistencies. Thanks again! Best, Ge!
On Wed, 2008-07-09 at 10:42 +0200, Fernando Lopez-Lezcano wrote:
On Tue, 2008-07-08 at 22:47 -0700, Ge Wang wrote:
Hi Nando!
Thanks for looking into this on your busy schedule! I believe the error below can also be fixed by including <algorithm> near the top of util_opsc.cpp.
That and a couple more patches did it. Complete patch attached, I imagine with this it will build on other gcc 4.3 based systems as well (this is for Fedora 9). On to chuck friends now (audicle, etc)...
Patches attached for the audicle and tapestrea vs. gcc 4.3 (in addition to the already posted chuck patches, of course). As before, tons of warnings about "deprecated conversion from string constant to 'char*'". Also (maybe not secure, depends on context and I have not looked): ---- taps_cmd.cpp:(.text+0x28b): warning: the use of `tmpnam' is dangerous, better use `mkstemp' ---- Packages for all of the above have been pushed on Planet CCRMA for Fedora 9. But only for i386 :-) How about 64 bit support? -- Fernando
Just a heads up: we'll be releaseing chuck-1.2.1.2 in the next few days. We do our best to make sure it's gcc-4.3 compliant.
Thanks again!
Best wishes, Ge!
The error:
----
Yes, very easy, and then the third error (there may be more) was no longer easy to fix:
util_opsc.cpp: In member function 'bool UDP_Port_Listener::add(UDP_Subscriber*)': util_opsc.cpp:1169: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator
> >, __gnu_cxx::__normal_iterator > >, UDP_Subscriber*&)' util_opsc.cpp: In member function 'bool UDP_Port_Listener::drop(UDP_Subscriber*)': util_opsc.cpp:1188: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >, UDP_Subscriber*&)' _______________________________________________ chuck-dev mailing list chuck-dev@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
Hi Fernando!
Patches attached for the audicle and tapestrea vs. gcc 4.3 (in addition to the already posted chuck patches, of course).
Wow, sweet - thanks!!!
As before, tons of warnings about "deprecated conversion from string constant to 'char*'".
Yup! I've fixed the majority of these for ChucK 1.2.1.2, as they are sensible warnings, which I believe was not reported/deprecated until now for historical reasons. We'll look into them for audicle and taps.
Also (maybe not secure, depends on context and I have not looked): ---- taps_cmd.cpp:(.text+0x28b): warning: the use of `tmpnam' is dangerous, better use `mkstemp' ----
We'll look into this too!
Packages for all of the above have been pushed on Planet CCRMA for Fedora 9. But only for i386 :-) How about 64 bit support?
Thank you so much! 64-bit support is definitely planned, but is still in the pipeline of the things to do. Thanks again, you rock. Best, Ge!
participants (3)
-
Brandon Nickell
-
Fernando Lopez-Lezcano
-
Ge Wang