Opened 12 years ago

Closed 11 years ago

#39089 closed defect (fixed)

openmpi @1.7.1: Cannot determine global symbol label prefix during configure

Reported by: petrrr Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard Cc: jdgleeson, larryv (Lawrence Velázquez)
Port: openmpi

Description (last modified by larryv (Lawrence Velázquez))

The updated port fails to configure on an Mac OS X 10.5.8 system.

The respective main.log and config.log attached.

Attachments (3)

openmpi+gcc47.main.log (53.4 KB) - added by petrrr 12 years ago.
The main.log file
openmpi+gcc47.config.log (299.0 KB) - added by petrrr 12 years ago.
The config.log from the work/build directory
Portfile.diff (294 bytes) - added by jdgleeson 12 years ago.

Download all attachments as: .zip

Change History (12)

Changed 12 years ago by petrrr

Attachment: openmpi+gcc47.main.log added

The main.log file

Changed 12 years ago by petrrr

Attachment: openmpi+gcc47.config.log added

The config.log from the work/build directory

comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Summary: openmpi @1.7.1 fails to configureopenmpi @1.7.1: Cannot determine global symbol label prefix during configure

Thanks. In the future, please Cc relevant port maintainers.

comment:2 Changed 12 years ago by jdgleeson

Cc: jdgleeson@… added

Cc Me!

comment:3 Changed 12 years ago by jdgleeson

Fixes to this problem were discussed here: http://www.open-mpi.org/community/lists/devel/2011/01/8923.php

Either add -xassembler for Apple gcc-4.0, or use Apple gcc-4.2:

The assembler code...

$ cat conftest.s
.text
# _gsym_test_func
.globl _gsym_test_func
_gsym_test_func:
# _gsym_test_func

Failure during configuration...

$ /usr/bin/gcc-4.0 -std=gnu99  -DNDEBUG -pipe -O2 -arch ppc -finline-functions -fno-strict-aliasing -c conftest.s
conftest.s:2:3: error: invalid preprocessing directive #_gsym_test_func
conftest.s:5:3: error: invalid preprocessing directive #_gsym_test_func

gcc-4.0 with -xassembler produces no output (the desired result)...

$ /usr/bin/gcc-4.0 -std=gnu99  -DNDEBUG -pipe -O2 -arch ppc -finline-functions -fno-strict-aliasing -xassembler -c conftest.s

gcc-4.2 produces no output (the desired result)...

$ /usr/bin/gcc-4.2 -std=gnu99  -DNDEBUG -pipe -O2 -arch ppc -finline-functions -fno-strict-aliasing -c conftest.s

comment:4 Changed 12 years ago by jdgleeson

The attached patch works for me

Changed 12 years ago by jdgleeson

Attachment: Portfile.diff added

comment:5 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:6 Changed 12 years ago by larryv (Lawrence Velázquez)

Blacklisting gcc-4.0 is probably easiest.

compiler.blacklist  gcc-4.0

comment:7 Changed 12 years ago by petrrr

Blacklisting worked for me. Should I provide a diff or will the maintainer commit this directly?

comment:8 Changed 11 years ago by petrrr

This problem persists in the updated version 1.7.2. So what about blacklisting gcc-4.0 ?

comment:9 Changed 11 years ago by larryv (Lawrence Velázquez)

Keywords: leopard added
Resolution: fixed
Status: newclosed

Maintainer timeout, done in r108127.

Note: See TracTickets for help on using tickets.