Checking of python fails as: testing of pyembed fails - python-2.7

When I try to do a waf configuration, I get the following error:
Asking python-config for pyembed '--cflags --libs --ldflags' flags :
yes Testing pyembed configuration:Could not build a python embedded
interpreter
The error is difficult to understand and solve. Can anyone please help me to fix this error?

Related

Unable to resolve configuration with compiler Path

I have been getting this error message after installing VS code (New computer just reinstalling things) and I ran into this error message after installing splashkit + the c++ extension:
Unable to resolve configuration with compilerPath: C:/Users/willi/Documents/Code/102/Test/g++.exe
I would imagine I need to change the path variable but I am not sure.
Thanks
EDIT: I get this error message after using the command:
skm clang++ program.cpp -o One
I'm sure I am missing something easy here, but I haven't ran into this one before.

Cray compiler asks for a flag, then doesn't recognize it

I am trying to compile a code with crayftn.
I get an error message
/opt/cray/pe/cce/10.0.1/binutils/x86_64/x86_64-pc-linux-gnu/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax
So it wants the flag --no-relax? OK, I can do that. So I re-link with that flag, and then it tells me
ftn -O3 --no-relax -dynamic -h pic -h omp -o stream_cray stream_mpi.o mysecond.o
ftn-2115 crayftn: ERROR in command line
"-no-relax" is an invalid command-line option.
So it asks for "--no-relax", but then it doesn't understand it. Anyone know of a way out of this conundrum? Or another way of solving the root problem in the first place?
I found this link:
https://bb.cgd.ucar.edu/cesm/threads/failed-to-convert-gotpcrel-relocation-relink-with-no-relax.4494/
PROBLEM:
Hi, I get the following error message for CLM5.0 compilation with
Intel compilers, during the final cesm bld ..ld: failed to convert GOTPCREL relocation; relink with --no-relax
SOLUTION:
Hi, Seems like found a solution to fix the compilation ...Adding of
"-Wl,--no-relax" in LDFLAGS does not solve this problem, but
"-mcmodel medium" in FFLAGS fixes this issue, after searching for
"Relocation truncated to fit" in google search engine, it comes up
with this link which was helpful to solve the issue
"https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/268394"
Best Regards,Prabhakar
See also:
https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit/td-p/1146616
This looks like mixing compilers and libraries from different systems
mixed up, either 32bit vs. 64bit or installations for ifort and
mpiifort based on different glibc or something similar.
I'm still curious about your "development environment":
Q: Have you been able to successfully compile, link and run ANY
program with your crayftn? Q: What version of crayftn? 10.0.1? Q: What
platform? Where is x86_64-pc-linux coming from? Just curious...

CommandLine error in autoscheduler "Li2018" Halide

I want to test the autoscheduler "Li2018" on Ubuntu16.04. I exploit dlopen to load the libgradient_autoscheduler.so to my pipeline (the plugin of autoscheduler Li2018) and build it, but when I ran the executable file, an error has occured:
CommandLine Error: Option 'ppc-use-base-pointer' registered more thanonce! LLVM ERROR: inconsistency in registered CommandLine options
I cannot understand what is the ppc-use-base-pointer and I don't think I have registered more than once. does someone is familiar with llvm? Or does someone met the same problem and have solved the problem? By the way, my llvm-config is 3.8.0.
If you look at the README (https://github.com/halide/Halide/blob/master/README.md), you need llvm with version >= 8.0 for Halide to properly run.

unable to run example of OpenCV in beagleBone Black

I am trying to run a program using OpenCV in beaglebone black as described at the end of the link https://solarianprogrammer.com/2014/04/21/opencv-beaglebone-black-ubuntu/
I had some compilation issues which I resolved using
g++ pkg-config --cflags --libs opencv test_2.cpp -o test_2
It successfully compiles, but when I try to run using
./test_2
I get the error:
Ipc_start: LAD_connect() failed: 4
test_2: /build/ti-opencl-zdvBAC/ti-opencl-01.01.06.00/host/src/core/dsp/mbox_impl_msgq.cpp:59: MBoxMsgQ::MBoxMsgQ(Coal::DSPDevice*): Assertion `status == (0) || status == (1)' failed.
Aborted
I am not sure why I am getting this, and I've been unable to resolve it for a few days already. Please guide me into right direction.
Regards
This stems from the use of OpenCL under the covers. The bypass that works for me is to disable opencl by setting:
export OPENCV_OPENCL_RUNTIME=qqq
Optionally, if you're (cross) compiling OpenCV you can add -DWITH_OPENCL=OFF to your Cmake options to remove OpenCL from the build.

arm-linux-androideabi stl compile error

I'm currently trying to build the android version of google breakpad on a linux machine. But it seems I'm having some issues getting the stl to be properly referenced.
I get past the configure step running ..
./configure --host=arm-linux-androideabi --disable-processor
--disable-tools
For output of this see config.log
My environment has the following variables set ..
CPP=arm-linux-androideabi-cpp
AS=arm-linux-androideabi-as
AR=arm-linux-androideabi-ar
CXX=arm-linux-androideabi-g++
CC=arm-linux-androideabi-gcc
LD=arm-linux-androideabi-ld
CFLAGS=--sysroot=/home/desktop/Development/android-ndk-r9d/platforms/android-9/arch-arm
CPPFLAGS=--sysroot=/home/desktop/Development/android-ndk-r9d/platforms/android-9/arch-arm
CXXFLAGS=--sysroot=/home/desktop/Development/android-ndk-r9d/platforms/android-9/arch-arm
SYSROOT=/home/desktop/Development/android-ndk-r9d/platforms/android-9/arch-arm
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:.:/home/desktop/Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin
NDK_ROOT=/home/desktop/Development/android-ndk-r9d
NDK=/home/desktop/Development/android-ndk-r9d
When I run make -j4 I get the following errors..
src/client/linux/crash_generation/crash_generation_client.cc:34:21:
fatal error: algorithm: No such file or directory compilation terminated.
There are more similar errors related to stl (full output here). So my question is how do I get this to build with those included. I don't work in linux much so please try to be explicit with any answers.
Thanks
I added the following flags and reran config and then the compile succeeded.
CPPFLAGS=--sysroot=/home/desktop/Development/android-ndk-r9d/platforms/android-9/arch-arm -I /home/desktop/Development/android-ndk-r9d/sources/cxx-stl/stlport/stlport
LDFLAGS=-L /home/desktop/Development/android-ndk-r9d/sources/cxx-stl/stlport/libs/armeabi
LIBS=-lstlport_static