I'm new to buildroot. I used the scanpypi script to add external packages to Buildroot. When I run the compilation (make command), I quickly have this error returned :
>>> host-mkpasswd Installing to host directory
/usr/bin/install -D -m 755 /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/build/host-mkpasswd/mkpasswd /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/mkpasswd
***
*** ERROR: package host-mkpasswd installs executables without proper RPATH:
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/openssl
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/fdtoverlay
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/genimage
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/setfacl
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/getfacl
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/pkgconf
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/attr
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/fdtget
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/chacl
*** /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/host/bin/fdtput
make[1]: *** [package/pkg-generic.mk:262: /home/ouriacc/Desktop/workspace/BUILDROOT/buildroot-2021.05-rc2_config/output/build/host-mkpasswd/.stamp_host_installed] Error 1
make: *** [Makefile:84: _all] Error 2
I search for an answer on the forums but all I found was this answer which I can't understand... Can someone be more explicit about what I should do to remove it ?
Thank you !
So after some tries, I fixed the issue by running : make clean world.
Related
I am trying to build https://github.com/SeanNaren/warp-ctc.git on Google Colab, following this notebook. I am using these commands on Colab:
!git clone https://github.com/SeanNaren/warp-ctc.git;\
cd warp-ctc;\
mkdir build;\
cd build;\
cmake ..;\
make;
but I am receiving an error building it:
[-11%] Building NVCC (Device) object CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o
/content/drive/My Drive/simple_hwr/warp-ctc/src/ctc_entrypoint.cu(1): error: this declaration has no storage class or type specifier
/content/drive/My Drive/simple_hwr/warp-ctc/src/ctc_entrypoint.cu(1): error: expected a ";"
2 errors detected in the compilation of "/tmp/tmpxft_00000191_00000000-13_ctc_entrypoint.compute_70.cpp1.ii".
CMake Error at warpctc_generated_ctc_entrypoint.cu.o.cmake:279 (message):
Error generating file /content/drive/My
Drive/simple_hwr/warp-ctc/build/CMakeFiles/warpctc.dir/src/./warpctc_generated_ctc_entrypoint.cu.o
CMakeFiles/warpctc.dir/build.make:220: recipe for target 'CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o' failed
make[2]: *** [CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o] Error 1
CMakeFiles/Makefile2:146: recipe for target 'CMakeFiles/warpctc.dir/all' failed
make[1]: *** [CMakeFiles/warpctc.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
How can this be resolved?
This post documents an apparent fix for this issue, which also affects the original warp-ctc repository:
[...] the ctc_entrypoint.cu file needs to be a symlink. So, go to src dir and run:
rm ctc_entrypoint.cu
ln -s ctc_entrypoint.cpp ctc_entrypoint.cu
Then, re-run make, which should resolve the issue.
I am trying to compile and install Python 3.8.2 using Easybuild software and I get this error.
gcc: error: -fuse-linker-plugin is not supported in this configuration
ln: failed to access libpython3.8.so.1.0: No such file or directory
make[3]: *** [libpython3.8.so] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/home/alireza/deleteme/new/build/Python/3.8.2/GCCcore-9.2.0/Python-3.8.2'
make[2]: *** [build_all_generate_profile] Error 2
make[2]: Leaving directory `/home/alireza/deleteme/new/build/Python/3.8.2/GCCcore-9.2.0/Python-3.8.2'
make[1]: *** [profile-gen-stamp] Error 2
make[1]: Leaving directory `/home/alireza/deleteme/new/build/Python/3.8.2/GCCcore-9.2.0/Python-3.8.2'
make: *** [profile-run-stamp] Error 2
(at easybuild/software/EasyBuild/4.2.1/lib/python2.7/site-packages/easybuild/tools/run.py:533 in parse_cmd_output)
The complete log file can be found here.
I tried GCCcore 9.3.0 and GCCcore 9.2.0.The manual of Gcc shows that it supports this flag, and compiling on another machine with this configuration has worked before. I don't know what is wrong here.
Do you have any suggestions for me?
Thank you for your time.
I am installing Swig 3.0.12. This is the first time I have used it. I ran:
make -k check after the installation, and it came back with some boost errors. In the case below they are from the Python check, however the errors for boost have appeared in nearly all of the checks. Are these errors that I should look into correcting and if so, any ideas on how I can go about that?
Errors:
multiple_inheritance_shared_ptr_wrap.cxx:3131:10: fatal error:
'boost/shared_ptr.hpp' file not found
#include <boost/shared_ptr.hpp>
^
1 error generated.
make[2]: *** [python_cpp] Error 1
make[1]: *** [multiple_inheritance_shared_ptr.cpptest] Error 2
.
. (dots indicate the error below occurred later in the check)
.
make[1]: Target `check' not remade because of errors.
make: *** [check-python-test-suite] Error 1
Update: make -k check just completed. The last line of the check returned:
make: Target ``check' not remade because of errors.
I installed homebrew then installed boost. Redid make -k check, and everything passed no problem.
I'm trying to install PyQt5 but I'm getting this error, I read some other posts related to this error but none of them helped.
/home/pathname/Downloads/PyQt-gpl-5.5.1/QtCore/sipQtCoreQJsonValue.cpp:367:30: error: ‘const class QJsonValue’ has no member named ‘toInt’
sipRes = sipCpp->toInt(a0);
^
make[1]: *** [sipQtCoreQJsonValue.o] Error 1
make[1]: Leaving directory `/home/pathname/Downloads/PyQt-gpl-5.5.1/QtCore'
make: *** [sub-QtCore-make_first-ordered] Error 2
I installed Qt5 in my home folder and when I did python configure.py I included qmake to the path of which Qt5 is at and there was no problem with it. But with the make command I'm getting that error.
The version of Qt you have available to the make system must be incompatible with the version of PyQt you are building.
I'm trying to install a python program called sonLib, but I'm not able to pass the unittests. I wonder why, because I think I set the PYTHONPATH correctly in my bashrc...
I tried:
1. PYTHONPATH=$PYTHONPATH:$HOME/programs/sonLib
export PYTHONPATH
2. export PYTHONPATH="home/user/programs/sonLib"
Can someone of you show me how to get it to work?
link for sonLib
Installing sonLib.
Place the directory containing sonLib on your python path. i.e.
PYTHONPATH=${PYTHONPATH}:FOO
where FOO/sonLib is the path to the base directory of sonLib.
Compile the C code:
In sonLib type 'make all' then 'make test' to test the installation
Linking the C libraries: all libraries built are placed in 'sonLib/lib'
error message:
cd externalTools && make all
make[1]: Entering directory `/home/user/programs/sonLib/externalTools'
cd cutest && make all
make[2]: Entering directory `/home/user/programs/sonLib/externalTools/cutest'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/user/programs/sonLib/externalTools/cutest'
make[1]: Leaving directory `/home/user/programs/sonLib/externalTools'
cd C && make all
make[1]: Entering directory `/home/user/programs/sonLib/C'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/programs/sonLib/C'
PYTHONPATH=.. PATH=../../bin:$PATH python allTests.py --testLength=SHORT --logLevel=CRITICAL
ImportError: No module named site
make: *** [test] Error 1
It says that "Place the directory containing sonLib on your python path. i.e. PYTHONPATH=${PYTHONPATH}:FOO where FOO/sonLib is the path to the base directory of sonLib.".
You declared PYTHONPATH=$PYTHONPATH:$HOME/programs/sonLib. It should be like this: PYTHONPATH=$PYTHONPATH:$HOME/programs.
Maybe you should try to place the sonLib base directory directly in your python path folder. If you have easy_install, the site-package should be the perfect place.
Ok, guys don't know why, but if I unset PYTHONHOME the test pass