when i make && make install the glibc-2.27 failed with Error 1 and Error2 - odoo

/opt/odoo/glibc-2.27/elf/../sysdeps/posix/dl-fileid.h:37: undefined reference to `__GI___fxstat64'
/usr/bin/ld: /opt/odoo/glibc-2.27/build/elf/librtld.os: relocation R_X86_64_PC32 against undefined symbol `__GI___fxstat64' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:478: recipe for target '/opt/odoo/glibc-2.27/build/elf/ld.so' failed
make[2]: *** [/opt/odoo/glibc-2.27/build/elf/ld.so] Error 1
make[2]: Leaving directory '/opt/odoo/glibc-2.27/elf'
Makefile:215: recipe for target 'elf/subdir_lib' failed
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory '/opt/odoo/glibc-2.27'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
how i can solut the problem, the unix is Debain. The proble i can't make the glic-2.27

Related

DPDK-19.11 linking stating for pdump application results in error

DPDK version: 19-11
Environment: VM
OS: 4.14.81.bm.15-amd64
Gcc: 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) Application error: PDUMP
note: build for same in host machine works fine.
CMD: make install
Logs:
== Build app/pdump
CC main.o
LD dpdk-pdump
collect2: error: ld returned 1 exit status
/root/dpdk-19.11/mk/rte.app.mk:433: recipe for target 'dpdk-pdump' failed
make[5]: *** [dpdk-pdump] Error 1
/root/dpdk-19.11/mk/rte.subdir.mk:35: recipe for target 'pdump' failed
make[4]: *** [pdump] Error 2
/root/dpdk-19.11/mk/rte.sdkbuild.mk:46: recipe for target 'app' failed
make[3]: *** [app] Error 2
/root/dpdk-19.11/mk/rte.sdkroot.mk:98: recipe for target 'all' failed
make[2]: *** [all] Error 2
/root/dpdk-19.11/mk/rte.sdkinstall.mk:60: recipe for target 'pre_install' failed
make[1]: *** [pre_install] Error 2
/root/dpdk-19.11/mk/rte.sdkroot.mk:77: recipe for target 'install' failed
make: *** [install] Error 2
as per the current update from Meinhard, the issue was the VM was having less memory to finish the linking. Increasing the memory the build is successful.

unable to build valgrind for armv7 in yocto

Unable to build valgrind in yocto
I have highleted the problem i am facing
arm-poky-linux-gnueabi-gcc: error: unrecognized argument in option '-march=armv7ve'
arm-poky-linux-gnueabi-gcc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv8-a armv8-a+crc iwmmxt iwmmxt2 native
make[5]: *** [intdiv-intdiv.o] Error 1
make[5]: Leaving directory `/home/sarjoodeen/Project/2018/Nippon/YOCTO/iwG22M-release-bsp/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/valgrind/3.15.0-r0/build/none/tests/arm'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/home/sarjoodeen/Project/2018/Nippon/YOCTO/iwG22M-release-bsp/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/valgrind/3.15.0-r0/build/none/tests/arm'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/home/sarjoodeen/Project/2018/Nippon/YOCTO/iwG22M-release-bsp/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/valgrind/3.15.0-r0/build/none/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/sarjoodeen/Project/2018/Nippon/YOCTO/iwG22M-release-bsp/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/valgrind/3.15.0-r0/build/none'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/sarjoodeen/Project/2018/Nippon/YOCTO/iwG22M-release-bsp/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/valgrind/3.15.0-r0/build'
make: *** [check] Error 2
make: Leaving directory `/home/sarjoodeen/Project/2018/Nippon/YOCTO/iwG22M-release-bsp/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/valgrind/3.15.0-r0/build'
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile_ptest_base (log file is located at /home/sarjoodeen/Project/2018/Nippon/YOCTO/iwG22M-release-bsp/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/valgrind/3.15.0-r0/temp/log.do_compile_ptest_base.29480)
The error means that the cross gcc doesn't contain the support for armv7ve architecture. The support for armv7ve has been added in gcc-4.9 as evident from the gcc Changelog https://gcc.gnu.org/gcc-4.9/changes.html. Please check your gcc recipe in yocto sources and make sure the gcc version is 4.9 or greater.

CMake not finding files - Can't build detectron with pytorch

