meiyunyang / chipmunk-physics

Automatically exported from code.google.com/p/chipmunk-physics
MIT License
0 stars 0 forks source link

Build stops with cpArray.c #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.(inside folder Chipmunk-5.2.0) cmake .
2.make
3.

What is the expected output? What do you see instead?
teri@atenea:~/Desktop/Chipmunk-5.2.0$ make
[  1%] Building C object src/CMakeFiles/chipmunk.dir/._cpArray.c.o
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:1: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\5’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\26’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\7’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:5: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\2’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:7: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OS’
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:17: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\2’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:27: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:35: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\267’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:39: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\2’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:43: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\351’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:47: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\1’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:93: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\351’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:97: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\230’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:101: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:105: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\1’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:121: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\230’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:125: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:129: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: stray ‘\25’ in
program
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:152: warning: null
character(s) ignored
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:160: error: invalid
suffix "be842bb" on integer constant
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: expected
identifier or ‘(’ before numeric constant
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:180: error: invalid
suffix "DFC25" on integer constant
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1: error: expected
identifier or ‘(’ before numeric constant
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:189: error: invalid
suffix "CF9" on integer constant
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:194: error: invalid
suffix "BC1" on integer constant
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:204: error: invalid
suffix "D03E69B4FCB" on integer constant
/home/teri/Desktop/Chipmunk-5.2.0/src/._cpArray.c:1:233: warning: null
character(s) ignored
make[2]: *** [src/CMakeFiles/chipmunk.dir/._cpArray.c.o] Error 1
make[1]: *** [src/CMakeFiles/chipmunk.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?
Chipmunk-5.2.0. GNU/Linux Debian 2.6.26

Please provide any additional information below.

cmake 2.6, gcc 4.3.2

Original issue reported on code.google.com by teritri...@gmail.com on 28 May 2010 at 7:05

GoogleCodeExporter commented 8 years ago
The source archive seems to include many files with names of the form ._foo.c. 
These seem to be not C source code, but some Apple-specific binary files. I 
believe these should actually not be included in the source code archive.

To work around the situation, you can try to remove these files from the source 
directories. After this, remove CMakeCache.txt and re-run cmake, then try to 
compile as usual. At least this works for me.

Original comment by mue...@gmail.com on 26 Jun 2010 at 11:11

GoogleCodeExporter commented 8 years ago
Problem fixed. Thanks.

Original comment by teritri...@gmail.com on 27 Jun 2010 at 12:01

GoogleCodeExporter commented 8 years ago
Nice to hear that you got it working.

However, I would like to see this problem fixed out of the box in future 
Chipmunk releases. At the very least, the build system should be able to build 
the code on non-Apple platforms. In my opinion, the release tarball should 
contain no AppleDouble files at all.

There are also some .svn directories included in the Chipmunk 5.2.0 source 
archive. They should probably also be cleaned out from future releases.

I have attached a list of files which I believe should not be included in 
future source release tarballs.

Original comment by mue...@gmail.com on 27 Jun 2010 at 2:26

Attachments:

GoogleCodeExporter commented 8 years ago
I uploaded the fixed tarball a couple weeks ago. Forgot to close the issue.

Original comment by slemb...@gmail.com on 30 Jul 2010 at 1:22

GoogleCodeExporter commented 8 years ago
Thank you for fixing the tarball.

However, it would be a good practice to not upload differing tarballs with the 
same version number. A 5.2.1 version with a note of what was fixed would have 
made the change a lot more visible.

But thanks really, now I do not need to manually remove those files when I 
build Chipmunk.

Original comment by mue...@gmail.com on 30 Jul 2010 at 6:03