[Cs-dev] question re: build error
Date | 2010-04-05 17:43 |
From | Dave Phillips |
Subject | [Cs-dev] question re: build error |
Greetings, I have a problem building Csound 5.12.1 (from the tarball) on Ubuntu Karmic, GCC 4.4.1. I use the following options with scons : scons useDouble=1 install=1 buildInterfaces=1 buildJavaWrapper=1 dynamicCsoundLibrary=1 buildPythonOpcodes=1 useOSC=1 Python is 2.6, Java is SDK 1.6. Everything appears to move along well until this happens : scons: Building targets ... scons: *** [interfaces/csnd/CSOUND_FILETYPES.class] AttributeError : 'module' object has no attribute 'reduce' Traceback (most recent call last): File "/usr/lib/scons/SCons/Taskmaster.py", line 228, in execute self.targets[0].build() File "/usr/lib/scons/SCons/Node/__init__.py", line 370, in build apply(self.get_executor(), (self,), kw) File "/usr/lib/scons/SCons/Executor.py", line 149, in __call__ return self.do_execute(target, kw) File "/usr/lib/scons/SCons/Executor.py", line 131, in do_execute status = apply(act, (self.targets, self.get_sources(), env), kw) File "/usr/lib/scons/SCons/Action.py", line 881, in __call__ return apply(c.__call__, args, kw) File "/usr/lib/scons/SCons/Action.py", line 509, in __call__ cmd = self.strfunction(target, source, env) File "/usr/lib/scons/SCons/Action.py", line 686, in strfunction cmd_list, ignore, silent = self.process(target, source, env) File "/usr/lib/scons/SCons/Action.py", line 661, in process result = env.subst_list(self.cmd_list, 0, target, source) File "/usr/lib/scons/SCons/Environment.py", line 523, in subst_list return SCons.Subst.scons_subst_list(string, self, raw, target, source, gvars, lvars, conv) File "/usr/lib/scons/SCons/Subst.py", line 831, in scons_subst_list ls.substitute(strSubst, lvars, 0) File "/usr/lib/scons/SCons/Subst.py", line 710, in substitute self.expand(a, lvars, within_list) File "/usr/lib/scons/SCons/Subst.py", line 665, in expand self.substitute(s, lv, 0) File "/usr/lib/scons/SCons/Subst.py", line 710, in substitute self.expand(a, lvars, within_list) File "/usr/lib/scons/SCons/Subst.py", line 665, in expand self.substitute(s, lv, 0) File "/usr/lib/scons/SCons/Subst.py", line 712, in substitute self.expand(args, lvars, within_list) File "/usr/lib/scons/SCons/Subst.py", line 676, in expand for_signature=(self.mode != SUBST_CMD)) File "/usr/lib/scons/SCons/Platform/__init__.py", line 157, in __call__ if (reduce(lambda x, y: x + len(y), cmd, 0) + len(cmd)) <= maxline: AttributeError: 'module' object has no attribute 'reduce' scons: building terminated because of errors. I've Google'd for the error but haven't figured it out yet. It seems to be Python-related, that's about all I can tell. Any suggestions for fixing it ? TIA, dp ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-04-05 17:48 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] question re: build error |
Seems to be an scons error. Maybe you should try reinstalling or updating it. Victor On 5 Apr 2010, at 17:43, Dave Phillips wrote: > Greetings, > > I have a problem building Csound 5.12.1 (from the tarball) on Ubuntu > Karmic, GCC 4.4.1. I use the following options with scons : > > scons useDouble=1 install=1 buildInterfaces=1 buildJavaWrapper=1 > dynamicCsoundLibrary=1 buildPythonOpcodes=1 useOSC=1 > > Python is 2.6, Java is SDK 1.6. > > Everything appears to move along well until this happens : > > > scons: Building targets ... > scons: *** [interfaces/csnd/CSOUND_FILETYPES.class] AttributeError : > 'module' object has no attribute 'reduce' > Traceback (most recent call last): > File "/usr/lib/scons/SCons/Taskmaster.py", line 228, in execute > self.targets[0].build() > File "/usr/lib/scons/SCons/Node/__init__.py", line 370, in build > apply(self.get_executor(), (self,), kw) > File "/usr/lib/scons/SCons/Executor.py", line 149, in __call__ > return self.do_execute(target, kw) > File "/usr/lib/scons/SCons/Executor.py", line 131, in do_execute > status = apply(act, (self.targets, self.get_sources(), env), kw) > File "/usr/lib/scons/SCons/Action.py", line 881, in __call__ > return apply(c.__call__, args, kw) > File "/usr/lib/scons/SCons/Action.py", line 509, in __call__ > cmd = self.strfunction(target, source, env) > File "/usr/lib/scons/SCons/Action.py", line 686, in strfunction > cmd_list, ignore, silent = self.process(target, source, env) > File "/usr/lib/scons/SCons/Action.py", line 661, in process > result = env.subst_list(self.cmd_list, 0, target, source) > File "/usr/lib/scons/SCons/Environment.py", line 523, in subst_list > return SCons.Subst.scons_subst_list(string, self, raw, target, > source, gvars, lvars, conv) > File "/usr/lib/scons/SCons/Subst.py", line 831, in scons_subst_list > ls.substitute(strSubst, lvars, 0) > File "/usr/lib/scons/SCons/Subst.py", line 710, in substitute > self.expand(a, lvars, within_list) > File "/usr/lib/scons/SCons/Subst.py", line 665, in expand > self.substitute(s, lv, 0) > File "/usr/lib/scons/SCons/Subst.py", line 710, in substitute > self.expand(a, lvars, within_list) > File "/usr/lib/scons/SCons/Subst.py", line 665, in expand > self.substitute(s, lv, 0) > File "/usr/lib/scons/SCons/Subst.py", line 712, in substitute > self.expand(args, lvars, within_list) > File "/usr/lib/scons/SCons/Subst.py", line 676, in expand > for_signature=(self.mode != SUBST_CMD)) > File "/usr/lib/scons/SCons/Platform/__init__.py", line 157, in > __call__ > if (reduce(lambda x, y: x + len(y), cmd, 0) + len(cmd)) <= maxline: > AttributeError: 'module' object has no attribute 'reduce' > scons: building terminated because of errors. > > > > I've Google'd for the error but haven't figured it out yet. It seems > to > be Python-related, that's about all I can tell. Any suggestions for > fixing it ? > > TIA, > > dp > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-04-05 18:10 |
From | Dave Phillips |
Subject | Re: [Cs-dev] question re: build error |
Victor Lazzarini wrote: > Seems to be an scons error. Maybe you should try reinstalling or > updating it. > Thanks, Victor, but that wasn't the solution. The PYTHONPATH did not include /usr/lib/python2.6. I fixed the path problem, everything rolled on until this unhappy moment: scons: Building targets ... g++ -o lib_jcsound.so -Wl,-Bdynamic -Wl,-rpath-link,interfaces -shared interfaces/java_interface_wrap.os -L. -L. -L/usr/local/lib -L. -L. -L/usr/lib/fltk-1.1 -lcsnd -lstdc++ -lutil libcsound64.so.5.2 -lsndfile -lsndfile -lpthread -lpthread -lm -lportaudio -lfltk -lasound -llo -lsndfile -ldl -lm -lpthread /usr/bin/ld: cannot find -lcsnd collect2: ld returned 1 exit status scons: *** [lib_jcsound.so] Error 1 scons: building terminated because of errors. Stuck again. Oh well. I'll keep chipping away at it. Best, dp ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-04-05 18:18 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] question re: build error |
I have seen that before. It seemed to go on another attempt to build. Think it is to do with version numbers etc etc Do you have libcsnd.so or libcsnd.so.5.2 and are they liked? ==John ff > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-04-05 19:03 |
From | Dave Phillips |
Subject | Re: [Cs-dev] question re: build error |
jpff@cs.bath.ac.uk wrote: > I have seen that before. It seemed to go on another attempt to build. > Think it is to do with version numbers etc etc > Do you have libcsnd.so or libcsnd.so.5.2 and are they liked? > Hi John, In $HOME/src/Csound5.12.1 I have libcsnd.so. A directory listing says it's linked to libcsnd.so.5.2, but there's no such lib in the directory. So the lib didn't get built. Any suggestions where I should look to fix things ? Again, I'm building with GCC 4.4.1 on Ubuntu Karmic, Java 1.6, Python 2.6. Best, dp ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-04-05 19:11 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] question re: build error |
In SConstruct the lines are elif getPlatform() == 'linux': csoundInterfacesEnvironment.Append(LINKFLAGS = ['-Wl,-rpath-link,interfa ces']) name = 'libcsnd.so' soname = name + '.' + csoundLibraryVersion # This works because scons chdirs while reading SConscripts # When building stuff scons doesn't chdir by default! try : os.symlink(soname, '%s' % name) except : pass Clean(soname, name) #Delete symlink on clean linkflags = csoundInterfacesEnvironment['SHLINKFLAGS'] soflag = [ '-Wl,-soname=%s' % soname ] extraflag = ['-L.'] csnd = csoundInterfacesEnvironment.SharedLibrary( soname, csoundInterfacesSources, SHLINKFLAGS = linkflags+soflag+extraflag, SHLIBPREFIX = '', SHLIBSUFFIX = '') Does it try any of that? > jpff@cs.bath.ac.uk wrote: >> I have seen that before. It seemed to go on another attempt to build. >> Think it is to do with version numbers etc etc >> Do you have libcsnd.so or libcsnd.so.5.2 and are they liked? >> > Hi John, > > In $HOME/src/Csound5.12.1 I have libcsnd.so. A directory listing says > it's linked to libcsnd.so.5.2, but there's no such lib in the directory. > So the lib didn't get built. Any suggestions where I should look to fix > things ? > > Again, I'm building with GCC 4.4.1 on Ubuntu Karmic, Java 1.6, Python 2.6. > > Best, > > dp > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-04-05 19:36 |
From | Michael Gogins |
Subject | Re: [Cs-dev] question re: build error |
It's a good idea to delete all *wrap* files generated by SWIG before rebuilding, but you probably already knew that. Regards, Mike On Mon, Apr 5, 2010 at 12:43 PM, Dave Phillips |
Date | 2010-04-05 20:59 |
From | Dave Phillips |
Subject | Re: [Cs-dev] question re: build error |
Michael Gogins wrote: > It's a good idea to delete all *wrap* files generated by SWIG before > rebuilding, but you probably already knew that. > > Hi Michael, "Knew" is the word. I'd forgotten that I might need to delete them. I did a complete clean, rebuilt, everything came to a satisfactory conclusion. Thanks for the reminder. Best, dp ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |