GithubHelp home page GithubHelp logo

Comments (6)

awalther1 avatar awalther1 commented on August 23, 2024 1

thanks a lot for the hints, I will try to fix them as soon as possible

from adol-c.

awalther1 avatar awalther1 commented on August 23, 2024

one question: It says "adolc 2.7.3-trunk" in your message. Is this the current version of ADOL-C in the master branch or version 2.7.2?

from adol-c.

balay avatar balay commented on August 23, 2024

The build was using the commit mentioned above [at that time - latest master branch]

[balay@pj01 ADOL-C]$ git branch -r --contains ac89ea4
  origin/HEAD -> origin/master
  origin/master

from adol-c.

awalther1 avatar awalther1 commented on August 23, 2024

thanks for clarifying, will look at this as soon as possible

from adol-c.

hcsch avatar hcsch commented on August 23, 2024

In configure.ac the string equality operator bashism ==(not POSIX) is used a lot (lines 32, 37, 285, etc.), instead of =. There is also one use of [[ (line 654) instead of [ which is also a bashism (and not POSIX). There's also one arithmetic for-loop (line 734; also not POSIX) which could be replaced with a simple for i in 5 4 3 2 1; do or similar.
I personally use dash as my /bin/sh and that really only supports POSIX syntax, so these bashisms break the configure script for me.
I'm not familiar with autoconf, but I would assume replacing the above bashisms for their POSIX equivalents and re-generating configure should fix this issue. Using a #!/usr/bin/env bash shebang like suggested by @balay as a workaround might also be an option, though I don't know if autoconf allows for that.

from adol-c.

hcsch avatar hcsch commented on August 23, 2024

After looking a bit into how autoconf is used, I noticed that autoconf/colpack.m4 also contains non-POSIX script elements. I tried replacing all non-POSIX constructs with POSIX compliant equivalents, the configure script generated by autoreconf (version 2.70 as currently distributed for Arch) after that is however still broken, though in a different way. There now is a broken case statement missing a parenthesis and a stray parenthesis one thousand lines later in the file. (Manually fixing those by adding a parenthesis to the case and removing the stray seemingly makes the configure script work.)
If this is helpful in fixing this issue I can create a pull-request with my POSIX-ifying changes to configure.ac and colpack.m4. I could also include the configure script as generated by autoreconf from the modified files.
I don't think I'll be able to figure out much more than this though, because how the case statement that is broken and the stray parenthesis are generated from the autoconf macros eludes me, frankly.
Please correct me if I've misunderstood something about the usage of autoconf or have made any incorrect assumptions in general.

from adol-c.

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.