[Cs-dev] Build failing due to T_INSTLIST
Date | 2011-09-27 16:23 |
From | Steven Yi |
Subject | [Cs-dev] Build failing due to T_INSTLIST |
Hi John, I'm getting getting failed builds here with the latest from git, using both scons and CMake. Both seem to point to that T_INSTLIST needs to be defined somewhere where it isn't being done so at the moment. To note, when I first build with scons after updating the build went alright. I then tried CMake and got the error. I then retried with scons after doing a clean and started to get the error. Any thoughts on this? Also, does it fail for you if you do a clean and rebuild? Thanks! steven With scons: gcc -o Engine/cs_par_orc_semantic_analysis.os -c -O3 -arch i386 -arch x86_64 -ftree-vectorize -ffast-math -Wno-format -g -fomit-frame-pointer -freorder-blocks -DMACOSX -DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DUSE_DOUBLE -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -DPARCS -DENABLE_NEW_PARSER -D__BUILDING_LIBCSOUND -D_CSOUND_RELEASE_ -DCS_DEFAULT_PLUGINDIR=\"/Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Opcodes64\" -I. -IH -I/usr/local/include -I/usr/local/include/luajit-2.0 -I/usr/include/malloc -I/opt/local/include/boost-1_32 -I/usr/include/python2.3 -I/usr/local/include -IEngine Engine/cs_par_orc_semantic_analysis.c Engine/cs_par_orc_semantic_analysis.c: In function ‘csp_orc_sa_instr_add_tree’: Engine/cs_par_orc_semantic_analysis.c:219: error: ‘T_INTLIST’ undeclared (first use in this function) Engine/cs_par_orc_semantic_analysis.c:219: error: (Each undeclared identifier is reported only once Engine/cs_par_orc_semantic_analysis.c:219: error: for each function it appears in.) Engine/cs_par_orc_semantic_analysis.c: In function ‘csp_orc_sa_instr_add_tree’: Engine/cs_par_orc_semantic_analysis.c:219: error: ‘T_INTLIST’ undeclared (first use in this function) Engine/cs_par_orc_semantic_analysis.c:219: error: (Each undeclared identifier is reported only once Engine/cs_par_orc_semantic_analysis.c:219: error: for each function it appears in.) lipo: can't figure out the architecture type of: /var/tmp//cc9MFG3L.out scons: *** [Engine/cs_par_orc_semantic_analysis.os] Error 1 scons: building terminated because of errors. and with CMake I'm getting: /usr/bin/gcc -Dcsound64_EXPORTS -DUSE_DOUBLE -DMACOSX -DPIPES -fPIC -I/usr/local/include -I/Users/stevenyi/work/csound/csound5/./H -I/Users/stevenyi/work/csound/csound5/./Engine -I/Users/stevenyi/work/csound/csound5/. -I/Users/stevenyi/work/csound/cs5make -Wno-format -D__BUILDING_LIBCSOUND -DENABLE_NEW_PARSER -DHAVE_DIRENT_H -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -o CMakeFiles/csound64.dir/csound_orcparse.c.o -c /Users/stevenyi/work/csound/cs5make/csound_orcparse.c /Users/stevenyi/work/csound/csound5/Engine/csound_orc.y: In function ‘csound_orcparse’: /Users/stevenyi/work/csound/csound5/Engine/csound_orc.y:214: error: ‘T_INSTLIST’ undeclared (first use in this function) /Users/stevenyi/work/csound/csound5/Engine/csound_orc.y:214: error: (Each undeclared identifier is reported only once /Users/stevenyi/work/csound/csound5/Engine/csound_orc.y:214: error: for each function it appears in.) /Users/stevenyi/work/csound/cs5make/csound_orcparse.c:3336: warning: passing argument 5 of ‘csound_orcerror’ discards qualifiers from pointer target type make[2]: *** [CMakeFiles/csound64.dir/csound_orcparse.c.o] Error 1 make[1]: *** [CMakeFiles/csound64.dir/all] Error 2 make: *** [all] Error 2 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-09-27 16:30 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Build failing due to T_INSTLIST |
Builds perfectly here and at home. Have you got the latesty Engine/csound_orc.y as it is defined there line 126 > Hi John, > > I'm getting getting failed builds here with the latest from git, using > both scons and CMake. Both seem to point to that T_INSTLIST needs to > be defined somewhere where it isn't being done so at the moment. To > note, when I first build with scons after updating the build went > alright. I then tried CMake and got the error. I then retried with > scons after doing a clean and started to get the error. > > Any thoughts on this? Also, does it fail for you if you do a clean and > rebuild? > > Thanks! > steven > > > > With scons: > > gcc -o Engine/cs_par_orc_semantic_analysis.os -c -O3 -arch i386 -arch > x86_64 -ftree-vectorize -ffast-math -Wno-format -g > -fomit-frame-pointer -freorder-blocks -DMACOSX -DPIPES -fPIC > -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DUSE_DOUBLE > -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H -DHAVE_UNISTD_H > -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H > -DHAVE_SOCKETS -DHAVE_DIRENT_H -DPARCS -DENABLE_NEW_PARSER > -D__BUILDING_LIBCSOUND -D_CSOUND_RELEASE_ > -DCS_DEFAULT_PLUGINDIR=\"/Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Opcodes64\" > -I. -IH -I/usr/local/include -I/usr/local/include/luajit-2.0 > -I/usr/include/malloc -I/opt/local/include/boost-1_32 > -I/usr/include/python2.3 -I/usr/local/include -IEngine > Engine/cs_par_orc_semantic_analysis.c > Engine/cs_par_orc_semantic_analysis.c: In function > csp_orc_sa_instr_add_tree: > Engine/cs_par_orc_semantic_analysis.c:219: error: T_INTLIST > undeclared (first use in this function) > Engine/cs_par_orc_semantic_analysis.c:219: error: (Each undeclared > identifier is reported only once > Engine/cs_par_orc_semantic_analysis.c:219: error: for each function it > appears in.) > Engine/cs_par_orc_semantic_analysis.c: In function > csp_orc_sa_instr_add_tree: > Engine/cs_par_orc_semantic_analysis.c:219: error: T_INTLIST > undeclared (first use in this function) > Engine/cs_par_orc_semantic_analysis.c:219: error: (Each undeclared > identifier is reported only once > Engine/cs_par_orc_semantic_analysis.c:219: error: for each function it > appears in.) > lipo: can't figure out the architecture type of: /var/tmp//cc9MFG3L.out > scons: *** [Engine/cs_par_orc_semantic_analysis.os] Error 1 > scons: building terminated because of errors. > > and with CMake I'm getting: > > /usr/bin/gcc -Dcsound64_EXPORTS -DUSE_DOUBLE -DMACOSX -DPIPES -fPIC > -I/usr/local/include -I/Users/stevenyi/work/csound/csound5/./H > -I/Users/stevenyi/work/csound/csound5/./Engine > -I/Users/stevenyi/work/csound/csound5/. > -I/Users/stevenyi/work/csound/cs5make -Wno-format > -D__BUILDING_LIBCSOUND -DENABLE_NEW_PARSER -DHAVE_DIRENT_H > -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H > -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -o > CMakeFiles/csound64.dir/csound_orcparse.c.o -c > /Users/stevenyi/work/csound/cs5make/csound_orcparse.c > /Users/stevenyi/work/csound/csound5/Engine/csound_orc.y: In function > csound_orcparse: > /Users/stevenyi/work/csound/csound5/Engine/csound_orc.y:214: error: > T_INSTLIST undeclared (first use in this function) > /Users/stevenyi/work/csound/csound5/Engine/csound_orc.y:214: error: > (Each undeclared identifier is reported only once > /Users/stevenyi/work/csound/csound5/Engine/csound_orc.y:214: error: > for each function it appears in.) > /Users/stevenyi/work/csound/cs5make/csound_orcparse.c:3336: warning: > passing argument 5 of csound_orcerror discards qualifiers from > pointer target type > make[2]: *** [CMakeFiles/csound64.dir/csound_orcparse.c.o] Error 1 > make[1]: *** [CMakeFiles/csound64.dir/all] Error 2 > make: *** [all] Error 2 > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-09-27 16:34 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Build failing due to T_INSTLIST |
> Builds perfectly here and at home. Have you got the latesty > Engine/csound_orc.y as it is defined there line 126 > PS I was going to suggest that we do a freeeze on code as we have fixed all known bugs (tm). Let me know when it is OK for you ==John ff ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-09-27 16:39 |
From | Steven Yi |
Subject | Re: [Cs-dev] Build failing due to T_INSTLIST |
I checked and I'm up to date. I'm getting the same problem with scons on both Ubuntu and OSX. The T_INSTLIST is defined alright in the csound_orc.y, but the compilation error still occurs. I'll try to figure this one out but it is certainly odd. Could you by chance double check with a fresh git clone? Thanks! steven On Tue, Sep 27, 2011 at 4:34 PM, |
Date | 2011-09-27 16:39 |
From | Steven Yi |
Subject | Re: [Cs-dev] Build failing due to T_INSTLIST |
Just to note, I'm using essentially the same build settings on both OSX and Ubuntu: scons buildInterfaces=1 buildJavaWrapper=1 useDouble=1 gcc4opt=universalX86 dynamicCsoundLibrary=1 buildRelease=1 buildBeats=1 buildMultiCore=1 buildVirtual=1 useOSC=1 useGettext=0 buildPythonWrapper=1 buildLuaWrapper=1 buildLuaOpcodes=0 On Tue, Sep 27, 2011 at 4:39 PM, Steven Yi |
Date | 2011-09-27 16:59 |
From | Steven Yi |
Subject | Re: [Cs-dev] Build failing due to T_INSTLIST |
Update: the scons error is due to some parallel code not being updated: /* New code to deal with lists of integer instruments -- JPff */ void csp_orc_sa_instr_add_tree(CSOUND *csound, TREE *x) { while (x) { if (x->type == T_INTGR) { csp_orc_sa_instr_add(csound, x->value->lexeme); return; } if (UNLIKELY(x->type != T_INTLIST)) csound->Die(csound, "Not a proper list of ints"); csp_orc_sa_instr_add(csound, x->left->value->lexeme); x = x->right; } } This is still using T_INTLIST and not T_INSTLIST. I made a change and committed; John could you verify that just changing that will be enough? That got scons compiling alright with both Ubuntu and OSX. I'm getting one warning though: Engine/csound_orcparse.c: In function ‘csound_orcparse’: Engine/csound_orcparse.c:3336: warning: passing argument 5 of ‘csound_orcerror’ discards qualifiers from pointer target type CMake has some issues on both OSX and Ubuntu that need some looking at, but that shouldn't prevent releases except for Felipe. On Tue, Sep 27, 2011 at 4:39 PM, Steven Yi |