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.
Related
I wanted to install Python 3.11-dev on my Android phone, this is my OS (using neofetch):
Android 10 aarch64, I'm running Termux.
When I tried to install it, it had an error compiling getrandom, do you have any idea how I would fix that?
The full output:
pyenv install 3.11-dev
Cloning https://github.com/python/cpython...
Installing Python-3.11-dev...
BUILD FAILED (Linux 4.9.186-perf-g10af704 using python-build 20180424)
Inspect or clean up the working tree at /data/data/com.termux/files/usr/tmp/python-build.20211103205409.32581
Results logged to /data/data/com.termux/files/usr/tmp/python-build.20211103205409.32581.log
Last 10 log lines:
Python/bootstrap_hash.c:114:17: error: implicit declaration of function 'getrandom' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
n = getrandom(dest, n, flags);
^
Python/bootstrap_hash.c:118:17: error: implicit declaration of function 'getrandom' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
n = getrandom(dest, n, flags);
^
2 errors generated.
make: *** [Makefile:1960: Python/bootstrap_hash.o] Error 1
make: *** Waiting for unfinished jobs....
1 warning generated.
Thanks for any answers!
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.
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.
First time using stackoverflow, please tell me, if I'm doing something wrong!
I want to use PJSIP 2.1s python module (wrapper). I tried it like so:
Read the documentation.
Check the requirements accordingly. This is my setup:
OS X 10.9 (Mavericks)
GNU Make 3.81
binutils 2.23.2 (probably via Macports.. not actually sure)
Apple LLVM 5.0
Download v2.1: pjproject-2.1.tar.bz2 and extracted it into my home dir.
Cd into pjproject-2.1 and run this in terminal: ./configure && make dep && make.
When it comes to this line (which is during make, I believe): gcc -o ../bin/pjmedia-test-i386-apple-darwin13.0.0, the following error gets thrown right into my face :/
Undefined symbols for architecture x86_64:
"_aes_icm_advance_ismacryp", referenced from:
_aes_icm_encrypt_ismacryp in libsrtp-i386-apple-darwin13.0.0.a(aes_icm.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../bin/pjmedia-test-i386-apple-darwin13.0.0] Error 1
make[1]: *** [pjmedia-test] Error 2
make: *** [all] Error 1
The script then aborts.
Do you have any suggestions, what might be the problem, or how to avoid it? Will be glad for any help!
Would it help, to force gcc to compile to 32 bit?
i am not sure, if this solves your problem, but for me it worked:
Disable SRTP (Secure Real-Time Transport Protocol)
Add the following to the file pjlib/include/pj/config_site.h
#define PJMEDIA_HAS_SRTP 0
make again - should work.
The right solution would be to reimplement the missing structure in the c code. Probably better to wait for a patch.