Build of Julia fails on OS X with llvm-config error - llvm

I have been trying to build Julia the whole day in MacOS Sierra. Finally after sorting out a lot of problems I'm stuck at this.
/bin/sh: llvm-config: command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
make[1]: llvm-config: Command not found
CC src/APInt-C.o
In file included from /Users/sudoankit/github/julia/src/APInt-C.cpp:3:
./llvm-version.h:3:10: fatal error: 'llvm/Config/llvm-config.h' file not found
#include <llvm/Config/llvm-config.h>
^
1 error generated.
make[1]: *** [APInt-C.o] Error 1
make: *** [julia-src-release] Error 2
I have updated everything and also installed llvm using brew.
Please tell me how to fix it.

Related

Problem with old code while installing Dock6

I'm trying to install Dock6 (version 6.9) on Fedora 35, I got the license from the website, opened the tarball and followed the manual instructions.
As per the instructions I've run the command ./configure gnu to create a config.h file which uses the gfortran compiler, installed the latest version of gfortran and run Make all.
The problem seems to be that the source code was written with g77 in mind and I get a lot of warnings and 2 errors saying:
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 20 at (1)
cdiag.f:388:72:
388 | 50 CALL ME08B (A(K,K),Q(K),A(I,K),N-K+1,IA*2)
| 1
**Error: Type mismatch in argument ‘a’ at (1); passed COMPLEX(4) to REAL(4)**
cdiag.f:15:72:
15 | CALL EC08C(W,W(N+1),VALUE,VEC,N,IV,W(2*N+1))
| 1
**Error: Type mismatch in argument ‘vec’ at (1); passed COMPLEX(4) to REAL(4)**
make[2]: *** [../../../install/rules.h:44: cdiag.o] Errore 1
make[2]: uscita dalla directory «/home/francesco/docking/dock6/src/mopac6/src»
make[1]: *** [Makefile:21: utils] Errore 2
make[1]: uscita dalla directory «/home/francesco/docking/dock6/src»
make: *** [Makefile:14: install] Errore 2
so i read in the config.h file that it was also possible to compile with g95 and g77.
If I compile with g95, which I managed to install, I get this error:
**f951: error: unrecognized command line option "-fno-automatic"**
make[2]: *** [../../install/rules.h:44: showbox.o] Errore 1
make[2]: uscita dalla directory «/home/francesco/docking/dock6/src/accessories»
make[1]: *** [Makefile:16: utils] Errore 2
make[1]: uscita dalla directory «/home/francesco/docking/dock6/src»
make: *** [Makefile:14: install] Errore 2
regarding g77, I just cannot find a way to install it, I managed to find a .deb package, converted it to RPM using alien command, but it doesn't complete the installation saying it conflicts with something in the system.

cross compiling protocol buffers for arm

I am new to Google's protocol buffers and I am having trouble with cross-compiling it for arm. I am not able to find any concrete solutions to my problem using google.
The steps I am following:
./autogen.sh
./configure
make -s && make install
./configure --host=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc --prefix=/opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/ --with-protoc=/usr/local/bin/protoc
make
I get an error when I run make.
google/protobuf/stubs/common.cc:55:2: error: #error "No suitable threading library available."
#error "No suitable threading library available."
^
Makefile:3956: recipe for target 'google/protobuf/stubs/common.lo' failed
make[2]: *** [google/protobuf/stubs/common.lo] Error 1
make[2]: Leaving directory '/home/protobuf/protobuf/src'
Makefile:1544: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/protobuf/protobuf'
Makefile:1451: recipe for target 'all' failed
make: *** [all] Error 2
Any help would be much appreciated.

ld: library not found for -lclangRewrite

The following error occurs when I am building eos using cmake on macOS.
ld: library not found for -lclangRewrite
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [programs/abi_gen/abi_gen] Error 1
make[1]: *** [programs/abi_gen/CMakeFiles/abi_gen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 74%] Built target eos_chain
make: *** [all] Error 2
I find some related issues, but they are seemingly all about ios and xcode and I don't know what I should do in a project like eos. How can I fix it?
I meet the same 2 errors when building from source code of EOS step by step.
Alternatively You can use another method by running the script(https://github.com/EOSIO/eos#automac):
./build.sh darwin

QtOpenGl: No such file or directory

I installed Deepin Linux few days back. I am trying to install OpenCv2.4.10 but during compilation I am getting this error:
fatal error: QtOpenGL: No such file or directory
#include <QtOpenGL>
^
compilation terminated.
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Disable the compilation of Qt modules for opencv or install Qt with OpenGL support to solve the error

make "sumo 0.17.1" on ubuntu 13.10

I installed and tested v0.19.1 successfully before, however, I needed to downgrade to 0.17.1 in order to run some example in omnetpp's veins simulator.
Whenever I run the "make" command, I get the following error:
/usr/bin/ld: ./utils/foxtools/libfoxtools.a(MFXMutex.o): undefined reference to symbol 'pthread_mutexattr_settype##GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [sumo-gui] Error 1
make[3]: Leaving directory `/home/maamoun/pkgs/sumo-0.17.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/maamoun/pkgs/sumo-0.17.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/maamoun/pkgs/sumo-0.17.1/src'
make: *** [all-recursive] Error 1
What am I missing?!
Problem solved, had to install libproj-dev and include proj in the ./configure using the --with-proj-includes=DIR
[EDIT] after 15 minutes of making, same error raised again!!!