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

build is messy on Snow Leopard #2

Closed
GoogleCodeExporter opened this issue Jun 17, 2015 · 4 comments
Closed

build is messy on Snow Leopard #2

GoogleCodeExporter opened this issue Jun 17, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Quoting Michael Kohl:

I tried to build anic on Mac OS X Snow Leopard because I wanted to
bundle it up for Homebrew (http://github.com/mxcl/homebrew), but I get
the following build error:

Building version controller...
bld/version.c: In function ‘main’:
bld/version.c:13: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long unsigned int’
bld/version.c:24: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long unsigned int’
Building lexer structure generator...
bld/lexerStructGen.cpp: In function ‘int main()’:
bld/lexerStructGen.cpp:93: warning: format ‘%d’ expects type ‘int’,
but argument 3 has type ‘size_t’
bld/lexerStructGen.cpp:98: warning: format ‘%d’ expects type ‘int’,
but argument 3 has type ‘size_t’
Generating lexer structures...
Compiling lexer structure object...
Building parser structure generator...
Building parser table generator...
y.c: In function ‘print_size’:
y.c:2614: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long unsigned int’
y.c:2615: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long unsigned int’
y.c:2616: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long unsigned int’
y.c:2617: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long unsigned int’
y.c:2618: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long unsigned int’
y.c:2619: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long unsigned int’
y.c:2620: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long unsigned int’
y.c:2621: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long unsigned int’
Constructing parser table...
Generating parser structures...
Compiling parser structure object...
Building main executable...
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
make: *** ["./anic.exe"] Error 1

Original issue reported on code.google.com by ultimus@gmail.com on 11 Jan 2010 at 9:00

@GoogleCodeExporter
Copy link
Author

Actually, could someone build the latest source and tell me if this has been 
fixed? I 
don't have access to OSX personally.

Original comment by ultimus@gmail.com on 12 Jan 2010 at 6:01

@GoogleCodeExporter
Copy link
Author

Looks good here on 10.6.1

anic ANI Compiler Makefile

Building version controller...
bld/version.c: In function ‘main’:
bld/version.c:21: warning: format ‘%d’ expects type ‘int’, but argument 
4 has type ‘long unsigned int’
bld/version.c:33: warning: format ‘%d’ expects type ‘int’, but argument 
4 has type ‘long unsigned int’
Building lexer structure generator...
bld/lexerStructGen.cpp: In function ‘int main()’:
bld/lexerStructGen.cpp:93: warning: format ‘%d’ expects type ‘int’, but 
argument 3 has type ‘size_t’
bld/lexerStructGen.cpp:98: warning: format ‘%d’ expects type ‘int’, but 
argument 3 has type ‘size_t’
Generating lexer structures...
Compiling lexer structure object...
Building parser structure generator...
Building parser table generator...
y.c: In function ‘print_size’:
y.c:2614: warning: format ‘%d’ expects type ‘int’, but argument 2 has 
type ‘long unsigned int’
y.c:2615: warning: format ‘%d’ expects type ‘int’, but argument 2 has 
type ‘long unsigned int’
y.c:2616: warning: format ‘%d’ expects type ‘int’, but argument 2 has 
type ‘long unsigned int’
y.c:2617: warning: format ‘%d’ expects type ‘int’, but argument 2 has 
type ‘long unsigned int’
y.c:2618: warning: format ‘%d’ expects type ‘int’, but argument 2 has 
type ‘long unsigned int’
y.c:2619: warning: format ‘%d’ expects type ‘int’, but argument 2 has 
type ‘long unsigned int’
y.c:2620: warning: format ‘%d’ expects type ‘int’, but argument 2 has 
type ‘long unsigned int’
y.c:2621: warning: format ‘%d’ expects type ‘int’, but argument 2 has 
type ‘long unsigned int’
Constructing parser table...
Generating parser structures...
Compiling parser structure object...
Generating version stamp...
/bin/sh: sha256sum: command not found
Version stamp is 0.64.1.
Building main executable...
Done building main executable

Original comment by fen...@gmail.com on 13 Jan 2010 at 12:24

@GoogleCodeExporter
Copy link
Author

I think this is fixed now; any OSXers out there able to confirm?

Original comment by ultimus@gmail.com on 13 Jan 2010 at 11:29

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Its failing:


anic ANI Compiler Makefile

Building version controller...
Building lexer structure generator...
Generating lexer structures...
Compiling lexer structure object...
Building parser structure generator...
Building parser table generator...
Constructing parser table...
Generating parser structures...
Stamping version...
./bld/getChecksumProgram.sh: line 6: type: sha256sum: not found
Version stamp is 0.74.1.15332874
Building main executable...
src/types.cpp: In member function ‘TypeStatus::operator uintptr_t() const’:
src/types.cpp:1514: error: cast from ‘Type*’ to ‘unsigned int’ loses 
precision
make: *** [anic] Error 1

Original comment by masy...@gmail.com on 6 Dec 2010 at 11:38

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

No branches or pull requests

1 participant