Changes between Initial Version and Version 1 of Ticket #35245
- Timestamp:
- Jul 19, 2012, 12:02:56 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35245
- Property Owner changed from macports-tickets@… to mmoll@…
-
Property
Summary
changed from
Building shared libraries of petsc
topetsc: Build shared libraries
-
Property
Type
changed from
defect
toenhancement
- Property Port petsc added
-
Ticket #35245 – Description
initial v1 3 3 I need to compile petsc with the option --with-shared-libraries=1. I modified the port on my machine, creating a new variant: 4 4 5 {{{ 5 6 variant shared description {build with shared libraries} { 6 7 configure.args-delete --with-shared-libraries=0 … … 8 9 configure.args-append --with-shared-libraries=1 9 10 } 11 }}} 10 12 11 13 I 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): … … 13 15 It says: 14 16 17 {{{ 15 18 ---> Updating database of binaries: 100.0% 16 19 ---> Scanning binaries for linking errors: 100.0% 17 20 ---> Found 3 broken file(s), matching files to ports 18 21 ---> Found 1 broken port(s), determining rebuild order 22 }}} 19 23 20 24 I did run 21 25 26 {{{ 22 27 port install --no-rev-upgrade petsc +variant 28 }}} 23 29 24 30 so that it installs it and stops without checking what's wrong. Compiling goes fine. … … 26 32 I then did run 27 33 34 {{{ 28 35 port -d -y rev-upgrade 36 }}} 29 37 30 38 to see the problem, and I have this: 31 39 40 {{{ 32 41 DEBUG: Marking /opt/local/lib/petsc/lib/libparmetis.dylib as broken 33 42 Could 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) … … 35 44 Could 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) 36 45 DEBUG: Marking /opt/local/lib/petsc/lib/libpetsc.dylib as broken 46 }}} 37 47 38 48 To further investigate the problem, I tried: 39 49 50 {{{ 40 51 otools -L /opt/local/lib/petsc/libpetsc.dylib 52 }}} 41 53 that says this file does not exists: 54 {{{ 42 55 /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 }}} 43 57 44 58 There is no /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_petsc/ directory, indeed. 45 59 46 60 I 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 62 Thank you for the help [[br]] 48 63 Romain 49 64