[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] [commit] Add 'Extensions' directories to compiler path



I just tried to update and build from CVS and am getting this error from PyrLexer. Do I need to reverse the patch I applied (for the directory change) before I try to build again?

This is with anon checkout.

Thanks,

Josh

CompileCplusplus /Applications/SuperCollider3/build/xSC3lang.build/SuperCollider.build/Objects-normal/ppc/PyrLexer.o /usr/bin/g++-3.3 -c -F/Applications/SuperCollider3/build -F/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks -I/Applications/SuperCollider3/build/include -Isource/lang/LangSource -arch ppc -fno-common -fpascal-strings -O3 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -pipe "-fmessage-length=0" -mdynamic-no-pic -g -Wp,-header-mapfile,/Applications/SuperCollider3/build/xSC3lang.build/SuperCollider.build/SuperCollider.hmap "-DSC_DARWIN" "-Wstrict-aliasing" source/lang/LangSource/PyrLexer.cpp -o /Applications/SuperCollider3/build/xSC3lang.build/SuperCollider.build/Objects-normal/ppc/PyrLexer.o source/lang/LangSource/PyrLexer.cpp:2067: error: parse error before `<<' token source/lang/LangSource/PyrLexer.cpp:2118: error: parse error before `==' token source/lang/LangSource/PyrLexer.cpp: In function `void sc_GetUserHomeDirectory(char*, int)': source/lang/LangSource/PyrLexer.cpp:2127: error: redefinition of `void sc_GetUserHomeDirectory(char*, int)' source/lang/LangSource/PyrLexer.cpp:2076: error: `void sc_GetUserHomeDirectory(char*, int)' previously defined here source/lang/LangSource/PyrLexer.cpp:2127: error: redefinition of `void sc_GetUserHomeDirectory(char*, int)' source/lang/LangSource/PyrLexer.cpp:2076: error: `void sc_GetUserHomeDirectory(char*, int)' previously defined here source/lang/LangSource/PyrLexer.cpp: In function `void sc_GetUserExtensionDirectory(char*, int)': source/lang/LangSource/PyrLexer.cpp:2156: error: call of overloaded `sc_GetUserHomeDirectory(char[1024], int)' is ambiguous source/lang/LangSource/PyrLexer.cpp:2076: error: candidates are: void sc_GetUserHomeDirectory(char*, int) source/lang/LangSource/PyrLexer.cpp:2127: error: void sc_GetUserHomeDirectory(char*, int) source/lang/LangSource/PyrLexer.cpp: In function `void sc_AppendToPath(char*, const char*)': source/lang/LangSource/PyrLexer.cpp:2172: error: redefinition of `void sc_AppendToPath(char*, const char*)' source/lang/LangSource/PyrLexer.cpp:2089: error: `void sc_AppendToPath(char*, const char*)' previously defined here source/lang/LangSource/PyrLexer.cpp:2172: error: redefinition of `void sc_AppendToPath(char*, const char*)' source/lang/LangSource/PyrLexer.cpp:2089: error: `void sc_AppendToPath(char*, const char*)' previously defined here source/lang/LangSource/PyrLexer.cpp: In function `void sc_InitCompileDirectories()': source/lang/LangSource/PyrLexer.cpp:2185: error: redefinition of `void sc_InitCompileDirectories()' source/lang/LangSource/PyrLexer.cpp:2102: error: `void sc_InitCompileDirectories()' previously defined here source/lang/LangSource/PyrLexer.cpp:2185: error: redefinition of `void sc_InitCompileDirectories()' source/lang/LangSource/PyrLexer.cpp:2102: error: `void sc_InitCompileDirectories()' previously defined here source/lang/LangSource/PyrLexer.cpp:2187: error: call of overloaded `sc_AppendToPath(char[1024], const char[15])' is ambiguous source/lang/LangSource/PyrLexer.cpp:2089: error: candidates are: void sc_AppendToPath(char*, const char*) source/lang/LangSource/PyrLexer.cpp:2172: error: void sc_AppendToPath(char*, const char*)
source/lang/LangSource/PyrLexer.cpp: At global scope:
source/lang/LangSource/PyrLexer.cpp:2193: error: parse error before `>>' token source/lang/LangSource/PyrLexer.cpp:2197: warning: ISO C++ forbids declaration of `initPassOne' with no type source/lang/LangSource/PyrLexer.cpp:2197: error: new declaration `int initPassOne()' source/lang/LangSource/PyrLexer.cpp:1886: error: ambiguates old declaration `void initPassOne()'
source/lang/LangSource/PyrLexer.cpp:2202: error: parse error before `if'
source/lang/LangSource/PyrLexer.cpp:2205: warning: ISO C++ forbids declaration of `success' with no type
source/lang/LangSource/PyrLexer.cpp:2206: error: parse error before `if'
source/lang/LangSource/PyrLexer.cpp:2224: warning: ISO C++ forbids declaration of `finiPassOne' with no type source/lang/LangSource/PyrLexer.cpp:2224: error: new declaration `int finiPassOne()' source/lang/LangSource/PyrLexer.cpp:1921: error: ambiguates old declaration `void finiPassOne()'
source/lang/LangSource/PyrLexer.cpp:2225: error: parse error before `return'
...failed CompileCplusplus /Applications/SuperCollider3/build/xSC3lang.build/SuperCollider.build/Objects-normal/ppc/PyrLexer.o ...
** BUILD FAILED **

******************************************
Joshua D. Parmenter
Graduate Student, Music Composition
http://students.washington.edu/joshp

"...Some people think a composer's supposed to please them, but in a way a composer is a chronicler... He's supposed to report on what he's seen and lived." -Charles Mingus


Rohan Drape wrote:
This commit:

1) Adds platform specific directories to the compiler search path.  It
   is not an error if a directory does not exist.  The directories are:

   OSX :: "/Library/Application Support/SuperCollider/Extensions" and
   "~/Library/Application Support/SuperCollider/Extensions"

   Linux :: "/usr/local/share/SuperCollider/Extensions" and
   "~/share/SuperCollider/Extensions".

2) Makes the compiler skip directories that case insensitively match
  "help" and "test".  This allows extension directories to include
  ordinary SuperCollider files (.sc files), to be used for test and
  help purposes, without requiring the user to specifically exclude or
  include particular files or directories.

Regards,
Rohan

_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev