www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 22] New: Build fails with macro expansion failures for

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

             Bug #: 22
           Summary: Build fails with macro expansion failures for
                    TARGET_ANDROID
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: lt.infiltrator gmail.com


Error:

In file included from ./tm.h:19:0,
                 from ../../gcc-4.8-20121021/gcc/d/d-spec.c:22:
./options.h:3299:36: error: token "." is not valid in preprocessor expressions
 #define flag_android global_options.x_flag_android
                                    ^
./options.h:4012:26: note: in expansion of macro 'flag_android'
 #define TARGET_ANDROID ((flag_android & OPTION_MASK_ANDROID) != 0)
                          ^
../../gcc-4.8-20121021/gcc/d/d-spec.c:59:36: note: in expansion of macro
'TARGET_ANDROID'
 #if TARGET_WINDOS || TARGET_OSX || TARGET_ANDROID
                                    ^
./options.h:3299:36: error: token "." is not valid in preprocessor expressions
 #define flag_android global_options.x_flag_android
                                    ^
./options.h:4012:26: note: in expansion of macro 'flag_android'
 #define TARGET_ANDROID ((flag_android & OPTION_MASK_ANDROID) != 0)
                          ^
../../gcc-4.8-20121021/gcc/d/d-spec.c:488:22: note: in expansion of macro
'TARGET_ANDROID'
 #if TARGET_LINUX && !TARGET_ANDROID
                      ^


Workaround for me is to just hack d-spec.c and remove those two macros; but
that obviously wouldn't work if you're actually targetting android.

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