Bug 1755 – linker problems in mac os x 10.5

Status
RESOLVED
Resolution
WONTFIX
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
PowerPC
OS
Mac OS X
Creation time
2007-12-30T22:42:00Z
Last change time
2015-06-09T01:31:18Z
Keywords
link-failure
Assigned to
ibuclaw
Creator
casantander1

Attachments

IDFilenameSummaryContent-TypeSize
268ld64-77.1-powerpc_nosection.patchld64-77.1-powerpc_nosection.patchtext/plain778

Comments

Comment #0 by casantander1 — 2007-12-30T22:42:37Z
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
Comment #1 by afb — 2008-08-14T03:16:13Z
Created attachment 268 ld64-77.1-powerpc_nosection.patch This issue was worked around with a Leopard-specific package, in gdcmac.
Comment #2 by afb — 2008-08-14T03:19:26Z
Comment #3 by bugzilla — 2012-03-12T02:52:30Z
Is this still an issue?
Comment #4 by ibuclaw — 2012-03-12T08:05:56Z
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.