Comments (10)
Sorry, didn't see this :-(
So, the problem is that a git version stamp is generated automatically by the makefile. If you do not have git installed and running then that will cause you issues. You can put a file into ofiles/git_version_info.h containing something like the following (and remove the git_hash_to_c.sh reference in the makefile).
#define GIT_DIRTY 1
#define GIT_HASH 0x3bae84eb
#define GIT_BRANCH "master"
#define BUILD_DATE "2017-07-28 23:03:00+0100"
Frankly, the preferred option is to pull the build across as a git tree and build that, and then the problem should go away, and you stay current with the git changes too.
Regards
DAVE
from orbuculum.
nope. it's not quite that. you get that error even in a git clone.
karlp@teros:~/src/orbuculum (master)$ make
/bin/sh: ofiles/git_version_info.h: No such file or directory
Makefile:157: recipe for target 'get_version' failed
make: *** [get_version] Error 1
karlp@teros:~/src/orbuculum (master)$ git log --oneline -n 1
50e669c Changes to orbtrace to use memory elements
karlp@teros:~/src/orbuculum (master)$
from orbuculum.
(I think you just need a mkdir -p call)
diff --git a/Makefile b/Makefile
index bc56fa6..1e742c2 100644
--- a/Makefile
+++ b/Makefile
@@ -154,6 +154,7 @@ CFILES += $(App_DIR)/itmDecoder.c $(App_DIR)/tpiuDecoder.c $(App_DIR)/generics.c
all : build
get_version:
+ $(Q)mkdir -p $(OLOC)
$(Q)$(GET_GIT_HASH) > $(OLOC)/$(GIT_HASH_FILENAME)
$(OLOC)/%.o : %.c
from orbuculum.
Agreed. Thanks for the fix.
from orbuculum.
After running make
ld: library not found for -liberty
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [orbuculum] Error 1
Mac OS X high Sierra
Kindly help
from orbuculum.
from orbuculum.
Hello Dave,
Thanks for this nice software.
I removed the '-Liberty' and ran make again then got below
Completed build of orbuculum
Completed build of orbcat
Compiling Src/orbtop.c
Src/orbtop.c:327:94: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
fprintf( stdout, "%3d.%02d%% %8ld ", percentage / 100, percentage % 100, report[n].count );
~~~~ ^~~~~~~~~~~~~~~
%8llu
Src/orbtop.c:367:93: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
fprintf( stdout, "%3d.%02d%% %8ld Samples" EOL, totPercent / 100, totPercent % 100, samples );
~~~~ ^~~~~~~
%8llu
Src/orbtop.c:371:100: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
fprintf( stdout, "%3d.%02d%% %8ld of %ld Samples" EOL, totPercent / 100, totPercent % 100, dispSamples, samples );
~~~~ ^~~~~~~~~~~
%8llu
Src/orbtop.c:371:113: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
fprintf( stdout, "%3d.%02d%% %8ld of %ld Samples" EOL, totPercent / 100, totPercent % 100, dispSamples, samples );
~~~ ^~~~~~~
%llu
4 warnings generated.
Compiling Src/symbols.c
Src/symbols.c:204:26: error: no member named 'st_mtim' in 'struct stat'
( memcmp( &n.st_mtim, &( ( *s )->st.st_mtim ), sizeof( struct timespec ) ) ) ||
~ ^
Src/symbols.c:204:49: error: no member named 'st_mtim' in 'struct stat'
( memcmp( &n.st_mtim, &( ( *s )->st.st_mtim ), sizeof( struct timespec ) ) ) ||
~~~~~~~~~~ ^
Src/symbols.c:205:26: error: no member named 'st_ctim' in 'struct stat'
( memcmp( &n.st_ctim, &( ( *s )->st.st_ctim ), sizeof( struct timespec ) ) )
~ ^
Src/symbols.c:205:49: error: no member named 'st_ctim' in 'struct stat'
( memcmp( &n.st_ctim, &( ( *s )->st.st_ctim ), sizeof( struct timespec ) ) )
~~~~~~~~~~ ^
4 errors generated.
make: *** [ofiles/Src/symbols.o] Error 1
What could be the problem?
Mac OS X high Sierra
from orbuculum.
from orbuculum.
After running make
ld: library not found for -liberty clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [orbuculum] Error 1
Mac OS X high Sierra
Kindly help
In Xubuntu 18.04 I installed these to build the app:
sudo apt install binutils-dev libelf-dev libiberty-dev
(note the last one for -liberty)
from orbuculum.
please make a new issue, your issue is completely unrelated to this make directory path error from two years ago
from orbuculum.
Related Issues (20)
- Install more files on Linux HOT 1
- Extraneous arguments in meson.build file HOT 3
- Inconsistent results from orbfifo when reading from file and writing to permanent file HOT 3
- Arch linux builds need a meson prefix HOT 3
- Cannot set server and port in orbfifo HOT 2
- Do not require trailing slash in orbfifo basedir HOT 2
- Cannot abort orbfifo with Ctrl + C when not yet connected HOT 6
- First contribution HOT 1
- gdbtrace.init does not seem to work with newer version of arm-none-eabi-gdb HOT 7
- Windows CLI output has corrupted characters HOT 2
- orbtop CPU usage increases over time
- Building on Mac M1 HOT 4
- orbtop should check provided elf exists before proceeding HOT 1
- orbtop should provide immediate error about missing objdump HOT 2
- orbtop: Exception number format, 0..N vs -16..N HOT 5
- orbtop exception tick count wrong for nested instructions HOT 1
- Weird help message for the orbtrace -T option HOT 1
- Loosely formatted orbcat output specification doesn't result in output HOT 1
- Package binaries along with releases HOT 1
- Orbuculum fails to connect to J-LINK GDB Server on Windows. HOT 3
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 orbuculum.