glibc is failing while doing bitbake[SUMO version] - linux

I'm trying to build a Yocto image using the sumo version everything seems fine but while compiling glibc 2.27 it's failing and throwing the below error.
| /media/data/68DC2D4CDC2D163A/data_Build/build/tmp/work/i586-poky-linux/glibc/2.27-r0/build-i586-poky-linux/nptl/libpthread_pic.a(old_pthread_atfork.os): In function `__dyn_pthread_atfork':
| /usr/src/debug/glibc/2.27-r0/git/nptl/pthread_atfork.c:51: undefined reference to `__dso_handle'
| /media/data/68DC2D4CDC2D163A/data_Build/build/tmp/work/i586-poky-linux/glibc/2.27-r0/recipe-sysroot-native/usr/bin/i586-poky-linux.gcc-cross-initial-i586/../../libexec/i586-poky-linux.gcc-cross-initial-i586/gcc/i586-poky-linux/7.3.0/ld: /media/data/68DC2D4CDC2D163A/data_Build/build/tmp/work/i586-poky-linux/glibc/2.27-r0/build-i586-poky-linux/nptl/libpthread_pic.a(old_pthread_atfork.os): relocation R_386_GOTOFF against undefined hidden symbol `__dso_handle' can not be used when making a shared object
| /media/data/68DC2D4CDC2D163A/data_Build/build/tmp/work/i586-poky-linux/glibc/2.27-r0/recipe-sysroot-native/usr/bin/i586-poky-linux.gcc-cross-initial-i586/../../libexec/i586-poky-linux.gcc-cross-initial-i586/gcc/i586-poky-linux/7.3.0/ld: final link failed: Bad value
| collect2: error: ld returned 1 exit status
| ../Makerules:599: recipe for target '/media/data/68DC2D4CDC2D163A/data_Build/build/tmp/work/i586-poky-linux/glibc/2.27-r0/build-i586-poky-linux/nptl/libpthread.so' failed
| make[2]: *** [/media/data/68DC2D4CDC2D163A/data_Build/build/tmp/work/i586-poky-linux/glibc/2.27-r0/build-i586-poky-linux/nptl/libpthread.so] Error 1
| make[2]: Ledatag directory '/media/data/68DC2D4CDC2D163A/data_Build/build/tmp/work/i586-poky-linux/glibc/2.27-r0/git/nptl'
| Makefile:235: recipe for target 'nptl/others' failed
| make[1]: *** [nptl/others] Error 2
| make[1]: Ledatag directory '/media/data/68DC2D4CDC2D163A/data_Build/build/tmp/work/i586-poky-linux/glibc/2.27-r0/git'
| Makefile:9: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /media/data/68DC2D4CDC2D163A/data_Build/build/tmp/work/i586-poky-linux/glibc/2.27-r0/temp/log.do_compile.6080)
I checked the
following question but it's not working. I tried in Ubuntu in both ubuntu 16 and 18.Is there any solution for this problem?

I've had this error message when building for raspberry pi on an external drive. Managed to get around it by doing a clean build on my host's SSD and made sure I used bash instead of dash with the following command:
sudo dpkg-reconfigure dash
Choose No to dash when prompted. Also might be worth it to make sure you do:
sudo apt-get update
And install all of the Yocto required packages:
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm

Related

can't make riscv-gnu-toolchain "make -j$(nproc)" on Arch Linux

I'm building the riscv-gnu-toolchain here on the latest Arch Linux.
https://github.com/riscv-collab/riscv-gnu-toolchain like this:
sudo pacman -Syyu autoconf automake curl python3 libmpc mpfr gmp gawk base-devel bison flex texinfo gperf libtool patchutils bc zlib expat
cd /tmp
git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain
cd riscv-gnu-toolchain
mkdir build
cd build
../configure --prefix=${HOME}/riscv64_github
make -j$(nproc)
When compiling during the build of gcc I get this error:
/tmp/riscv-gnu-toolchain/gcc/gcc/fold-const.cc:16842:1: fatal error: error writing to /tmp/ccNNtXpB.s: No space left on device
16842 | }
| ^
compilation terminated.
make[2]: *** [Makefile:1143: fold-const.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod gcov.pod lto-dump.pod
make[2]: Leaving directory '/tmp/riscv-gnu-toolchain/build/build-gcc-newlib-stage1/gcc'
make[1]: *** [Makefile:4607: all-gcc] Error 2
make[1]: Leaving directory '/tmp/riscv-gnu-toolchain/build/build-gcc-newlib-stage1'
make: *** [Makefile:552: stamps/build-gcc-newlib-stage1] Error 2
What should I do?

While I'm trying gcc make linux-headers-`uname -r` I'm getting error

I was trying to install droidcam Linux client. when I run the command
gcc make linux-headers-`uname -r`
I'm getting the following error:
gcc: error: make: No such file or directory
gcc: error: linux-headers-5.4.0-42-generic: No such file or directory
gcc: fatal error: no input files
compilation terminated.
I tried
sudo apt-get install linux-headers-`uname -r`
and this tells me it is already there.
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-5.4.0-42-generic is already the newest version (5.4.0-42.46).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
From this solution I just run this command yes | sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
and then followed the other steps described.

Error while installing bedtools via cygwin commands: fatal error: zlib.h: No such file or directory

I'm trying to install the bedtools v2.27.0 via Cygwin. Here are the commands I've tried:
$ wget https://github.com/arq5x/bedtools2/releases/download/v2.27.0/bedtools-2.27.0.tar.gz
$ tar -zxvf bedtools-2.27.0.tar.gz
$ cd bedtools2
$ make
when running the last command, I get the following error:
*fatal error: zlib.h: No such file or directory
*#include <zlib.h>*
^
compilation terminated.
make[1]: *** [Makefile:37: ../../../obj//FileRecordMgr.o] Error 1
make: *** [Makefile:187: src/utils/FileRecordTools] Error 2*
I tried downloading the libz package using the following command:
$ apt-cyg install libz-dev
but it didn't work. I got the following error:
Unable to locate package libz-dev
Note that I'm using Cygwin terminal on windows (64-bit machine). Your help is highly appreciated.
To install packages use cygwin setup, or at least find the right package name before using apt-cyg
To find the package containing zlib.h header:
$ cygcheck -p include/zlib.h
Found 10 matches for include/zlib.h
...
zlib-devel-1.2.11-1 - zlib-devel: gzip de/compression library (development)
..
So you need to install zlib-devel

Installing nvm on bash on ubunutu on windows 10 throws error

I'm testing the new bash on ubuntu on windows 10 and the first thing I tried to do is to install node. Of course, since I now have a "Linux system" I went ahead and installed nvm.
I also had to
apt-get make gcc g++
One done i tried
nvm install v4.4.2
but I got:
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/root/.nvm/src/node-v4.4.2/out'
g++ -pthread -rdynamic -m64 -fuse-ld=gold -B/root/.nvm/src/node-
v4.4.2/third_party/binutils/Linux_x64/Release/bin -m64 -o /root/.nvm/src/node-v4.4.2/out/Release/mksnapshot -Wl,--start-group /root/.nvm/src/node-v4.4.2/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/mksnapshot.o /root/.nvm/src/node-v4.4.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a /root/.nvm/src/node-v4.4.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a /root/.nvm/src/node-v4.4.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_libplatform.a /root/.nvm/src/node-v4.4.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_libbase.a -Wl,--end-group -ldl -lrt
/usr/bin/ld.gold: fatal error: /root/.nvm/src/node-v4.4.2/out/Release/mksnapshot: Invalid argument
collect2: error: ld returned 1 exit status
make[1]: *** [/root/.nvm/src/node-v4.4.2/out/Release/mksnapshot] Error 1
make[1]: Leaving directory `/root/.nvm/src/node-v4.4.2/out'
make: *** [node] Error 2
nvm: install v4.4.2 failed!
Do you know what's causing this? I think that I may have something missconfigured on the make command maybe?
NOTE: installing node using the "official way" works, that is:
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
I think it's an issue in the bash subsystem. There are several open issues on github.com relating to installing nvm, rbenv, rvm, as well as creating symlinks.
These two issues appear to be directly related to the problem you're experiencing.
https://github.com/Microsoft/BashOnWindows/issues/6
https://github.com/Microsoft/BashOnWindows/issues/9
Also, FYI, I have attempted to build node 4 and node 5 from source, but fail during the make command with this message:
/usr/bin/ld.gold: fatal error: /root/working/node-v5.10.1/out/Release/mksnapshot: Invalid argument
collect2: error: ld returned 1 exit status

Caffe compilation fails: make: *** [.build_release/src/caffe/data_transformer.o] Error 1

I am trying to build caffe after the instructions on http://caffe.berkeleyvision.org/installation.html#prerequisites
When compiling i get the following error:
(I use Fedora 22)
$make all
CXX src/caffe/data_transformer.cpp
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/data_transformer.hpp:6,
from src/caffe/data_transformer.cpp:6:
./include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory
compilation terminated.
Makefile:516: recipe for target '.build_release/src/caffe/data_transformer.o' failed
make: *** [.build_release/src/caffe/data_transformer.o] Error 1
What am i doin wrong?
You have to install missing dependencies (gflags).
Fedora/RHEL/CentOS: sudo yum install gflags-devel
Ubuntu: sudo apt-get install libgflags-dev
There are also instructions for other dependencies:
Fedora/RHEL/CentOS :http://caffe.berkeleyvision.org/install_yum.html
Ubuntu: http://caffe.berkeleyvision.org/install_apt.html
To install missing gflag dependencies
wget https://github.com/schuhschuh/gflags/archive/master.zip
unzip master.zip
cd gflags-master
mkdir build && cd build
export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1
make
sudo make install

Resources