www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3502] New: Fix for dropped Mac OS X 10.5

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502

           Summary: Fix for dropped Mac OS X 10.5
           Product: D
           Version: future
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: doob me.com



Created an attachment (id=496)
Fix for dropped Mac OS X 10.5

The attached path fixes the dropped Mac OS X 10.5 support as far as I can see.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 13 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502


Walter Bright <bugzilla digitalmars.com> changed:

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



15:59:40 PST ---
I don't think the changes to machobj.c are necessary. Did you try it without
them?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 13 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502




Yes I tried, it doesn't work, bus error.

If I build the compiler with this patch on 10.5 and build a binary on 10.5 it
runs on 10.5 and 10.6. If I use the same compiler and build a binary on 10.6 it
runs on 10.6 but not on 10.5. Maybe not perfect but at least it's better.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 14 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502




15:28:12 PST ---
I installed the 10.4 sdk from the OSX 10.6 sdk. Unfortunately, now the .4u sdk
seems to be missing stdarg.h (it was there with 10.5's version of the .4u sdk).
I changed it to the .5 sdk, and now it builds.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 02 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502


Jacob Carlborg <doob me.com> changed:

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



I'm closing this one now, it seems to work, don't know what I did the first
time

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 04 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502




00:47:53 PST ---
Fixed dmd 1.053 and 2.037

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 06 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502


Martin Nowak <code dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code dawg.eu



Why do we check for the OS version to workaround linker bugs?
If there really is no other way we should at least check the
linker/gcc-toolchain version.

If I understood the changes correctly then the "10.6" linker segfaults when
linking empty segments, right?
What's the issue with 10.5?

If I use the same compiler and build a binary on 10.6 it
runs on 10.6 but not on 10.5. Maybe not perfect but at least it's better. What has happened here? Isn't all of this completely unnecessary now that we use onAddImage/getSection? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502





 Why do we check for the OS version to workaround linker bugs?
 If there really is no other way we should at least check the
 linker/gcc-toolchain version.
How would you do that during runtime?
 If I understood the changes correctly then the "10.6" linker segfaults when
 linking empty segments, right?
 What's the issue with 10.5?
Yes, I think so. The changes to fix 10.6 broke the 10.5 support. I just added back the code that worked in 10.5, depending on what version the compiler is running.
If I use the same compiler and build a binary on 10.6 it
runs on 10.6 but not on 10.5. Maybe not perfect but at least it's better. What has happened here? Isn't all of this completely unnecessary now that we use onAddImage/getSection?
I don't know, maybe. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502


Martin Nowak <code dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |



On OSX 10.5.2 the XCode3.0 linker (ld64-77) still crashes when handling
debug_line sections with an empty line table because it calculates the wrong
minimal section length.
This bug is still present on ld64-134.9 but they "fixed" the symptom by adding
a NULL check in ld64-87.

----
http://www.opensource.apple.com/source/ld64/ld64-97.2/ChangeLog
----
2008-07-18     Nick Kledzik    <kledzik apple.com>

    * src/MachOReaderRelocatable.hpp: don't crash if debug_line section has no
line table
----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502




Created an attachment (id=1196)
ld64-77 patch

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502


Martin Nowak <code dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------

        is obsolete|                            |



Created an attachment (id=1197)
ld64-77 patch

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 28 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3502


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED



22:43:04 PST ---
https://github.com/D-Programming-Language/dmd/pull/1701

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