Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#151] Error installing from source on Mac OS X

Date:
2016-01-10 14:58
Priority:
3
State:
Closed
Submitted by:
Bug Submitter (webuser)
Assigned to:
John Reppy (jhr)
Machine Architecture:
x86
Operating System:
MacOS X
Component:
Installer
Resolution:
Fixed
Severity:
Critical
OS Version:
10.9.5
SML/NJ Version:
110.79
Keywords:
installation
URL:
Transcript (of reproduction):
as -arch i386 -mmacosx-version-min=10.6 -o prim.o prim.s FATAL:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/i386/as: I don't understand 'm' flag! make[1]: *** [prim.o] Error 1 make: *** [all] Error 2 config/install.sh: !!! Run-time system build failed for some reason.
Source (for reproduction):
n.a.
Summary:
Error installing from source on Mac OS X

Detailed description
Error when trying to compile from source on Mac OS X 10.9.5 (Mavericks).
Additional comments:
I've managed to get around it by editing the runtime/objs/mk.x86-darwin
file, precisely, I've **removed** the $(SDK) part in this line:

AS = /usr/bin/as -arch i386 $(SDK)

where SDK is defined as:

SDK = -mmacosx-version-min=10.6

All worked well after this small change, but I'm unsure what I might
have broken. My OS X version is quite old (10.9.5 — Mavericks) and I'm a
bit reluctant to upgrade it right now in order to test more recent versions.


Submitted via web form by Ionuț G. Stan <ionut.g.stan@gmail.com>

Comments:

Message  ↓
Date: 2016-08-17 11:46
Sender: John Reppy

Fixed for 110.80 by changing "$(SDK)" argument to "as" command to "$(AS_SDK)"in mk.x86-darwin. We use a command-line definition to the make command (AS_ACCEPTS_SDK=[yes|no]) to select the correct behavior. Note that leaving off the SDK argument for 10.10+ results in a loader warning:

ld: warning: object file (prim.o) was built for newer OSX version (10.11) than being linked (10.6)

which is why we include it for more recent versions of MacOS X.

Date: 2016-01-13 09:15
Sender: Alessandro Bruni

I made a pull request for upgrading the homebrew package to the newer version, and this bug shows up on the same configuration.
Unfortunately I can't help on this bug since I don't have such setup, and it's the continuous integration server that's failing.

I'll keep listening to this thread and make the proper updates on the brew package when the bug is resolved.
Here is a link to the homebrew pull request:
https://github.com/Homebrew/homebrew/pull/47955

Attached Files:

Changes

Field Old Value Date By
ResolutionAccepted As Bug2016-08-17 11:46jhr
status_idOpen2016-08-17 11:46jhr
close_dateNone2016-08-17 11:46jhr
assigned_tonone2016-01-10 15:01jhr
detailsError when trying to compile from source on Mac OS X 10.9.5 (Mavericks). Additional comments: I've managed to get around it by editing the runtime/objs/mk.x86-darwin file, precisely, I've **removed** the $(SDK) part in this line: AS = /usr/bin/as -arch i386 $(SDK) where SDK is defined as: SDK = -mmacosx-version-min=10.6 All worked well after this small change, but I'm unsure what I might have broken. My OS X version is quite old (10.9.5 — Mavericks) and I'm a bit reluctant to upgrade it right now in order to test more recent versions. Submitted via web form by Ionuț G. Stan <ionut.g.stan@gmail.com> 2016-01-10 15:01jhr
ResolutionNone2016-01-10 15:01jhr
Transcript (of reproduction)as -arch i386 -mmacosx-version-min=10.6 -o prim.o prim.s FATAL:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/i386/as: I don't understand 'm' flag! make[1]: *** [prim.o] Error 1 make: *** [all] Error 2 config/install.sh: !!! Run-time system build failed for some reason. 2016-01-10 15:01jhr