Comments (9)
thanks for the report. i need some more information in order to help you.
- what OS/distro?
- what CMake version?
- commands (and their outputs) you've executed after
git clone
?
from bear.
Here you go (OS X 10.9):
bashprompt:~>git clone https://github.com/rizsotto/Bear.git
Cloning into 'Bear'...
remote: Counting objects: 1552, done.
remote: Compressing objects: 100% (815/815), done.
remote: Total 1552 (delta 802), reused 1454 (delta 721)
Receiving objects: 100% (1552/1552), 291.05 KiB | 307.00 KiB/s, done.
Resolving deltas: 100% (802/802), done.
Checking connectivity... done
bashprompt:~>cd Bear/
bashprompt:Bear>mkdir build
bashprompt:Bear>cd build/
bashprompt:build>cmake ../src/
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for vfork
-- Looking for vfork - found
-- Looking for execve
-- Looking for execve - found
-- Looking for execv
-- Looking for execv - found
-- Looking for execvpe
-- Looking for execvpe - not found
-- Looking for execvp
-- Looking for execvp - found
-- Looking for execvP
-- Looking for execvP - found
-- Looking for execl
-- Looking for execl - found
-- Looking for execlp
-- Looking for execlp - found
-- Looking for execle
-- Looking for execle - found
-- Looking for _NSGetEnviron
-- Looking for _NSGetEnviron - found
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Username/Bear/build
bashprompt:build>make
Scanning dependencies of target bear
[ 10%] Building C object CMakeFiles/bear.dir/stringarray.o
[ 20%] Building C object CMakeFiles/bear.dir/protocol.o
[ 30%] Building C object CMakeFiles/bear.dir/main.o
/Users/Username/Bear/src/main.c:69:24: error: use of undeclared identifier 'DEFAULT_CONFIG_FILE'
.config_file = DEFAULT_CONFIG_FILE,
^
/Users/Username/Bear/src/main.c:70:24: error: use of undeclared identifier 'DEFAULT_OUTPUT_FILE'
.output_file = DEFAULT_OUTPUT_FILE,
^
/Users/Username/Bear/src/main.c:71:24: error: use of undeclared identifier 'DEFAULT_PRELOAD_FILE'
.libear_file = DEFAULT_PRELOAD_FILE,
^
/Users/Username/Bear/src/main.c:347:13: error: use of undeclared identifier 'BEAR_VERSION'
BEAR_VERSION);
^
/Users/Username/Bear/src/main.c:368:13: error: use of undeclared identifier 'DEFAULT_CONFIG_FILE'
DEFAULT_CONFIG_FILE,
^
5 errors generated.
make[2]: *** [CMakeFiles/bear.dir/main.o] Error 1
make[1]: *** [CMakeFiles/bear.dir/all] Error 2
make: *** [all] Error 2
bashprompt:build>which cmake
/usr/local/bin/cmake
bashprompt:build>cmake --version
cmake version 2.8.12.1
bashprompt:build>uname -a
Darwin bashprompt 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
bashprompt:build>brew --version
0.9.5
from bear.
thanks!
unfortunately i don't have any access to OSX systems.
and i do build this code in a separate build directory since i started this project.
so, can't really reproduce the issue.
from bear.
I'll take a look at it.
from bear.
Ben, that would be wonderful! :)
from bear.
Your cmake command should be:
cmake ..
from bear.
I am however seeing a different problem on OS X.
from bear.
I can build with cmake ..
. Sorry for the noise.
from bear.
thanks guys! i'm closing this ticket then...
Ben, you got a good eyes, i did not catch the '../src' :)
and please report the problem what you see (there is another open ticket for OSX already. ;))
from bear.
Related Issues (20)
- Spurious error message when using Bear HOT 1
- Concurrency issues when using the same --output and parallel builds HOT 1
- Passing `--output /dev/stdout` results in an error HOT 1
- Empty file generated for out-of-tree kernel module HOT 3
- Add linking database HOT 1
- '--append' kills my build performance HOT 1
- Bear fails to build against latest fmt HOT 2
- build error: static assertion failed: Cannot format an argument
- Next-generation Intel compilers are not recognized by default HOT 3
- Bear exits without generating compile_commands.json HOT 1
- paths_to_include/exclude don't work if path ends in '/' HOT 1
- Bear can't out compile_commands.json in TI soc TDA4 c7 HOT 1
- Bear fails to build with fmt 10.1 HOT 5
- Bear produces empty compile_commands.json HOT 13
- Bear generates empty compile_commands.json when using VBCC frontend HOT 3
- Linking executable wrapper error HOT 1
- clang-check and clang-tidy broke down with compile_commands.json HOT 6
- bear -- make produces an empty compile_commands.json HOT 3
- bear not work HOT 2
- Bear intercept does not work with shell scripts HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bear.