Coder Social home page Coder Social logo

make Error about orbuculum HOT 10 CLOSED

orbcode avatar orbcode commented on July 29, 2024
make Error

from orbuculum.

Comments (10)

mubes avatar mubes commented on July 29, 2024

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.

karlp avatar karlp commented on July 29, 2024

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.

karlp avatar karlp commented on July 29, 2024

(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.

mubes avatar mubes commented on July 29, 2024

Agreed. Thanks for the fix.

from orbuculum.

odunboye avatar odunboye commented on July 29, 2024

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.

mubes avatar mubes commented on July 29, 2024

from orbuculum.

odunboye avatar odunboye commented on July 29, 2024

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.

mubes avatar mubes commented on July 29, 2024

from orbuculum.

pvonmoradi avatar pvonmoradi commented on July 29, 2024

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.

karlp avatar karlp commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.