Coder Social home page Coder Social logo

support gfortran about osxcross HOT 4 CLOSED

fommil avatar fommil commented on July 22, 2024
support gfortran

from osxcross.

Comments (4)

tpoechtrager avatar tpoechtrager commented on July 22, 2024

do you support gfortran cross compiles

No, Java and Fortran are not really a goal of OSXCross.

However, you can adjust build_gcc.sh to gain Fortran/Java support:

--enable-languages=c,c++,objc,obj-c++,fortran,java \
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar \
--enable-libjava-multilib \
--enable-static-libjava \

Building libjava fails, similar to:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42311.

You may be able to get around it by setting GCC_FOR_ECJX before configuring.

Fortran seems to work.

is it possible to setup a minimal cross compile environment that only provides java/veclib?

Well, this is a little bit complicated, you'll always need clang to build cctools/ld64 (ld64 won't build with gcc) and the Mac OS X SDK to build gcc itself (and afterwards for linking, libc, ...).

from osxcross.

fommil avatar fommil commented on July 22, 2024

ok, thanks.

btw, I'm not asking for java support in gcc, only fortran and c. It's the java .so that I'm linking to (i.e. jni), not the gnu java crap.

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 22, 2024

Yes, gcc and gfortran are working, just adjust the languages to "c,c++,fortran" in build_gcc.sh.
You can get rid of c++ too, but be sure to remove the g++ tests first, look for test_compiler in build_gcc.sh.

from osxcross.

fommil avatar fommil commented on July 22, 2024

sweet, I might give it a shot.

from osxcross.

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.