Bug 67098 - Mac OS X SCons build ld: unknown option: -z
Summary: Mac OS X SCons build ld: unknown option: -z
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Mac OS X (All)
: medium blocker
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2013-07-19 18:54 UTC by Vinson Lee
Modified: 2013-07-21 14:40 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2013-07-19 18:54:26 UTC
mesa: 719000bd7d7d227a721ee24ea49a55ab9a972b56 (master)

ld on Mac OS X does not support the -z option.

$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-136
configured to support archs: armv6 armv7 armv7s i386 x86_64
LTO support using: LLVM version 3.2svn, from Apple Clang 4.2 (build 425.0.28)

scons: Building targets ...
  Linking build/darwin-x86_64-debug/gallium/targets/libgl-xlib/libGL.dylib.1.5 ...
ld: unknown option: -z


719000bd7d7d227a721ee24ea49a55ab9a972b56 is the first bad commit
commit 719000bd7d7d227a721ee24ea49a55ab9a972b56
Author: José Fonseca <jfonseca@vmware.com>
Date:   Fri Jul 19 13:08:07 2013 +0100

    scons: Disallow undefined symbols in Xlib libGL.so.
    
    It's not the first time that, due to missing build dependencies or
    incomplete commits, we end up with a broken libGL.so that's missing
    symbols, causing all tests to fail catastrophically.
    
    Instead try to catch this sort of issues earlier.

:040000 040000 9c51c6ec1425dbd39ddf86111d1c2c36f9491249 37839f87c70f488b26ee1e014b44ac02ac48dc52 M	src
Comment 1 Jose Fonseca 2013-07-21 14:40:34 UTC
Should be fixed now with

commit 190312949e8ce2c1dc884d4db5d6a44511666641
Author: José Fonseca <jfonseca@vmware.com>
Date:   Sun Jul 21 09:55:04 2013 +0100

    scons: Don't use -z defs ld option on Mac.
    
    Should fix fdo bug 67098.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.