garry-iglesias / quad-wheel

Automatically exported from code.google.com/p/quad-wheel
0 stars 0 forks source link

Compiling fails on OS X Lion #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. obtain the source
2. make CC=gcc all
3. get a error

What is the expected output? What do you see instead?
expected to see quad-wheel compiling, see error instead: 

~/src/quad-wheel make CC=gcc all
gcc -O2 -Wall -Werror -ansi -DUSE_FILESYS_EX   -c -o parser.o parser.c
gcc -O2 -Wall -Werror -ansi -DUSE_FILESYS_EX   -c -o lexer.o lexer.c
gcc -O2 -Wall -Werror -ansi -DUSE_FILESYS_EX   -c -o code.o code.c
cc1: warnings being treated as errors
code.c: In function ‘code_push_bool’:
code.c:130: warning: cast to pointer from integer of different size
code.c: In function ‘code_shf’:
code.c:172: warning: cast to pointer from integer of different size
code.c: In function ‘code_assign’:
code.c:173: warning: cast to pointer from integer of different size
code.c: In function ‘code_subscript’:
code.c:174: warning: cast to pointer from integer of different size
code.c: In function ‘code_inc’:
code.c:175: warning: cast to pointer from integer of different size
code.c: In function ‘code_dec’:
code.c:176: warning: cast to pointer from integer of different size
code.c: In function ‘code_fcall’:
code.c:178: warning: cast to pointer from integer of different size
code.c: In function ‘code_newfcall’:
code.c:179: warning: cast to pointer from integer of different size
code.c: In function ‘code_ret’:
code.c:180: warning: cast to pointer from integer of different size
code.c: In function ‘code_delete’:
code.c:181: warning: cast to pointer from integer of different size
code.c: In function ‘code_chthis’:
code.c:182: warning: cast to pointer from integer of different size
code.c: In function ‘code_pop’:
code.c:183: warning: cast to pointer from integer of different size
code.c: In function ‘code_jfalse’:
code.c:184: warning: cast to pointer from integer of different size
code.c: In function ‘code_jtrue’:
code.c:185: warning: cast to pointer from integer of different size
code.c: In function ‘code_jfalse_np’:
code.c:186: warning: cast to pointer from integer of different size
code.c: In function ‘code_jtrue_np’:
code.c:187: warning: cast to pointer from integer of different size
code.c: In function ‘code_jmp’:
code.c:188: warning: cast to pointer from integer of different size
code.c: In function ‘code_object’:
code.c:189: warning: cast to pointer from integer of different size
code.c: In function ‘code_array’:
code.c:190: warning: cast to pointer from integer of different size
code.c: In function ‘code_eval’:
code.c:194: warning: cast to pointer from integer of different size
code.c: In function ‘code_with’:
code.c:210: warning: cast to pointer from integer of different size
code.c: In function ‘code_reserved_replace’:
code.c:257: warning: cast to pointer from integer of different size
code.c:268: warning: cast to pointer from integer of different size
code.c: In function ‘code_decode’:
code.c:287: warning: cast from pointer to integer of different size
code.c:292: warning: cast from pointer to integer of different size
code.c:295: warning: cast from pointer to integer of different size
code.c:295: warning: cast from pointer to integer of different size
make: *** [code.o] Error 1

What version of the product are you using? On what operating system?
Using trunk r1

Please provide any additional information below.

~/src/quad-wheel uname -a
Darwin rootkit.fritz.box 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 
18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
~/src/quad-wheel gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
(LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

~/src/quad-wheel 

Original issue reported on code.google.com by got...@gmail.com on 25 Mar 2012 at 11:28

GoogleCodeExporter commented 9 years ago
was revision 2. Not revision 1.

Original comment by got...@gmail.com on 25 Mar 2012 at 11:29

GoogleCodeExporter commented 9 years ago
It's not a problem with OSX. this source is just broken on 64bit builds. Just 
force 32 bit with make CC="gcc -arch i386" . fix the Makefile to use $(CC) 
instead of gcc. and it will work.

Fixing it for 64bit would be the proper fix, and it should be a 20m work or so. 
i'll push a pullrequest if this project was in github :)

Original comment by panc...@nopcode.org on 26 Mar 2012 at 9:07

GoogleCodeExporter commented 9 years ago
Just fork it ;)

https://github.com/Gottox/quad-wheel

Original comment by got...@gmail.com on 26 Mar 2012 at 10:35