how to fix makefiles errors on veins project - makefile

when I build my veins project I have the following error :
make[1]: *** [../out/gcc-release/src/mySimulation] Error 1
Makefile:100: recipe for target '../out/gcc-release/src/mySimulation' failed
make[1]: Leaving directory '/home/nai/omnet/omnetpp-5.2.1/myWorkspace/mySimulation/src'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2
the code portion of the makefiles where there is an error:
makefile in the src folder:
#$(MKPATH) $O
make file in the out folder
all: checkmakefiles
cd src && $(MAKE)
I cleaned the project and I rebuild it but it didn't work can anyone help me

Related

cannot find -linet in omnet 4.6

I want to run a simulation in Omnet 4.6 which uses inet.
When compiling, following error occurs.
Creating executable: ../out/debug/src/EnergyCellFMU_TwoHouseholds.exe
D:\omnetpp-4.6\tools\win32\mingw32\bin/ld.exe: cannot find -linet
collect2.exe: error: ld returned 1 exit status
Makefile:154: recipe for target '../out/debug/src/EnergyCellFMU_TwoHouseholds.exe' failed
make[1]: *** [../out/debug/src/EnergyCellFMU_TwoHouseholds.exe] Error 1
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/d/Simulation_energy-cell-concept_omnet4.5/energy-cell-concept-simulation/OMNet/src'
make: *** [all] Error 2
Makefile:2: recipe for target 'all' failed
Does anyone know where the problem could be?
I set inet in the project references.

FLINT/C installation on Arch

I'm trying to install FLINT/C lib on Arch for learning Modern Cryptography in C. All my dependencies are fulfilled per se and the only thing left to do is run make && make install and ld is generating errors :
make[1]: Entering directory '/home/venine/Downloads/flint-2.4.5'
make[2]: Entering directory '/home/venine/Downloads/flint-2.4.5/ulong_extras'
CC ../build/ulong_extras/../ulong_extras.lo
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
make[2]: *** [../Makefile.subdirs:55:
../build/ulong_extras/../ulong_extras.lo] Error 1
make[2]: Leaving directory '/home/venine/Downloads/flint- 2.4.5/ulong_extras'
make[1]: *** [Makefile:135: libflint.so] Error 2
make[1]: Leaving directory '/home/venine/Downloads/flint-2.4.5'
make: *** [Makefile:161: library] Error 2`
Can someone tell me what's going wrong and how do I create a proper make file
This appears to be FLINT 2 Issue#400. The bug also describes a change in the makefile.

Not able to Install HAWQ DB successfully in Centos 7.x version

I am installing HAWQ DB on Linux Centos 7.X version, it is giving following issue in make install step as mentioned in link https://cwiki.apache.org/confluence/display/HAWQ/Build+and+Install#tab-yum
make[2]: *** [install] Error 1
make[2]: Leaving directory `/ApacheSoft/incubator-hawq/depends/thirdparty/googletest/build'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/ApacheSoft/incubator-hawq/depends/thirdparty/googletest'
make: *** [install] Error 2
I have taken all the steps in sequence given in link, Can any body help me here.
Assuming that it is caused because of cmake:
make -C depends/thirdparty/googletest install
make[1]: Entering directory `/home/build/hawq/depends/thirdparty/googletest'
cd ../../..//depends/thirdparty/googletest/ && mkdir -p build && cd build &&
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/hawq ..
/bin/sh: cmake: command not found
make[1]: *** [pre-config] Error 127
make[1]: Leaving directory `/home/build/hawq/depends/thirdparty/googletest'
make: *** [install] Error 2
You may try creating a symbolic link as follows:
ln -s /usr/bin/cmake3 /usr/bin/cmake

how to fix hb-ft.h no such file or directory while installing pango using jhbuild?

i have all the dependencies and since i was not able to fix this error i installed freetype and harfbuzz from scratch still couldnt fix this fatal error but this file (hb-ft.h) is present under
/usr/include/harfbuzz/hb-ft.h and
jhbuild/checkout/harfbuzz/src/hb-ft.h
In file included from pango-ot-buffer.c:24:0:
pango-ot-private.h:29:19: fatal error: hb-ft.h: No such file or directory
compilation terminated.
Makefile:1387: recipe for target 'pango-ot-buffer.lo' failed
make[4]: *** [pango-ot-buffer.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
pangofc-shape.c:30:19: fatal error: hb-ft.h: No such file or directory
compilation terminated.
Makefile:1387: recipe for target 'pangofc-shape.lo' failed
make[4]: *** [pangofc-shape.lo] Error 1
pangoft2-render.c: In function ‘pango_ft2_font_render_glyph’:
pangoft2-render.c:224:3: warning: ‘pango_ft2_font_get_face’ is deprecated: Use 'pango_fc_font_lock_face' instead [-Wdeprecated-declarations]
face = pango_ft2_font_get_face (font);
^
In file included from pangoft2-private.h:26:0,
from pangoft2-render.c:37:
../pango/pangoft2.h:125:9: note: declared here
FT_Face pango_ft2_font_get_face (PangoFont *font);
^
In file included from pango-ot-info.c:34:0:
pango-ot-private.h:29:19: fatal error: hb-ft.h: No such file or directory
compilation terminated.
Makefile:1387: recipe for target 'pango-ot-info.lo' failed
make[4]: *** [pango-ot-info.lo] Error 1
make[4]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango/pango'
Makefile:1469: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango/pango'
Makefile:1212: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango/pango'
Makefile:579: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango'
Makefile:468: recipe for target 'all' failed
make: *** [all] Error 2
*** Error during phase build of pango: ########## Error running make -j 5 *** [7/7]
I have seen this error before while building pango in jhbuild.
Solution:
Open a new terminal and try -
jhbuild buildone -afc harfbuzz
After it's successfully build, rerun phase build of the pango module.
Hope it helps!

Error "../../nsprpub: No such file or directory." when building Firefox on OS X

I followed a set of simple instructions on Mozilla website.
When I entered make -f client.mk build
I got the following error:
/usr/bin/make tier_nspr
tier_nspr: config/nspr
/usr/bin/make export_tier_nspr
export_tier_nspr
make[5]: Nothing to be done for `config/nspr/Makefile'.
/usr/bin/make -C config/nspr export
/usr/bin/make -C ../../nsprpub export SHARED_LIBRARY= IMPORT_LIBRARY= SHARED_LIB_PDB= XP_DEFINE=-DlibVersionPoint='libVersionPoint$(LIBRARY_NAME)'
make: *** ../../nsprpub: No such file or directory. Stop.
make[5]: *** [export] Error 2
make[4]: *** [export_tier_nspr] Error 2
make[3]: *** [tier_nspr] Error 2
make[2]: *** [default] Error 2
make[1]: *** [realbuild] Error 2
make: *** [build] Error 2
It is the first time I tried to build Firefox. Any clue?
I encountered the same error while attempting to build the Android version of Firefox. Making a clean clone of the source tree and re-building solved the problem for me.

Resources