This file is a work-around for broken behaviour in libstdc++ on Linux.  The 
errors that you're getting don't make sense though, because they appear to be 
treating __strong as a variable, when it should be something built into the 
compiler.  Please will you confirm which version of clang you're using to 
compile, and the exact compile command line (gmake messages=yes)?

David

On 13 Feb 2014, at 03:51, Евгений Ростовцев <[email protected]> wrote:

> Hello!
> 
> When I build Etoile:
> 
> /usr/src/RPM/BUILD/gnustep-Etoile-0.4.2/Languages/LanguageKit/CodeGen/UglyGNUHack.h:9:5:
> error: 'inline' can only appear on functions
>    inline NSString *__strong *
>    ^
> /usr/src/RPM/BUILD/gnustep-Etoile-0.4.2/Languages/LanguageKit/CodeGen/UglyGNUHack.h:8:5:
> error: extraneous 'template<>' in declaration of variable '__strong'
>    template<>
>    ^~~~~~~~~~
> /usr/src/RPM/BUILD/gnustep-Etoile-0.4.2/Languages/LanguageKit/CodeGen/UglyGNUHack.h:9:30:
> error: expected ';' at end of declaration
>    inline NSString *__strong *
>                             ^
>                             ;
> /usr/src/RPM/BUILD/gnustep-Etoile-0.4.2/Languages/LanguageKit/CodeGen/UglyGNUHack.h:10:36:
> error: expected ')'
>    __addressof(NSString *__strong & __r)
>                                   ^
> /usr/src/RPM/BUILD/gnustep-Etoile-0.4.2/Languages/LanguageKit/CodeGen/UglyGNUHack.h:10:16:
> note: to match this '('
>    __addressof(NSString *__strong & __r)
>               ^
> /usr/src/RPM/BUILD/gnustep-Etoile-0.4.2/Languages/LanguageKit/CodeGen/UglyGNUHack.h:10:5:
> error: C++ requires a type specifier for all declarations
>    __addressof(NSString *__strong & __r)
>    ^
> /usr/src/RPM/BUILD/gnustep-Etoile-0.4.2/Languages/LanguageKit/CodeGen/UglyGNUHack.h:12:15:
> error: use of undeclared identifier '__r'
>      return &__r;
>              ^
> CodeGenModule.mm:367:94: warning: '__bridge_retained' casts have no
> effect when not using ARC [-Warc-bridge-casts-disallowed-in-nonarc]
>                return
> llvm::ConstantExpr::getIntToPtr(llvm::ConstantInt::get(types->intPtrTy,
> (uintptr_t)(__bridge_retained void*)[constant copy]),
> 
>                                          ^~~~~~~~~~~~~~~~~~
> 1 warning and 6 errors generated
> 
> Fixed by hack:
> 
> http://git.altlinux.org/tasks/113993/gears/100/git?p=git;a=commitdiff;h=da50e145c43529114e66f30823c93b59e65071f7
> 
> -- 
> REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
> ALT Linux team
> 
> _______________________________________________
> Etoile-dev mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-dev




-- Sent from my STANTEC-ZEBRA


_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev

Reply via email to