[Issue 18515] New: freebsd 11 ships with gcc unable to link 32 bit binaries, dmd uses it by default

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 24 04:51:35 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18515

          Issue ID: 18515
           Summary: freebsd 11 ships with gcc unable to link 32 bit
                    binaries, dmd uses it by default
           Product: D
           Version: D2
          Hardware: x86
                OS: FreeBSD
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: braddr at puremagic.com

DMD uses 'gcc' to perform the link step.  On freebsd 11 (and likely other
earlier versions, unexplored), gcc -m32 fails to link, looking at 64 bit
library paths instead.

This combination results in freebsd 11 32 non-functional.  Either 'clang' or
'cc' work just fine.  For the auto-testers, they're currently running with CC
set to cc in their environment.  That's not particularly acceptable an out of
the box experience for users of that platform.

IMHO, DMD needs to use 'cc' by default rather than gcc.  Without having double
checked, I suspect that will work on any relatively modern platform without
causing regressions.

--


More information about the Digitalmars-d-bugs mailing list