GithubHelp home page GithubHelp logo

2.7.2 prefix install fails about adol-c HOT 12 CLOSED

coin-or avatar coin-or commented on August 23, 2024
2.7.2 prefix install fails

from adol-c.

Comments (12)

awalther1 avatar awalther1 commented on August 23, 2024

Hi, we had this problem with the releases 2.7.0 and 2.7.1. This should be fixed now.

from adol-c.

stefanozampini avatar stefanozampini commented on August 23, 2024

This has not been fixed (tried today, still same error)

from adol-c.

stefanozampini avatar stefanozampini commented on August 23, 2024

@awalther1

from adol-c.

awalther1 avatar awalther1 commented on August 23, 2024

Hi, we had an issue with the prefix that was fixed in 2.7.2. I thought this had solved also your problem. However, this seems not to be the case. We will now have a look at your specific problem.
Best regards

Andrea

from adol-c.

stefanozampini avatar stefanozampini commented on August 23, 2024

https://github.com/coin-or/ADOL-C/blob/master/configure.ac#L663

it should be test and not $test

I tried with master and it works as expected. We should temporarily track the dev branch in our package and start using releases from the next one.
Anyway, it would be nice if you provide --enable-python as configure flag in the next releases to allow for users to disable the python build

from adol-c.

stefanozampini avatar stefanozampini commented on August 23, 2024

Sorry, not yet completely fixed. I spoke too early. This is with the latest master

configure (note the libdir)

./configure --prefix=/home/szampini/Devel/petsc/arch-maint MAKE=/usr/bin/gmake --libdir=/home/szampini/Devel/petsc/arch-maint/lib CC="mpicc" CFLAGS="-g -O0 -fPIC" AR="/usr/bin/ar" ARFLAGS="cr" CXX="mpicxx" CXXFLAGS="-g -O0 -fPIC" F90="mpif90" F90FLAGS="-g -O0 -fPIC" FFLAGS="-g -O0 -fPIC" FC="mpif90" F77="mpif90" FCFLAGS="-g -O0 -fPIC" --enable-shared --enable-sparse

When running make install, the swig build uses the suffix lib64 as location for adolc (libdir is not respected) and fails.

...
compile options: '-I/usr/lib64/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -I/home/szampini/Devel/petsc/arch-maint/include -c'
extra options: '-std=c++11 -fPIC -w'
gcc: adolc-python_wrap.cpp
mpicxx -pthread -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -g build/temp.linux-x86_64-3.7/adolc-python_wrap.o -L/usr/lib64 -L/home/szampini/Devel/petsc/arch-maint/lib64 -Wl,--enable-new-dtags,-R/home/szampini/Devel/petsc/arch-maint/lib64 -ladolc -lpython3.7m -o build/lib.linux-x86_64-3.7/_adolc.cpython-37m-x86_64-linux-gnu.so
/usr/bin/ld: cannot find -ladolc
collect2: error: ld returned 1 exit status
error: Command "mpicxx -pthread -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -g build/temp.linux-x86_64-3.7/adolc-python_wrap.o -L/usr/lib64 -L/home/szampini/Devel/petsc/arch-maint/lib64 -Wl,--enable-new-dtags,-R/home/szampini/Devel/petsc/arch-maint/lib64 -ladolc -lpython3.7m -o build/lib.linux-x86_64-3.7/_adolc.cpython-37m-x86_64-linux-gnu.so" failed with exit status 1

from adol-c.

awalther1 avatar awalther1 commented on August 23, 2024

Hi, thanks a lot for the additional information. We will try to fix this as soon as possible.

from adol-c.

caidao22 avatar caidao22 commented on August 23, 2024

Hi, this issue has been hanging fire for over six months. Is there a plan for fixing it soon?

from adol-c.

awalther1 avatar awalther1 commented on August 23, 2024

Hi,

it should be test and not $test

this is fixed now in the master

--enable-python as configure flag

this is now provided, by default it is disabled, disabling also the swig build

we still have to fix the problem with the suffix lib64 as location for the swig build

It would be great if you could give it a try

from adol-c.

awalther1 avatar awalther1 commented on August 23, 2024

This should be really fixed now.

from adol-c.

stefanozampini avatar stefanozampini commented on August 23, 2024

Thanks. However, it is not completely fixed, since you did not commit the new configure file. I had to rerun autoconf to have the python script disabled by default @awalther1

from adol-c.

awalther1 avatar awalther1 commented on August 23, 2024

Thanks for the hint, I commited the corresponding configure file a few minutes ago

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.