Tuesday, June 24, 2008

 

Element build error "-.mk: No such file or directory"

Q: I'm getting build errors for Element:
/../build/compilers/-.mk: No such file or directory
../../../element.mk:48: /home/al/element_3.0.0/src/messaging/endian/../../../build/os/.mk: No such file or directory
../../../element.mk:49: /home/al/element_3.0.0/src/messaging/endian/../../../src/build/os/.mk: No such file or directory
make[1]: *** No rule to make target `/home/al/element_3.0.0/src/messaging/endian/../../../src/build/os/.mk'. Stop.
make: *** [libs] Error 1

A: You are trying to build Element from the top-level element directory. The Element build isn't designed for that - you need to build from within a reference platform, e.g.:

/home/jmir/Element/Releases/3.0.0/element_3.0.0/ref_platforms/generic_cluster

The reference platforms, as delivered, should be able to build a basic kit without any modifications to the build and using the default environment. So try that first.

Labels:


 

Element 3.0.0 compile error - gelf.h

Q: Installing the new Element 3.0.0 release, I see a build error referring to gelf.h. What gives?
make[3]: Entering directory `/home/jmir/Element/Releases/3.0.0/element_3.0.0/ref_platforms/generic_cluster/callouts'

--- Compiling elem_platform.c
--- Compiling elem_log_cfg_data.c
--- Compiling elem_web_cfg_data.c
--- Compiling elem_stage_get_digest.c
elem_stage_get_digest.c:36:18: gelf.h: No such file or directory
elem_stage_get_digest.c:37:20: libelf.h: No such file or directory
make[3]: *** [obj/native-linux-x86_64/elem_stage_get_digest.o] Error 1
make[3]: Leaving directory `/home/jmir/Element/Releases/3.0.0/element_3.0.0/ref_platforms/generic_cluster/callouts'
make[2]: *** [toolplibs] Error 2
make[2]: Leaving directory `/home/jmir/Element/Releases/3.0.0/element_3.0.0/ref_platforms/generic_cluster'
make[1]: *** [tools] Error 2
make[1]: Leaving directory `/home/jmir/Element/Releases/3.0.0/element_3.0.0/ref_platforms/generic_cluster'
make: *** [tools] Error 2

A: Your linux machine does not have the optional package elfutils-libelf-devel installed. You can install it with "yum install elfutils-libelf-devel" if your system supports yum. Verify that it's installed by checking /usr/include/gelf.h. The requirement stems from the new Software Management release for this version of Element and is new requirement for those migrating to 3.0.0. It is discussed in the Getting Started Guide for this release, but (unfortunately) not in the Migration section of the release notes.

Labels:


This page is powered by Blogger. Isn't yours?

free web hit counter
free invisible web counter