make ops for detectron isn't working
export Caffe2_DIR=<path to my pytorch>/torch
make ops
Error Message
[ 40%] Building CXX object CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/zero_even_op.cc.o
In file included from /home/ubtuntu/detectron/detectron/ops/zero_even_op.cc:17:0:
/home/ubtuntu/detectron/detectron/ops/zero_even_op.h:20:33: fatal error: caffe2/core/context.h: No such file or directory
compilation terminated.
CMakeFiles/caffe2_detectron_custom_ops.dir/build.make:62: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/zero_even_op.cc.o' failed
make[3]: *** [CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/zero_even_op.cc.o] Error 1
make[3]: Leaving directory '/home/ubtuntu/detectron/build'
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops.dir/all' failed
make[2]: *** [CMakeFiles/caffe2_detectron_custom_ops.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
/home/ubtuntu/detectron/detectron/ops/zero_even_op.cu:17:37: fatal error: caffe2/core/context_gpu.h: No such file or directory
compilation terminated.
CMake Error at caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o.cmake:219 (message):
Error generating
/home/ubtuntu/detectron/build/CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/./caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o
CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/build.make:63: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o' failed
make[3]: *** [CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o] Error 1
make[3]: Leaving directory '/home/ubtuntu/detectron/build'
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/all' failed
make[2]: *** [CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/all] Error 2
make[2]: Leaving directory '/home/ubtuntu/detectron/build'
Makefile:129: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ubtuntu/detectron/build'
Makefile:13: recipe for target 'ops' failed
make: *** [ops] Error 2
What I've Tried
In the error message, it says it can't find caffe2/core/context.h however the file exists in pytorch/caffe2/core/context.h. So I've tried exporting the caffe2 folder instead of the torch folder, but then the build fails earlier
- I've also tried setting it to pytorch/cmake and pytorch/build folders
I then tried creating a caffe2 link to pytorch/caffe2 inside of pytorch/torch, however that had no effect. I'm out of ideas :(

Error compiling honeyd in Debian

I am trying to install honeyd. the configuration was successfull but the $ make gives me these errors.
I have added /etc/ld.config.so to the /usr/local/lib, I have tried everything but the error still exists.
collect2: error: ld returned 1 exit status
Makefile:855: recipe for target 'honeyd' failed
make[2]: *** [honeyd] Error 1
make[2]: Leaving directory '/home/marion/Desktop/Tools/Honeyd-honeyd-1.6.7'
Makefile:1244: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/marion/Desktop/Tools/Honeyd-honeyd-1.6.7'
Makefile:700: recipe for target 'all' failed
make: *** [all] Error 2

Library `Coroutines' not found in list of llvm libraries

I'm trying to setup LLVM release version 3.5 on my ubuntu 16.04 LTS 64-bit machine, and have been facing errors related to CMake.
How to solve: Library `Coroutines' not found in list of llvm libraries ?
I followed instructions given here, to the T.
I got the following error log on executing cmake -G "Unix Makefiles" ../llvm
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:27: fatal error: malloc/malloc.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_23510.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_23510.dir/CheckIncludeFile.c.o' failed
make1: *** [CMakeFiles/cmTC_23510.dir/CheckIncludeFile.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:18: fatal error: ndir.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_a8c89.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_a8c89.dir/CheckIncludeFile.c.o' failed
make1: *** [CMakeFiles/cmTC_a8c89.dir/CheckIncludeFile.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:22: fatal error: sys/ndir.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_9297d.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_9297d.dir/CheckIncludeFile.c.o' failed
make1: *** [CMakeFiles/cmTC_9297d.dir/CheckIncludeFile.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:31: fatal error: valgrind/valgrind.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_14b5f.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_14b5f.dir/CheckIncludeFile.c.o' failed
make1: *** [CMakeFiles/cmTC_14b5f.dir/CheckIncludeFile.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:18: fatal error: zlib.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_a4254.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_a4254.dir/CheckIncludeFile.c.o' failed
make1: *** [CMakeFiles/cmTC_a4254.dir/CheckIncludeFile.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:23: fatal error: mach/mach.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_43c90.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_43c90.dir/CheckIncludeFile.c.o' failed
make1: *** [CMakeFiles/cmTC_43c90.dir/CheckIncludeFile.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: mach-o/dyld.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_92df8.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_92df8.dir/CheckIncludeFile.c.o' failed
make1: *** [CMakeFiles/cmTC_92df8.dir/CheckIncludeFile.c.o] Error 1
...
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=compress2 CMakeFiles/cmTC_45dee.dir/CheckFunctionExists.c.o -o cmTC_45dee -rdynamic -lz -lm
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_45dee.dir/build.make:97: recipe for target 'cmTC_45dee' failed
make1: *** [cmTC_45dee] Error 1
...
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=el_init CMakeFiles/cmTC_678de.dir/CheckFunctionExists.c.o -o cmTC_678de -rdynamic -ledit -lm
/usr/bin/ld: cannot find -ledit
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_678de.dir/build.make:97: recipe for target 'cmTC_678de' failed
make1: *** [cmTC_678de] Error 1
...
/usr/bin/ld: cannot find -ltinfo
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_b7cfe.dir/build.make:97: recipe for target 'cmTC_b7cfe' failed
make1: *** [cmTC_b7cfe] Error 1
...
/usr/bin/ld: cannot find -lterminfo
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_58a1c.dir/build.make:97: recipe for target 'cmTC_58a1c' failed
make1: *** [cmTC_58a1c] Error 1
...
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm CMakeFiles/cmTC_adafa.dir/CheckFunctionExists.c.o -o cmTC_adafa -rdynamic -lcurses -lm
/usr/bin/ld: cannot find -lcurses
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_adafa.dir/build.make:97: recipe for target 'cmTC_adafa' failed
make1: *** [cmTC_adafa] Error 1
...
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm CMakeFiles/cmTC_e466b.dir/CheckFunctionExists.c.o -o cmTC_e466b -rdynamic -lncurses -lm
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_e466b.dir/build.make:97: recipe for target 'cmTC_e466b' failed
make1: *** [cmTC_e466b] Error 1
...
/usr/bin/ld: cannot find -lncursesw
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_8dc06.dir/build.make:97: recipe for target 'cmTC_8dc06' failed
make1: *** [cmTC_8dc06] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘arc4random’ undeclared (first use in this function)
return ((int*)(&arc4random))[argc];
^
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_75c3b.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_75c3b.dir/CheckSymbolExists.c.o' failed
make1: *** [CMakeFiles/cmTC_75c3b.dir/CheckSymbolExists.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:17: fatal error: cmath: No such file or directory
compilation terminated.
CMakeFiles/cmTC_53670.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_53670.dir/CheckSymbolExists.c.o' failed
make1: *** [CMakeFiles/cmTC_53670.dir/CheckSymbolExists.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:20: fatal error: ieeefp.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_e4e6e.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_e4e6e.dir/CheckSymbolExists.c.o' failed
make1: *** [CMakeFiles/cmTC_e4e6e.dir/CheckSymbolExists.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:17: fatal error: cmath: No such file or directory
compilation terminated.
CMakeFiles/cmTC_b8170.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_b8170.dir/CheckSymbolExists.c.o' failed
make1: *** [CMakeFiles/cmTC_b8170.dir/CheckSymbolExists.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘exp10’ undeclared (first use in this function)
return ((int*)(&exp10))[argc];
^
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_392cf.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_392cf.dir/CheckSymbolExists.c.o' failed
make1: *** [CMakeFiles/cmTC_392cf.dir/CheckSymbolExists.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:27: fatal error: malloc/malloc.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_ff0fe.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_ff0fe.dir/CheckSymbolExists.c.o' failed
make1: *** [CMakeFiles/cmTC_ff0fe.dir/CheckSymbolExists.c.o] Error 1
...
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘strerror_s’ undeclared (first use in this function)
return ((int*)(&strerror_s))[argc];
^
/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_97097.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_97097.dir/CheckSymbolExists.c.o' failed
make1: *** [CMakeFiles/cmTC_97097.dir/CheckSymbolExists.c.o] Error 1
...
A similar error was faced before and posted here. But since my Python version was of 2.7x series, this didn't help.
So going by the log above, I started with the simpler one, installing Valgrind.
After re-trying the command cmake -G "Unix Makefiles" ../llvm
to see if it's solving errors: I've been getting the Library Coroutines error ever since, and I am stuck.
Can you help me?
Solved with a workaround.
Installed clang-3.5 and llvm-3.5 using the sudo apt install method.