Opened 4 years ago

Closed 4 years ago

#61125 closed defect (worksforme)

mpich-devel-default error: Could not determine a way to link a Fortran test program!

Reported by: LemingVan Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: mpich-devel-default

Description (last modified by kencu (Ken))

Hi,

I can't install mpich-devel-default (for MPI-OM) after I uninstalled it several times (because I need to use openmpi to compile MITgcm, in this way I have to uninstall mpich-devel-default to active openmpi again and again).

I have tried sudo port clean mpich-devel-default" & "sudo port uninstall --follow-dependents mpich-devel-default, but the issue stills exists.

The Error information showed below:

% sudo port install mpich-devel-default
--->  Computing dependencies for mpich-devel-default
--->  Configuring mpich-devel-default
Error: Failed to configure mpich-devel-default, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-devel-default/work/mpich-3.4a2/config.log
Error: Failed to configure mpich-devel-default: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-devel-default/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mpich-devel-default failed

Attachments (2)

config.log (673.2 KB) - added by LemingVan 4 years ago.
main.log (114.4 KB) - added by LemingVan 4 years ago.

Download all attachments as: .zip

Change History (15)

Changed 4 years ago by LemingVan

Attachment: config.log added

Changed 4 years ago by LemingVan

Attachment: main.log added

comment:1 Changed 4 years ago by kencu (Ken)

Description: modified (diff)
Keywords: mpich-devel-default removed
Owner: set to eborisch
Status: newassigned

comment:2 Changed 4 years ago by kencu (Ken)

Summary: mpich-devel-default Configure error - build failurempich-devel-default error: Could not determine a way to link a Fortran test program!

comment:3 Changed 4 years ago by kencu (Ken)

I think it is this:

13176	configure:43856: /opt/local/bin/gfortran-mp-10 -o conftest  -pipe -fallow-argument-mismatch -m64 -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 conftest.f pac_conftest.o  >&5
13177	ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd' for architecture x86_64
13178	collect2: error: ld returned 1 exit status
13179	configure:43856: $? = 1
13180	configure: failed program was:
13181	|
13182	|
13183	|         program main
13184	|         double precision d
13185	|         print *, "hi"
13186	|         end
13187	|
13188	|
13189	configure:43890: /opt/local/bin/gfortran-mp-10 -c  -pipe -fallow-argument-mismatch -m64 conftest.f >&5
13190	configure:43890: $? = 0
13191	configure:43893: mv conftest.o pac_f77conftest.o
13192	configure:43896: $? = 0
13193	configure:43906: /usr/bin/clang -o conftest  -pipe -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64  -O2  -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-devel-default/work/mpich-3.4a2/src/mpl/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-devel-default/work/mpich-3.4a2/src/mpl/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-devel-default/work/mpich-3.4a2/src/openpa/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-devel-default/work/mpich-3.4a2/src/openpa/src -D_REENTRANT -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-devel-default/work/mpich-3.4a2/src/mpi/romio/include -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 conftest.c pac_f77conftest.o   >&5
13194	Undefined symbols for architecture x86_64:
13195	  "__gfortran_set_args", referenced from:
13196	      _main in pac_f77conftest.o
13197	  "__gfortran_set_options", referenced from:
13198	      _main in pac_f77conftest.o
13199	  "__gfortran_st_write", referenced from:
13200	      _MAIN__ in pac_f77conftest.o
13201	  "__gfortran_st_write_done", referenced from:
13202	      _MAIN__ in pac_f77conftest.o
13203	  "__gfortran_transfer_character_write", referenced from:
13204	      _MAIN__ in pac_f77conftest.o
13205	ld: symbol(s) not found for architecture x86_64
13206	clang: error: linker command failed with exit code 1 (use -v to see invocation)

comment:4 Changed 4 years ago by LemingVan

Hi Ken,

I just re-install the gcc10, unfortunately, the issue still exists.

Could you tell me how to fix this issue? It's a bit difficult for me.

comment:5 Changed 4 years ago by kencu (Ken)

please show me the results of:

port -v installed | grep ld64

comment:6 Changed 4 years ago by kencu (Ken)

FYI, on my 10.15 system this is what I have:

port -v installed | grep ld64
  ld64 @3_3+ld64_xcode (active) platform='darwin 19' archs='x86_64' date='2020-08-18T21:47:33-0700'
  ld64-xcode @2_3 (active) platform='darwin 19' archs='x86_64' date='2020-08-18T21:47:32-0700'

comment:7 Changed 4 years ago by kencu (Ken)

It did install for me, btw:

% port -v installed mpich-devel-default
The following ports are currently installed:
  mpich-devel-default @3.4a2_0+gcc10 (active) platform='darwin 19' archs='x86_64' date='2020-09-04T22:46:53-0700'

comment:8 Changed 4 years ago by LemingVan

% port -v installed | grep ld64
  ld64 @3_3 (active) platform='darwin 19' archs='x86_64' date='2020-09-05T09:49:19+0800'
  ld64-latest @450.3_0+llvm90 (active) platform='darwin 19' archs='x86_64' date='2020-09-05T09:49:15+0800'

comment:9 Changed 4 years ago by LemingVan

I try to install openmpi-devel-default, and I get the same issue too.

comment:10 Changed 4 years ago by kencu (Ken)

so the issue here is your version of ld64 is not making the mpich-devel-default port happy. I'm not sure why not, but you will need to do this:

sudo port -f uninstall ld64
sudo port -v install ld64 +ld64_xcode

and then you should see:

 % port -v installed ld64
The following ports are currently installed:
  ld64 @3_3+ld64_xcode (active) platform='darwin 19' archs='x86_64' date='2020-08-18T21:47:33-0700'

and once you see that, you should be in business again.

Last edited 4 years ago by kencu (Ken) (previous) (diff)

comment:11 Changed 4 years ago by LemingVan

Hi Ken,

You are right! The problem is solved, thank you very much.

comment:12 Changed 4 years ago by kencu (Ken)

ld64-xcode is the default for 10.15, so we'll close this as works for me.

comment:13 Changed 4 years ago by kencu (Ken)

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.