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?
Related
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
I have a squid source code dir, which works fine for ./configure && make clean as below
cd /opt/squid-3.5.4
./configure && make clean
now when I create a copy of the dir & try to do ./configure && make clean, I get an error
cp -r /opt/squid-3.5.4 /opt/squid-3.5.4_BKUP
cd /opt/squid-3.5.4_BKUP
./configure && make clean
.....
.....
.....
make[2]: Leaving directory `/opt/squid-3.5.4_BKUP/lib'
make[1]: Leaving directory `/opt/squid-3.5.4_BKUP/lib'
Making clean in libltdl
make[1]: Entering directory `/opt/squid-3.5.4_BKUP/libltdl'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /opt/squid-3.5.4_BKUP/libltdl/config/missing aclocal-1.14 -I m4
/opt/squid-3.5.4_BKUP/libltdl/config/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make[1]: *** [aclocal.m4] Error 127
make[1]: Leaving directory `/opt/squid-3.5.4_BKUP/libltdl'
make: *** [clean-recursive] Error 1
Machine details:
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
aclocal --version
aclocal (GNU automake) 1.11.1
It says aclocal-1.14 is missing, but in dir /opt/squid-3.5.4 it works fine with current aclocal version.
Could somebody tell me how can build (/make) in renamed dir
PS: After some google search, I've tried doing below
cd /opt/squid-3.5.4_BKUP
touch configure.ac aclocal.m4 configure Makefile.am Makefile.in
autoreconf -ivf
but no luck.
looks like i had to do:
cd /opt/squid-3.5.4_BKUP/libltdl/
touch configure.ac aclocal.m4 configure Makefile.am Makefile.in
I am trying to install GCC 4.9.0, I got following errors for './configure' and 'make'.
I got following error for ./configure
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: error: I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.
Then I used ./configure --disable-multilib then configure completed with out any error.
After 'make'; i end with following error and i am not able to identify what is this error
checking for suffix of object files... configure: error: in `/root/dsk/gcc-4.9.0/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/root/dsk/gcc-4.9.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/dsk/gcc-4.9.0'
make: *** [all] Error 2
please help
It seems you are missing gcc-multilib.
Try installing it with sudo apt-get install gcc-multilib and then run ./configure again.
For Centos you need to install following libraries:
sudo yum install glibc-devel.i686
sudo yum install libgcc.i686
I am trying to run the make command over the NVIDIA CUDA Sample files. I navigated to the directory and typed make. Below is the output.
root#ubuserver3:/home/ubuadmin/CUDA/SampleInstalled/NVIDIA_CUDA-5.5_Samples# make
make[1]: Entering directory `/home/ubuadmin/CUDA/SampleInstalled/NVIDIA_CUDA-5.5_Samples/0_Simple/simpleAssert'
"/home/ubuadmin/CUDA"/bin/nvcc -ccbin g++ -I../../common/inc -m32 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=\"sm_35,compute_35\" -o simpleAssert.o -c simpleAssert.cu
g++: No such file or directory
make[1]: *** [simpleAssert.o] Error 1
make[1]: Leaving directory `/home/ubuadmin/CUDA/SampleInstalled/NVIDIA_CUDA-5.5_Samples/0_Simple/simpleAssert'
make: *** [0_Simple/simpleAssert/Makefile.ph_build] Error 2
root#ubuserver3:/home/ubuadmin/CUDA/SampleInstalled/NVIDIA_CUDA-5.5_Samples#
There is an error which I do not understand why.
If you search you'll find many answers for this question. Basically, you don't have a compiler installed on your system.
Since you're running Ubuntu, run sudo apt-get install build-essential to get all the packages needed to compile software.
I want to install node.js on QNAP NAS, it's a linux OS I can use ipkg install package.
but ipkg not have node.js...
I reference web forum as http://forum.qnap.com/viewtopic.php?p=248556, installed V8 JavaScript Engine.
Then install node.js
When I'm typing make on /opt/node, that shows an error message as follows:
make -C out BUILDTYPE=Release V=1 make[1]: Entering directory
/share/HDA_DATA/.qpkg/Optware/node/out' flock
/share/HDA_DATA/.qpkg/Optware/node/out/Release/linker.lock g++
-pthread -rdynamic -o /share/HDA_DATA/.qpkg/Optware/node/out/Release/mksnapshot
-Wl,--start-group /share/HDA_DATA/.qpkg/Optware/node/out/Release/obj.target/mksnapshot/deps/v8/src/mksnapshot.o
/share/HDA_DATA/.qpkg/Optware/node/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a
/share/HDA_DATA/.qpkg/Optware/node/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a
-Wl,--end-group make[1]: flock: Command not found make[1]: *** [/share/HDA_DATA/.qpkg/Optware/node/out/Release/mksnapshot] Error 127
make[1]: Leaving directory/share/HDA_DATA/.qpkg/Optware/node/out'
make: * [node] Error 2
The QNAP NAS(TS-119P2) does not have flock command line,
What can I do? Could somebody help me?
ipkg install util-linux
It contains flock command.
Goto node source dir.
./configure --prefix=/opt
...
LINK=g++ make
...
LINK=g++ make install
Worked for me.
I had to export CC as my compiler, and then run the commands babalooi suggested:
export CC=/opt/bin/gcc
./configure --prefix=/opt
...
LINK=g++ make
...
LINK=g++ make install