Comments (6)
thanks a lot for the hints, I will try to fix them as soon as possible
from adol-c.
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.
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.
thanks for clarifying, will look at this as soon as possible
from adol-c.
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.
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)
- Failed to compile HOT 2
- Cannot disable external packages HOT 1
- Linker error using fixpoint iteration abilities HOT 2
- strncpy bound depends on the length of the source
- boost and mingw64 (msys) HOT 1
- Output tape to c or C++ file HOT 1
- ADOL-C thread safety HOT 2
- ColPack detection on MacOS / g++ 10.1 gets confused
- OPENMP for loop with reduction
- configure mistakenly adding "-link -dll" option on a linux system lead to errors
- Build fails with ColPack HOT 2
- configure prints: Build with python swig module: no ./configure: line 22356: xno: command not found HOT 1
- python build fails: error: command 'swig' failed with exit status 1 HOT 2
- Implementation in Matlab HOT 1
- How to cross-compile ADOL-C to arm linux HOT 2
- ADOL-C installation macbook HOT 1
- uni5_for.c:3298:28: error: 'j' undeclared HOT 1
- Warning in calling setNumDir HOT 2
- Data races in OpenMP thread-parallel implementation
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 adol-c.