Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 May 2020 17:23:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 246288] lang/gcc9: Fails to define __ILP32__ when building 32-bit targets
Message-ID:  <bug-246288-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246288

            Bug ID: 246288
           Summary: lang/gcc9: Fails to define __ILP32__ when building
                    32-bit targets
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gerald@FreeBSD.org
          Reporter: cem@freebsd.org
             Flags: maintainer-feedback?(gerald@FreeBSD.org)
          Assignee: gerald@FreeBSD.org

Per arch(7), __ILP32__ is canonical on our 32-bit platforms and __LP64__ on=
 our
64-bit platforms.

GCC9 correctly defines __LP64__ on amd64 native builds.

However, in '-m32' mode, it does not define either constant.  This is
incorrect.

As a workaround (for other people encountering the same issue), __SIZEOF_LO=
NG__
(4 or 8) is defined in both modes, in both Clang and GCC, and can be used f=
or a
similar purpose.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246288-7788>