Comments (15)
looks like you're using a non-system gcc
. You should be able to do:
make -C ~/.julia/v0.6/Rmath/deps/src/Rmath-julia-0.2.0/ USECLANG=1
(we should probably make that the default on OS X anyway)
from rmath.jl.
Can you try running the script from the package directory (/Users/mcawte/.julia/v0.6/Rmath
)?
from rmath.jl.
The build.jl script?
from rmath.jl.
Actually, can you run
make -C ~/.julia/v0.6/Rmath/deps/src/Rmath-julia-0.2.0/
from rmath.jl.
Sure, the result is
Mcawte:Rmath mcawte$ make -C ~/.julia/v0.6/Rmath/deps/src/Rmath-julia-0.2.0/
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
gcc -Wall -O3 -fPIC -DMATHLIB_STANDALONE -std=gnu99 -I../include -DNDEBUG -c bd0.c -o bd0.o
make[1]: *** [bd0.o] Segmentation fault: 11
make: *** [all] Error 2
Mcawte:Rmath mcawte$
from rmath.jl.
Hmm. Can you try:
make -C ~/.julia/v0.6/Rmath/deps/src/Rmath-julia-0.2.0/ CFLAGS=-v
from rmath.jl.
Same error unfortunately
Mcawte:Rmath mcawte$ make -C ~/.julia/v0.6/Rmath/deps/src/Rmath-julia-0.2.0/ CFLAGS=-v
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
gcc -Wall -O3 -fPIC -DMATHLIB_STANDALONE -v -std=gnu99 -I../include -DNDEBUG -c bd0.c -o bd0.o
make[1]: *** [bd0.o] Segmentation fault: 11
make: *** [all] Error 2
from rmath.jl.
does gcc -v
work?
from rmath.jl.
also, what does which gcc
give?
from rmath.jl.
Okay, so there is probably something wrong with my compiler?
Mcawte:Rmath mcawte$ gcc -v
Segmentation fault: 11
Mcawte:Rmath mcawte$ which gcc
/usr/local/bin/gcc
from rmath.jl.
Did you install GCC from Homebrew?
from rmath.jl.
Mcawte:Rmath mcawte$ brew list
ffmpeg imagemagick lame libtiff x264 xz
freetype jpeg libpng libtool xvid
Should it be using gcc through homebrew?
from rmath.jl.
make -C ~/.julia/v0.6/Rmath/deps/src/Rmath-julia-0.2.0/ USECLANG=1
That seems to have worked. Should I add USECLANG=1 into the build.jl file and then build from julia?
from rmath.jl.
That seems to have worked. Should I add USECLANG=1 into the build.jl file and then build from julia?
I think it should be sufficient to just run Pkg.build("Rmath")
.
Should it be using gcc through homebrew?
No. By default, /usr/bin/gcc
on mac is actually a small wrapper around clang: I guess this is for compatibility reasons. You can also install GCC itself, which appears to have been done on your system at some stage, though it appears to be broken.
from rmath.jl.
Okay, I will change the path to the correct version of clang and get rid of this gcc install. Thank you for your time.
from rmath.jl.
Related Issues (20)
- Cannot build with 32-bit Julia on 64-bit linux HOT 5
- Can not build on Ubuntu 16.04 64x HOT 2
- Issue intalling Rmath -- "nmath.h" not found" HOT 1
- Cannot build Rmath - could not create SSL/TLS secure channel HOT 2
- Problem building Rmath on macOS HOT 2
- Fix warnings in Julia v0.7 HOT 2
- Pkg not building in mac HOT 1
- Missing make, gcc dependencies HOT 3
- setSeed() function required for R's random number generator HOT 1
- Warning when using Distributions package HOT 4
- Package compatibility caps
- build uses deprecated API of BinaryProvider
- Julia 1.5 libc.musl, could not load libRmath-julia.so HOT 10
- make build fails with below error HOT 1
- TagBot trigger issue HOT 2
- Rmath jll for Apple Silicon needed HOT 2
- GPL/MIT licensing issue HOT 6
- `qpois` can return non-integral values on some platforms HOT 4
- Precompiling Rmath error HOT 6
- `qbinom` gives incorrect answers at very small values HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmath.jl.