Glibc 2.34 cross-compile errors

Amit Raj Sethi Amit.Sethi@synopsys.com
Sun Oct 10 07:27:50 GMT 2021


Thanks Andreas. Your suggestion solved the problem. 

Now I getting another error: 

<cut>/glibc/build/intl/plural.c:69:25: error: static declaration of '__gettextlex' follows non-static declaration
   69 | #define yylex           __gettextlex
      |                         ^~~~~~~~~~~~
plural.y:57:12: note: in expansion of macro 'yylex'
   57 | static int yylex (YYSTYPE *lval, struct parse_args *arg);
      |            ^~~~~
<cut>/glibc/build/intl/plural.c:203:5: note: previous declaration of '__gettextlex' was here
  203 | int __gettextlex (YYSTYPE *yylvalp, struct parse_args *arg);
      |     ^~~~~~~~~~~~
<cut>/glibc/build/intl/plural.c:70:25: error: static declaration of '__gettexterror' follows non-static declaration
   70 | #define yyerror         __gettexterror
      |                         ^~~~~~~~~~~~~~
plural.y:58:13: note: in expansion of macro 'yyerror'
   58 | static void yyerror (struct parse_args *arg, const char *str);
      |             ^~~~~~~
<cut>/glibc/build/intl/plural.c:200:6: note: previous declaration of '__gettexterror' was here
  200 | void __gettexterror (struct parse_args *arg, const char *msg);
      |      ^~~~~~~~~~~~~~

Regards,
Amit.


-----Original Message-----
From: Andreas Schwab <schwab@linux-m68k.org> 
Sent: 10 October 2021 12:47 PM
To: Amit Raj Sethi via Libc-alpha <libc-alpha@sourceware.org>
Cc: Amit Raj Sethi <asethi@synopsys.com>
Subject: Re: Glibc 2.34 cross-compile errors

On Okt 10 2021, Amit Raj Sethi via Libc-alpha wrote:

> CC=gcc
> CXX=g++

You need to set these to the cross compiler.

Andreas.

--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1 "And now for something completely different."


More information about the Libc-alpha mailing list