Thread overview
[Issue 1755] New: linker problems in mac os x 10.5
Dec 31, 2007
d-bugmail
Aug 14, 2008
d-bugmail
Aug 14, 2008
d-bugmail
Mar 12, 2012
Walter Bright
Mar 12, 2012
Iain Buclaw
December 31, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1755

           Summary: linker problems in mac os x 10.5
           Product: DGCC aka GDC
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: csantander619@gmail.com


Using rev 198, which includes support for Mac OS X 10.5, there are linker problems with almost all non-trivial programs. For example, compiling this (same code as issue #1145):
---
ulong foo ()
{
        return cast(ulong) (cast(ulong) 1176576512 + cast(float) -2);
}

void main ()
{
        assert(foo()==1176576510);
}
---
Produces:
$ gdmd test.d
collect2: ld terminated with signal 10 [Bus error]

More info:

$ gdc -v
Using built-in specs.
Target: powerpc-apple-darwin9.1.0
Configured with: ../gcc-5465/configure --disable-multilib --disable-nls
--enable-languages=c,d
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465) (gdc 0.24, using dmd 1.022)

$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-77


-- 

August 14, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1755





------- Comment #1 from afb@algonet.se  2008-08-14 03:16 -------
Created an attachment (id=268)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=268&action=view)
ld64-77.1-powerpc_nosection.patch

This issue was worked around with a Leopard-specific package, in gdcmac.


-- 

August 14, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1755





------- Comment #2 from afb@algonet.se  2008-08-14 03:19 -------
Patch was for http://www.opensource.apple.com/darwinsource/tarballs/apsl/ld64-77.1.tar.gz


-- 

March 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1755


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2012-03-12 02:52:30 PDT ---
Is this still an issue?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1755


Iain Buclaw <ibuclaw@ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


--- Comment #4 from Iain Buclaw <ibuclaw@ubuntu.com> 2012-03-12 08:05:56 PDT ---
Raised against a now unsupported version of gcc for the current gdc development - for mac osx, you now have to get the source from macports rather than using the old apple-gcc.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------