Compile OpenVswitch in Odroid XU4 has error - makefile

I am doing OpenVswitch compile in Odroid XU4 with the kernel module.
I did execute the 'boot.sh' file and configure it with the Linux kernel module.
But When I make OpenVswitch, there is an error when building the datapath kernel module.
Here is the full log.
odroid#odroid:~/Downloads/openvswitch-2.15.4$ make
make all-recursive
make[1]: Entering directory '/home/odroid/Downloads/openvswitch-2.15.4'
Making all in datapath
make[2]: Entering directory '/home/odroid/Downloads/openvswitch-2.15.4/datapath'
Making all in linux
make[3]: Entering directory '/home/odroid/Downloads/openvswitch-2.15.4/datapath/linux'
make -C /lib/modules/5.4.167+/build M=/home/odroid/Downloads/openvswitch-2.15.4/datapath/linux modules
make[4]: Entering directory '/home/odroid/linux'
Building modules, stage 2.
MODPOST 6 modules
ERROR: "geneve_dev_create_fb" [/home/odroid/Downloads/openvswitch-2.15.4/datapath/linux/vport-geneve.ko] undefined!
make[5]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[4]: *** [Makefile:1650: modules] Error 2
make[4]: Leaving directory '/home/odroid/linux'
make[3]: *** [Makefile.main:71: default] Error 2
make[3]: Leaving directory '/home/odroid/Downloads/openvswitch-2.15.4/datapath/linux'
make[2]: *** [Makefile:579: all-recursive] Error 1
make[2]: Leaving directory '/home/odroid/Downloads/openvswitch-2.15.4/datapath'
make[1]: *** [Makefile:5251: all-recursive] Error 1
make[1]: Leaving directory '/home/odroid/Downloads/openvswitch-2.15.4'
make: *** [Makefile:2996: all] Error 2

Related

How to compile Syslinux 6.x on Debian 11

Trying to get syslinux 6.02 or 6.04-pre3 compiled on Debian 11 and getting the following error on both:
make[4]: Leaving directory '/home/dev/projects/syslinux/syslinux-6.02/bios/com32/elflink/ldlinux'
make[3]: *** [/home/dev/projects/syslinux/syslinux-6.02/com32/Makefile:8: elflink/ldlinux] Error 2
make[3]: Leaving directory '/home/dev/projects/syslinux/syslinux-6.02/bios/com32'
make[2]: *** [/home/dev/projects/syslinux/syslinux-6.02/Makefile:282: com32] Error 2
make[2]: Leaving directory '/home/dev/projects/syslinux/syslinux-6.02/bios'
make[1]: *** [/home/dev/projects/syslinux/syslinux-6.02/Makefile:254: bios] Error 2
make[1]: Leaving directory '/home/dev/projects/syslinux/syslinux-6.02'
make: *** [Makefile:101: all] Error 2
Also tried to compile both versions on Debian 10 with the same results. Per the readme, uuid-dev and nasm are both installed. Looks like dependency issue, but no idea what's missing. Any suggestions would be appreciated.

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!

Updating GCC, received errors during 'make'

I'm trying to update GCC on a computer running RHEL6.6-server edition in my lab. I keep receiving errors after running the 'make' command. Here's some of the code:
/usr/bin/ld: /usr/local/GCC-5.1.0/gcc-build/./gmp/.libs /libgmp.a(mp_set_fns.o): relocation R_X86_64_32 against `__gmp_default_allocate' can not be used when making a shared object; recompile with -fPIC
/usr/local/GCC-5.1.0/gcc-build/./gmp/.libs/libgmp.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[6]: *** [libjavamath.la] Error 1
make[6]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/native/jni/java-math'
make[6]: Entering directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/native/jni'
/bin/sh ../../scripts/check_jni_methods.sh
make[6]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/native/jni'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/native/jni'
make[5]: Entering directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/native'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/native'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/native'
Making all in resource
make[4]: Entering directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/resource'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/resource'
Making all in scripts
make[4]: Entering directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/scripts'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/scripts'
Making all in tools
make[4]: Entering directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/tools'
make all-am
make[5]: Entering directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/tools'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/tools'
make[4]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath/tools'
make[4]: Entering directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath'
true DO=all multi-do # make
make[4]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava/classpath'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build/x86_64-unknown-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/usr/local/GCC-5.1.0/gcc-build'
make: *** [all] Error 2
I saw another question on here where two of the poster's errors were the same ones I have and the answer was to install makeinfo in the texinfo package. I installed that package and the above code is what I received after running the 'make' command again.
I'm not sure what error libjavamath.la is, but I'm assuming it's a file that I need in order to complete 'make.' The other error is all-recursive and I have no clue what it could mean.
Follow the simple instructions at https://gcc.gnu.org/wiki/InstallingGCC and unless you actually need the Java compiler you should configure with --enable-languages=c,c++,fortran (or whatever set of languages you do want, without Java).
libjavamath.la is a library built as part of the GCJ Java compiler, but if you don't care about using GCJ then you can (and IMHO should) configure GCC without it. That will solve any problems that happen when building libjavamath.la, because it won't be built.
I configured as:
./configure --disable-shared --enable-languages=all --enable-threads=posix --enable-libgomp --enable-lto --enable-tls --with-fpmath=sse --disable-multilib --build=x86_64-redhat-linux --with-system-zlib --enable-gnu-unique-object --with-mpc=/usr/local/ --with-java-home=/usr/java/jdk1.7.0_79/ --enable-java-awt=gtk --enable-__cxa_atexit
You should try it.

Buiding GCC, Make failure

I am building gcc-5 and getting the following make problem
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/cdi/Local
/gcc-release/objdir/x86_64-unknown-linux-gnu
/32/libjava/classpath'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/cdi/Local/gcc-release
/objdir/x86_64-unknown-linux-gnu/32/libjava'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/home/cdi/Local/gcc-release
/objdir/x86_64-unknown-linux-gnu/libjava'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory `/home/cdi/Local/gcc-release
/objdir/x86_64-unknown-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/home/cdi/Local/gcc-release
/objdir'
make: *** [all] Error 2
I investigated if there is a more descriptive make error at an earlier stage, however, I did not find anything.

fatal error: ruby/config.h: No such file or directory

I am trying to install korundum on fedora 17. And during the $ make phase I got the following error:
In file included from /usr/include/ruby.h:32:0,
from Qt.cpp:49:
/usr/include/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory
compilation terminated.
make[5]: *** [Qt.lo] Error 1
make[5]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby/rubylib/qtruby'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby/rubylib/qtruby'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby/rubylib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/n/Downloads/korundum-3.5.5'
make: *** [all] Error 2
How can solve this problem? I'm loosing my mind.
The error message suggests that you need the ruby dev files installed, but do not have them.

Resources