[Issue 22] Build fails with macro expansion failures for TARGET_ANDROID

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Sat Oct 27 11:16:33 PDT 2012


http://gdcproject.org/bugzilla/show_bug.cgi?id=22

Johannes Pfau <johannespfau at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |johannespfau at gmail.com
         AssignedTo|ibuclaw at gdcproject.org      |johannespfau at gmail.com

--- Comment #1 from Johannes Pfau <johannespfau at gmail.com> 2012-10-27 18:16:33 UTC ---
A recent change in gcc broke this. Workaround: Use an older gcc snapshot. The
problem: GCC now defines a TARGET_ANDROID itself which clashes with our
TARGET_ANDROID:

-------------------------------------
    * opth-gen.awk (TARGET_* generation): Always generate TARGET_<xxx>
    for Mask options, whether they use Var(...) or not.
-------------------------------------

We can probably use that TARGET_ANDROID macro and throw away our
implementation. Can you test if whether it works if you put the calls to
TARGET_ANDROID in parens? So in d-spec.c:59:
#if TARGET_WINDOS || TARGET_OSX || (TARGET_ANDROID)

and d-spec.c:488:22:
#if TARGET_LINUX && !(TARGET_ANDROID)

If this does not fix it, it's probably a bug in upstream gcc as the error is in
the TARGET_ANDROID macro definition which is part of gcc.

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.


More information about the D.gnu mailing list