Skip to content

freebsd 11 ships with gcc unable to link 32 bit binaries, dmd uses it by default #4507

Open
@dlangBugzillaToGithub

Description

@dlangBugzillaToGithub

Brad Roberts reported this on 2018-02-24T04:51:35Z

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

CC List

  • Walter Bright
  • Jonathan M Davis

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions