Changes between Initial Version and Version 1 of Ticket #35245


Ignore:
Timestamp:
Jul 19, 2012, 12:02:56 AM (12 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Please remember to use WikiFormatting, to fill in the Port field, and to Cc the maintainer of that port.

The issue tracker is not for support questions. You already asked for support for this on the mailing list, so that's fine; that's the better place for that. The issue tracker is for bug reports and enhancement requests, so we can consider this the enhancement request to add shared libraries to the petsc port. That's reasonable; we do want ports to install both shared libraries and static libraries, if possible.

Sean Farley provided a link to an updated petsc portfile that we could consider using.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35245

    • Property Owner changed from macports-tickets@… to mmoll@…
    • Property Summary changed from Building shared libraries of petsc to petsc: Build shared libraries
    • Property Type changed from defect to enhancement
    • Property Port petsc added
  • Ticket #35245 – Description

    initial v1  
    33I need to compile petsc with the option --with-shared-libraries=1. I modified the port on my machine, creating a new  variant:
    44
     5{{{
    56variant shared description {build with shared libraries} {
    67    configure.args-delete   --with-shared-libraries=0
     
    89    configure.args-append   --with-shared-libraries=1
    910}
     11}}}
    1012
    1113I have to delete --with-pic=fPIC, otherwise it does not run. Then, it configures and builds fine, but when macports checks on the created files, it complains, and restarts the whole process (and does it over and over again):
     
    1315It says:
    1416
     17{{{
    1518--->  Updating database of binaries: 100.0%
    1619--->  Scanning binaries for linking errors: 100.0%
    1720--->  Found 3 broken file(s), matching files to ports
    1821--->  Found 1 broken port(s), determining rebuild order
     22}}}
    1923
    2024I did run
    2125
     26{{{
    2227port install --no-rev-upgrade petsc +variant
     28}}}
    2329
    2430so that it installs it and stops without checking what's wrong. Compiling goes fine.
     
    2632I then did run
    2733
     34{{{
    2835port -d -y rev-upgrade
     36}}}
    2937
    3038to see the problem, and I have this:
    3139
     40{{{
    3241DEBUG: Marking /opt/local/lib/petsc/lib/libparmetis.dylib as broken
    3342Could not open /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_petsc/petsc/work/petsc-3.3-p0/darwin/lib/libmetis.dylib: Error opening or reading file (referenced from /opt/local/lib/petsc/lib/libparmetis.dylib)
     
    3544Could not open /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_petsc/petsc/work/petsc-3.3-p0/darwin/lib/libparmetis.dylib: Error opening or reading file (referenced from /opt/local/lib/petsc/lib/libpetsc.dylib)
    3645DEBUG: Marking /opt/local/lib/petsc/lib/libpetsc.dylib as broken
     46}}}
    3747
    3848To further investigate the problem, I tried:
    3949
     50{{{
    4051otools -L /opt/local/lib/petsc/libpetsc.dylib
     52}}}
    4153that says this file does not exists:
     54{{{
    4255/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_petsc/petsc/work/destroot/opt/local/lib/petsc/lib/libpetsc.dylib
     56}}}
    4357
    4458There is no /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_petsc/ directory, indeed.
    4559
    4660I am kind of stuck there. I am probably doing things wrong, but I guess also there is a linking problem somewhere.
    47 Thank you for the help
     61
     62Thank you for the help [[br]]
    4863Romain
    4964