Opened 6 years ago

Closed 6 years ago

#56919 closed defect (fixed)

OpenBLAS: as: I don't understand 'm' flag!

Reported by: shaonghosh (Shaon Ghosh) Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: michaelld (Michael Dickens), jjstickel (Jonathan Stickel)
Port: OpenBLAS

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi,

The MacPorts upgrading is failing for OpenBLAS with the following error message:

:info:build FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!

I raised this issue in the github page of OpenBlas: https://github.com/xianyi/OpenBLAS/issues/1716#issuecomment-410548962 They suggested me that this is a MacPorts issue with putting the PATH variable containing /opt/local/bin ahead of /usr/bin. I also verified elsewhere where they suggest the same reason. I tried usual things that MacPorts suggest, uninstalling the port and reinstalling etc, which did not work. I also tried to manually set the path and reinstall, that did not work either.

Change History (4)

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: michaelld added
Description: modified (diff)
Keywords: OpenBLAS removed
Owner: set to NicosPavlov
Port: OpenBLAS added
Status: newassigned
Summary: OpenBLAS fails at build in MacPortsOpenBLAS: as: I don't understand 'm' flag!

It sounds like you have the cctools port (the one that provides as) installed with one of the +llvm variants (which used to be the default on all systems). You can verify whether that is so by looking at the output of:

port installed cctools

You didn't mention what version of Xcode or macOS you have, but if you're using Xcode 9 or later, please reinstall the cctools port with the +xcode variant instead, which is as of 12 days ago the new default when Xcode 9 or later is used (but unfortunately there isn't a mechanism in MacPorts that allows us to make that new default available to any users who had already installed the port before). To do that, run:

sudo port selfupdate
sudo port install cctools +xcode

comment:2 Changed 6 years ago by shaonghosh (Shaon Ghosh)

Thank you very much. Reinstalling cctools with +xcode worked.

comment:3 Changed 6 years ago by jjstickel (Jonathan Stickel)

Cc: jjstickel added

comment:4 Changed 6 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed

Thanks for the prompt feedback. Closing ticket as fixed.

Note: See TracTickets for help on using tickets.