espressif / binutils-esp32ulp

Binutils fork with support for the ESP32 ULP co-processor
GNU General Public License v2.0
46 stars 18 forks source link

esp32s2ulp-parse.y:927:18: error: 'BFD_RELOC_ESP32S2ULP_GOT17M4' undeclared #20

Open trombik opened 3 years ago

trombik commented 3 years ago

the build fails on FreeBSD. the following is an excerpt of the build log. when looking for the BFD_RELOC_ESP32S2ULP_GOT17M4 in the source, cannot find it in other files. my dumb workaround is just removing the part of the file in question, which is obviously not a solution. the part of the file has not been updated much since the initial import. do you have any idea?

gcc10 -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd -DLOCALEDIR="\"/usr/local/binutils-esp32s2ulp/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wwrite-strings -I./../zlib -O2 -pipe  -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-strict-aliasing  -MT atof-ieee.o -MD -MP -MF .deps/atof-ieee.Tpo -c -o atof-ieee.o `test -f 'config/atof-ieee.c' || echo './'`config/atof-ieee.c
mv -f .deps/atof-ieee.Tpo .deps/atof-ieee.Po
/bin/sh ./../ylwrap ./config/esp32s2ulp-parse.y y.tab.c esp32s2ulp-parse.c y.tab.h esp32s2ulp-parse.h -- byacc   -d ;
byacc: w - line 356 of "/wrkdirs/usr/ports/devel/binutils-esp32s2ulp/work/binutils-esp32ulp-2.28.51-esp-20191205/gas/./config/esp32s2ulp-parse.y", the default action for asm_1 assigns an undefined value to $$
byacc: 12 rules never reduced
updating esp32s2ulp-parse.h
gcc10 -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd -DLOCALEDIR="\"/usr/local/binutils-esp32s2ulp/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wwrite-strings -I./../zlib -O2 -pipe  -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-strict-aliasing  -MT esp32s2ulp-parse.o -MD -MP -MF .deps/esp32s2ulp-parse.Tpo -c -o esp32s2ulp-parse.o esp32s2ulp-parse.c
./config/esp32s2ulp-parse.y: In function 'yyparse':
./config/esp32s2ulp-parse.y:927:18: error: 'BFD_RELOC_ESP32S2ULP_GOT17M4' undeclared (first use in this function); did you mean 'BFD_RELOC_ESP32S2ULP_GOT'?
  927 |  { $$ = BFD_RELOC_ESP32S2ULP_GOT17M4; }
      |                  ^~~~~~~~~~~~~~~~~~~~~~      
      |                  BFD_RELOC_ESP32S2ULP_GOT
./config/esp32s2ulp-parse.y:927:18: note: each undeclared identifier is reported only once for each function it appears in
./config/esp32s2ulp-parse.y:929:18: error: 'BFD_RELOC_ESP32S2ULP_FUNCDESC_GOT17M4' undeclared (first use in this function); did you mean 'BFD_RELOC_BFIN_FUNCDESC_GOT17M4'?
  929 |  { $$ = BFD_RELOC_ESP32S2ULP_FUNCDESC_GOT17M4; }
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      
      |                  BFD_RELOC_BFIN_FUNCDESC_GOT17M4
gmake[5]: *** [Makefile:951: esp32s2ulp-parse.o] Error 1

configure arguments:

--target=esp32s2ulp-elf --disable-doc --disable-gdb --disable-libdecnumber --disable-readline --disable-sim --prefix=/usr/local/binutils-esp32s2ulp --mandir=/usr/local/binutils-esp32s2ulp/share/man --disable-nls --disable-werror

other info: