Giter Site home page Giter Site logo

Can not build Rmath about rmath.jl HOT 15 CLOSED

juliastats avatar juliastats commented on June 12, 2024
Can not build Rmath

from rmath.jl.

Comments (15)

simonbyrne avatar simonbyrne commented on June 12, 2024 1

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.

simonbyrne avatar simonbyrne commented on June 12, 2024

Can you try running the script from the package directory (/Users/mcawte/.julia/v0.6/Rmath)?

from rmath.jl.

mcawte avatar mcawte commented on June 12, 2024

The build.jl script?

from rmath.jl.

simonbyrne avatar simonbyrne commented on June 12, 2024

Actually, can you run

make -C ~/.julia/v0.6/Rmath/deps/src/Rmath-julia-0.2.0/

from rmath.jl.

mcawte avatar mcawte commented on June 12, 2024

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.

simonbyrne avatar simonbyrne commented on June 12, 2024

Hmm. Can you try:

make -C ~/.julia/v0.6/Rmath/deps/src/Rmath-julia-0.2.0/ CFLAGS=-v

from rmath.jl.

mcawte avatar mcawte commented on June 12, 2024

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.

simonbyrne avatar simonbyrne commented on June 12, 2024

does gcc -v work?

from rmath.jl.

simonbyrne avatar simonbyrne commented on June 12, 2024

also, what does which gcc give?

from rmath.jl.

mcawte avatar mcawte commented on June 12, 2024

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.

ararslan avatar ararslan commented on June 12, 2024

Did you install GCC from Homebrew?

from rmath.jl.

mcawte avatar mcawte commented on June 12, 2024
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.

mcawte avatar mcawte commented on June 12, 2024
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.

simonbyrne avatar simonbyrne commented on June 12, 2024

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.

mcawte avatar mcawte commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.