mtwomey / anic

Automatically exported from code.google.com/p/anic
1 stars 0 forks source link

build is messy on Snow Leopard #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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