Opened 7 years ago

Closed 6 years ago

#53078 closed defect (fixed)

openmpi-llvm fails to configure

Reported by: ksze (Kal Sze) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc:
Port: openmpi-llvm

Description

openmpi-llvm fails at the configure stage.

Somehow it's looking for compilers that don't exist.

Build log attached.

Attachments (1)

main.log (50.8 KB) - added by ksze (Kal Sze) 7 years ago.
Build log

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by ksze (Kal Sze)

Attachment: main.log added

Build log

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: seanfarley removed
Owner: set to seanfarley
Status: newassigned

comment:2 Changed 7 years ago by mf2k (Frank Schima)

This is the error:

:info:configure configure: error: C compiler cannot create executables

This almost always means that you do not have the Xcode command line tools installed.

comment:3 Changed 7 years ago by ksze (Kal Sze)

But I do have the command line tools installed, at least according to App Store.

I have "Command Line Tools (macOS Sierra version 10.12) for Xcode", which I installed as an App Store update on December 14th. Xcode was also updated to 8.2 on the same day.

I have already agreed to the Xcode license with sudo xcodebuild -license since the new Xcode and command line tools were installed.

Last edited 7 years ago by ksze (Kal Sze) (previous) (diff)

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Sounds like you have it setup correctly. Just for completeness, what happens when you type:

xcode-select --install

and

sudo softwareupdate --list

comment:5 Changed 7 years ago by mf2k (Frank Schima)

Nevermind. I see the same error when I try to install it. I too have Xcode 8.2. Maybe their configure script needs to be updated for it. It appears to be looking for:

/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2

But that no longer exists.

comment:6 Changed 7 years ago by ksze (Kal Sze)

$ sudo xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
$ sudo softwareupdate --list
Software Update Tool
Copyright 2002-2015 Apple Inc.

Finding available software
No new software available.

To go back to the error: the configure stage was looking for /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2.

A quick search on Google suggests that llvm-gcc-4.2 is quite outdated. So I don't know why configure was looking for it.

On my system, I have gcc as part of the command line tools, but no llvm-gcc-4.2:

$ /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

And g++ in the same directory is just a symlink to gcc

Last edited 7 years ago by ksze (Kal Sze) (previous) (diff)

comment:7 Changed 7 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven added

comment:8 Changed 6 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven removed

comment:9 Changed 6 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: assignedclosed

In 7f2d22595fb2036f709e72bad88bfc32c09c7a9e/macports-ports:

openmpi: remove dragonegg and llvm subports

The llvm compiler has been blacklisted for a very long time now. Dragonegg
compilers have been broken for years.

Closes: #50766
Closes: #50767
Closes: #53078

Note: See TracTickets for help on using tickets.