Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error on OS X #1

Open
xwv opened this issue Aug 6, 2016 · 2 comments
Open

compilation error on OS X #1

xwv opened this issue Aug 6, 2016 · 2 comments

Comments

@xwv
Copy link

xwv commented Aug 6, 2016

MacBook:out david$ /Applications/CMake.app/Contents/bin/cmake ..
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is AppleClang 7.3.0.7030029
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found BISON: /usr/bin/bison (found version "2.3")
-- Found FLEX: /usr/bin/flex (found version "2.5.35")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/solar/Devel/MrMangler/out
MacBook:out david$ make
[ 11%] Running Bison
[ 22%] Running Flex
Scanning dependencies of target libMrMangler
[ 33%] Building CXX object source/CMakeFiles/libMrMangler.dir/itanium.cpp.o
[ 44%] Building CXX object source/CMakeFiles/libMrMangler.dir/windows.cpp.o
[ 55%] Building CXX object source/CMakeFiles/libMrMangler.dir/MrLexer.cpp.o
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:710:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register yy_state_type yy_current_state;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:711:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register char _yy_cp, *yy_bp;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:711:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register char *yy_cp, *yy_bp;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:712:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register int yy_act;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:760:4: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(_yy_cp)];
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1112:6: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register char _dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1113:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register char *source = (yytext_ptr);
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1114:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register int number_to_move, i;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1114:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register int number_to_move, i;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1246:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register yy_state_type yy_current_state;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1247:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register char *yy_cp;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1253:3: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register YY_CHAR yy_c = (_yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1278:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register int yy_is_jam;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1279:6: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register char *yy_cp = (yy_c_buf_p);
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1281:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register YY_CHAR yy_c = 1;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1301:2: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register char *yy_cp;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1311:3: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register yy_size_t number_to_move = (yy_n_chars) + 2;
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1312:3: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
^~~~~~~~~
/Users/solar/Devel/MrMangler/out/source/MrLexer.cpp:1314:3: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register char *source =
^~~~~~~~~
19 warnings generated.
[ 66%] Building CXX object source/CMakeFiles/libMrMangler.dir/MrParser.cpp.o
In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:9:4: error: expected identifier
VOID,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:93:14: note: expanded from macro 'VOID'

define VOID 258

         ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:10:4: error: expected identifier
WCHAR,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:94:15: note: expanded from macro 'WCHAR'

define WCHAR 259

          ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:11:4: error: expected identifier
BOOL,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:95:14: note: expanded from macro 'BOOL'

define BOOL 260

         ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:12:4: error: expected identifier
CHAR,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:96:14: note: expanded from macro 'CHAR'

define CHAR 261

         ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:13:4: error: expected identifier
SHORT,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:97:15: note: expanded from macro 'SHORT'

define SHORT 262

          ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:14:4: error: expected identifier
INT,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:98:13: note: expanded from macro 'INT'

define INT 263

        ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:15:4: error: expected identifier
LONG,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:99:14: note: expanded from macro 'LONG'

define LONG 264

         ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:16:4: error: expected identifier
LONGLONG,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:100:18: note: expanded from macro 'LONGLONG'

define LONGLONG 265

             ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:17:4: error: expected identifier
INT128,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:101:16: note: expanded from macro 'INT128'

define INT128 266

           ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:18:4: error: expected identifier
FLOAT,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:102:15: note: expanded from macro 'FLOAT'

define FLOAT 267

          ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:19:4: error: expected identifier
DOUBLE,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:103:16: note: expanded from macro 'DOUBLE'

define DOUBLE 268

           ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:22:4: error: expected identifier
ELLIPSIS,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:113:18: note: expanded from macro 'ELLIPSIS'

define ELLIPSIS 278

             ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:27:4: error: expected identifier
CHAR32,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:104:16: note: expanded from macro 'CHAR32'

define CHAR32 269

           ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:28:4: error: expected identifier
CHAR16,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:105:16: note: expanded from macro 'CHAR16'

define CHAR16 270

           ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:29:4: error: expected identifier
AUTO,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:106:14: note: expanded from macro 'AUTO'

define AUTO 271

         ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:30:4: error: expected identifier
NULLPTR
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:107:17: note: expanded from macro 'NULLPTR'

define NULLPTR 272

            ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:35:5: error: expected identifier
CONST = 0x1 << 0,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:108:15: note: expanded from macro 'CONST'

define CONST 273

          ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:36:5: error: expected identifier
VOLATILE = 0x1 << 1,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:109:18: note: expanded from macro 'VOLATILE'

define VOLATILE 274

             ^

In file included from /Users/solar/Devel/MrMangler/source/MrParser.y:3:
/Users/solar/Devel/MrMangler/include/FuncDecl.h:41:5: error: expected identifier
UNSIGNED = 0x1 << 1,
^
/Users/solar/Devel/MrMangler/out/source/MrParser.cpp:110:18: note: expanded from macro 'UNSIGNED'

define UNSIGNED 275

             ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [source/CMakeFiles/libMrMangler.dir/MrParser.cpp.o] Error 1
make[1]: *** [source/CMakeFiles/libMrMangler.dir/all] Error 2
make: *** [all] Error 2

@xwv
Copy link
Author

xwv commented Aug 6, 2016

BTW: Does the mangler support only built-in types?

@EwanC
Copy link
Owner

EwanC commented Aug 7, 2016

Hiya, thanks your interest.
The project is still very early on in development so OSX isn't supported yet. Though I don't see why it couldn't be.

Yes, only built-in types for now.

I'll update the README so the state of the code is clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants