kastnermario / yaml-cpp

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

cmake build fails on version 0.2.3 #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. mkdir build
2. cd build
3. cmake ..

What is the expected output? What do you see instead?
[  2%] Building CXX object CMakeFiles/yaml-cpp.dir/src/null.cpp.o
[  4%] Building CXX object CMakeFiles/yaml-cpp.dir/src/._regex.cpp.o
/home/boridcon/Source/src/._regex.cpp:1:1: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\5’ in program
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\26’ in program
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\7’ in program
/home/boridcon/Source/src/._regex.cpp:1:5: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\2’ in program
/home/boridcon/Source/src/._regex.cpp:1:7: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1:17: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\2’ in program
/home/boridcon/Source/src/._regex.cpp:1:27: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1:35: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1:39: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\2’ in program
/home/boridcon/Source/src/._regex.cpp:1:43: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\253’ in program
/home/boridcon/Source/src/._regex.cpp:1:47: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1:89: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1:90: error: invalid suffix "k3" on
integer constant
/home/boridcon/Source/src/._regex.cpp:1:93: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\253’ in program
/home/boridcon/Source/src/._regex.cpp:1:97: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\234’ in program
/home/boridcon/Source/src/._regex.cpp:1:101: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\17’ in program
/home/boridcon/Source/src/._regex.cpp:1:105: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\1’ in program
/home/boridcon/Source/src/._regex.cpp:1:121: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\234’ in program
/home/boridcon/Source/src/._regex.cpp:1:125: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\17’ in program
/home/boridcon/Source/src/._regex.cpp:1:129: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: stray ‘\27’ in program
/home/boridcon/Source/src/._regex.cpp:1:154: warning: null character(s) ignored
/home/boridcon/Source/src/._regex.cpp:1: error: ‘Mac’ does not name a type
/home/boridcon/Source/src/._regex.cpp:1: error: expected unqualified-id
before numeric constant
make[2]: *** [CMakeFiles/yaml-cpp.dir/src/._regex.cpp.o] Error 1
make[1]: *** [CMakeFiles/yaml-cpp.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?
Linux wintermute 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC
2009 x86_64 GNU/Linux

Please provide any additional information below.
Looks like an easy fix. If you know the issue that would be cool.
Otherwise I will take a look at tomorrow.
btw, 2.2 builds and installs

Original issue reported on code.google.com by pandazero@gmail.com on 24 Oct 2009 at 11:37

GoogleCodeExporter commented 8 years ago
Strange. I don't understand what those error messages mean. It looks like 
regex.cpp
hasn't changed since 0.2.2 anyways. Do you have any more info about your system 
or
version of CMake?

Original comment by jbe...@gmail.com on 25 Oct 2009 at 12:30

GoogleCodeExporter commented 8 years ago
yeah sure:
cmake version 2.6-patch 4
GNU Make 3.81
Ubuntu 9.10 RC

Actually the information is not that accurate.

I forgot to mention that cmake works and completes. Just when I try to run make 
i get
those errors.

Sorry about that.

Odd about regex not changing since 0.2.2.

I'll take a closer look later. 
thx for the fast response.

Original comment by pandazero@gmail.com on 25 Oct 2009 at 12:42

GoogleCodeExporter commented 8 years ago
I'm experiencing the exact same problem with this version of yaml. My system:
OS: Eeebuntu 3.0, 32-bit, 2.6.29-1

The steps and output is the same for me too. I'm now trying to use an older 
release
and see if the problem still occurs.

Original comment by kuehne.lars@arcor.de on 25 Oct 2009 at 7:02

GoogleCodeExporter commented 8 years ago
I just successfully compiled yaml 0.2.2 so it seems to be a 0.2.3 problem only. 
Hope
it helps.

Bye

Original comment by kuehne.lars@arcor.de on 25 Oct 2009 at 7:08

GoogleCodeExporter commented 8 years ago
I updated the CMakeLists.txt files - could you try the latest version (r288, 
from the 
svn repository)?

It appears that your OS is auto-generating these files `._whatever.cpp`, and 
then CMake 
is trying to compile them. Out of curiousity, could you post the entirety of 
one of 
those files?

Original comment by jbe...@gmail.com on 25 Oct 2009 at 6:04

GoogleCodeExporter commented 8 years ago
Never mind, that's not the important fix. It turns out that there were hidden 
files
named `._whatever.cpp` generated on my machine by OS X, based on "extended
attributes" in the filesystem. These hidden files didn't appear on my machine, 
but
they did get bundled with the tarball. When I extracted the source on my machine
again, OS X automagically handled those extra files and I didn't see them, but 
on a
non OS X-machine, they just appeared as sources, and then CMake included them 
in the
build.

Anyways, I removed them all from the tarball, and posted a new version 0.2.4 
(with
only these minimal changes). Please check that out and let me know if it works.

Original comment by jbe...@gmail.com on 25 Oct 2009 at 8:33