Port-arm archive

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

Re: netbsd-9 cross-buidl tools fail



On Sun, 10 Apr 2022 16:56:39 +1200, Lloyd Parkes wrote:
> A quick fix might be to simply delete the line defining yylloc in 
> external/gpl2/dtc/dist/dtc-lexer.l (line 43 in my copy).

Sounds nice, but results in the much longer

[...]
#   compile  dtc/dtc-lexer.lo
cc -O  
-I/u/sources/netbsd-9/src/tools/dtc/../../sys/external/bsd/libfdt/dist 
-I/u/netbsd-builds/9/evbarm/tools/include 
-I/u/netbsd-builds/9/evbarm/tools/include/nbinclude 
-I/u/netbsd-builds/9/evbarm/tools/include/compat 
-I/u/sources/netbsd-9/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 
-D_FILE_OFFSET_BITS=64 
-I/u/sources/netbsd-9/src/tools/dtc/../../external/gpl2/dtc/usr.bin/dtc 
-I/u/sources/netbsd-9/src/external/gpl2/dtc/dist 
-I/u/sources/netbsd-9/src/sys/external/bsd/libfdt/dist -c -o 
dtc-lexer.lo.o    dtc-lexer.c
dtc-lexer.c: In function 'yylex':
/u/sources/netbsd-9/src/external/gpl2/dtc/dist/dtc-lexer.l:49:18: 
error: 'yylloc' undeclared (first use in this function); did you mean 
'yyalloc'?
   49 |   srcpos_update(&yylloc, yytext, yyleng); \
      |                  ^~~~~~
dtc-lexer.c:841:2: note: in expansion of macro 'YY_USER_ACTION'
  841 | #define YY_RULE_SETUP \
      |  ^~~~~~~~~~~~~~
dtc-lexer.c:936:1: note: in expansion of macro 'YY_RULE_SETUP'
  936 |    goto yy_find_action;
      | ^  ~~~~~~~~~~
/u/sources/netbsd-9/src/external/gpl2/dtc/dist/dtc-lexer.l:49:18: note: 
each undeclared identifier is reported only once for each function it 
appears in
   49 |   srcpos_update(&yylloc, yytext, yyleng); \
      |                  ^~~~~~
dtc-lexer.c:841:2: note: in expansion of macro 'YY_USER_ACTION'
  841 | #define YY_RULE_SETUP \
      |  ^~~~~~~~~~~~~~
dtc-lexer.c:936:1: note: in expansion of macro 'YY_RULE_SETUP'
  936 |    goto yy_find_action;
      | ^  ~~~~~~~~~~
/u/sources/netbsd-9/src/external/gpl2/dtc/dist/dtc-lexer.l: In function 
'lexical_error':
/u/sources/netbsd-9/src/external/gpl2/dtc/dist/dtc-lexer.l:304:17: 
error: 'yylloc' undeclared (first use in this function); did you mean 
'yyalloc'?
  304 |  srcpos_verror(&yylloc, "Lexical error", fmt, ap);
      |                 ^~~~~~
      |                 yyalloc

*** Failed target:  dtc-lexer.lo
*** Failed command: cc -O 
-I/u/sources/netbsd-9/src/tools/dtc/../../sys/external/bsd/libfdt/dist 
-I/u/netbsd-builds/9/evbarm/tools/include 
-I/u/netbsd-builds/9/evbarm/tools/include/nbinclude 
-I/u/netbsd-builds/9/evbarm/tools/include/compat 
-I/u/sources/netbsd-9/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 
-D_FILE_OFFSET_BITS=64 
-I/u/sources/netbsd-9/src/tools/dtc/../../external/gpl2/dtc/usr.bin/dtc 
-I/u/sources/netbsd-9/src/external/gpl2/dtc/dist 
-I/u/sources/netbsd-9/src/sys/external/bsd/libfdt/dist -c -o 
dtc-lexer.lo.o dtc-lexer.c
*** Error code 1

Since this is about netbsd-9, should I send-pr?

Cheerio,
Hauke

-- 
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email            Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-21344


Home | Main Index | Thread Index | Old Index