Coder Social home page Coder Social logo

Build issue on macOS about njoy21 HOT 9 CLOSED

njoy avatar njoy commented on July 29, 2024
Build issue on macOS

from njoy21.

Comments (9)

jlconlin avatar jlconlin commented on July 29, 2024

What compiler versions did you use?

from njoy21.

brown170 avatar brown170 commented on July 29, 2024

gcc (MacPorts gcc8 8.3.0_4) 8.3.0

The command line switch "-Wno-maybe-uninitialized" is identical to that on Linux.

from njoy21.

jlconlin avatar jlconlin commented on July 29, 2024

We build regularly on Mac with gcc, but we don't use MacPorts. It seems unlikely that MacPorts is the issue. Will have to do some additional checking.

from njoy21.

brown170 avatar brown170 commented on July 29, 2024

Might be useful to add a discussion of supported compilers on the NJOY21 website...

from njoy21.

jlconlin avatar jlconlin commented on July 29, 2024

We do state what minimum compilers are required, but often state something like "clang 3.7+". Perhaps using the "+" is not precise enough. The documentation could certainly be improved.

from njoy21.

jlconlin avatar jlconlin commented on July 29, 2024

We just made a change to NJOY21 that may help with this. It was addressed in Pull Request #93. Please try it out and let me know if it helps.

from njoy21.

brownjm1968 avatar brownjm1968 commented on July 29, 2024

I just ran into the same issue and solved with the same flag as Dave when building with gcc 9.2 (homebrew installed)

from njoy21.

jlconlin avatar jlconlin commented on July 29, 2024

@brownjm1968 Can you tell me the commands that you used to compile NJOY21

from njoy21.

brownjm1968 avatar brownjm1968 commented on July 29, 2024
$ git clone https://github.com/njoy/NJOY21.git
$ cd NJOY21/
$ curl -O https://raw.githubusercontent.com/njoy/signatures/master/NJOY21/1.0.1-NJOY21.json
$ ./metaconfigure/fetch_subprojects.py 1.0.1-NJOY21.json 
$ mkdir bin
$ cd bin/
$ vim ../CMakeLists.txt 
$ cmake -D fetched_subprojects=true -D CMAKE_BUILD_TYPE=release ../
$ make -j7
$ make -j7 test

The vim command is where I added -Wno-maybe-uninitialized to the CMakeLists.txt file

from njoy21.

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.