Opened 13 years ago

Closed 13 years ago

#30825 closed defect (fixed)

mpich2 @1.4 Build error - build failure

Reported by: fultz@… Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: mpich2

Description

While installing mpich2 I get the following error:
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for mpich2 is at: /o/l/v/m/logs/_o_l_v_m_s_rsync.macports.org_release_ports_science_mpich2/mpich2/main.log
Error: Status 1 encountered during processing.

The log file states:
:info:build ( cd examples && make )
:info:build make[2]: Entering directory `/o/l/v/m/b/_o_l_v_m_s_rsync.macports.org_release_ports_science_ mpich2/mpich2/work/mpich2-1.4/examples'
:info:build ../bin/mpicc -o cpi cpi.o -lm
:info:build Undefined symbols:
:info:build "_lam_mpi_sum", referenced from:
:info:build _main in cpi.o
:info:build "_lam_mpi_int", referenced from:
:info:build _main in cpi.o
:info:build "_lam_mpi_double", referenced from:
:info:build _main in cpi.o
:info:build "_lam_mpi_comm_world", referenced from:
:info:build _main in cpi.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make[2]: * [cpi] Error 1
:info:build make[2]: Leaving directory `/o/l/v/m/b/_o_l_v_m_s_rsync.macports.org_release_ports_science_mpich2/mpich2/work/mpich2-1.4/examples'
:info:build make[1]:
* [all-postamble] Error 2
:info:build make[1]: Leaving directory `/o/l/v/m/b/_o_l_v_m_sources_rsync.macports.org_release_ports_science_mpich2/mpich2/work/mpich2-1.4'

Attachments (1)

main.log (123.0 KB) - added by fultz@… 13 years ago.
main.log file from mpich2 1.4 build

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to eborisch@…
Port: mpich2 added

Please remember to fill in the Port field and cc the maintainer. Note that WikiFormatting allows block quoting preformatted text with triple braces, e.g.:

{{{
my text
}}}

comment:2 Changed 13 years ago by eborisch (Eric A. Borisch)

Could you attach the log?

It looks like you have LAM/MPI installed and it's grabbing that during the compile.. Do you have lammpi installed? If so, try deactivating lammpi and then clean/build mpich2. If that fixes it I'll mark the conflict in the portfile.

Changed 13 years ago by fultz@…

Attachment: main.log added

main.log file from mpich2 1.4 build

comment:3 Changed 13 years ago by eborisch (Eric A. Borisch)

That log is from re-issuing the build, but no matter -- do you have LAM/MPI installed? I can recreate the issue with lammpi installed, so I'm assuming you have it. Please try deactivating lammpi and clean/build mpich2.

comment:4 in reply to:  3 Changed 13 years ago by fultz@…

That indeed did work. Thanks a lot!

comment:5 Changed 13 years ago by eborisch (Eric A. Borisch)

Resolution: fixed
Status: newclosed

Added compile- and build-time checks for conflicts with [82646:82653/trunk/dports/science/mpich2/Portfile].

Note: See TracTickets for help on using tickets.