emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build failure in nsterm.m


From: Alan Third
Subject: Re: Build failure in nsterm.m
Date: Tue, 29 Jun 2021 22:23:01 +0100

On Tue, Jun 29, 2021 at 10:28:42AM +0200, martin rudalics wrote:
> Building master configured as
> 
> "CFLAGS='-O0 -g3 -no-pie -std=gnu99' ../configure --with-gnutls=no 
> --without-pop --without-harfbuzz --with-ns"
> 
> currently fails here with
> 
> ../../src/nsterm.m: In function ‘ns_relocate’:
> ../../src/nsterm.m:514:54: error: stray ‘@’ in program
>    NSString *fixedPath = [NSString pathWithComponents:@[root, original]];
>                                                       ^
> ../../src/nsterm.m:514:60: warning: left-hand operand of comma expression has 
> no effect [-Wunused-value]
>    NSString *fixedPath = [NSString pathWithComponents:@[root, original]];
>                                                             ^
> ../../src/nsterm.m:514:70: error: expected ‘:’ before ‘]’ token
>    NSString *fixedPath = [NSString pathWithComponents:@[root, original]];
>                                                                       ^
>                                                                       :
> 
> Help appreciated, martin

I've pushed a fix. I think this is a shorthand way of writing an ObjC
array that GCC doesn't understand.

I'm using a version of GNUstep built from git and I can no longer
build Emacs with GCC at all, only clang, so these sorts of things slip
through quite easily.

I'm not sure why GCC doesn't work, I'm sure it's not the Emacs code
that's at fault, so I have to assume that the GNUstep devs have given
up waiting for GCC to catch up.
-- 
Alan Third



reply via email to

[Prev in Thread] Current Thread [Next in Thread]