<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 9, 2019, 12:40 PM Jiri Gaisler <<a href="mailto:jiri@gaisler.se">jiri@gaisler.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I get this error for psxfenv01 with the latest RTEMS and RSB build:<br>
<br>
riscv-rtems5-gcc -DHAVE_CONFIG_H -I.<br>
-I/home/jiri/ibm/src/rtems/rtems/c/src/../../testsuites/psxtests -I.<br>
-I/home/jiri/src/rtems/riscvmp/riscv-rtems5/c/griscv/include<br>
-I/home/jiri/ibm/src/rtems/rtems/cpukit/include<br>
-I/home/jiri/ibm/src/rtems/rtems/cpukit/score/cpu/riscv/include<br>
-I/home/jiri/src/rtems/riscvmp/riscv-rtems5/c/griscv/lib/libbsp/riscv/griscv/include<br>
-I/home/jiri/ibm/src/rtems/rtems/bsps/include<br>
-I/home/jiri/ibm/src/rtems/rtems/bsps/riscv/include<br>
-I/home/jiri/ibm/src/rtems/rtems/bsps/riscv/griscv/include<br>
-DT_FILE_NAME='"init.c"' <br>
-I/home/jiri/ibm/src/rtems/rtems/c/src/../../testsuites/psxtests/../support/include <br>
-march=rv32imafd -mabi=ilp32d -O2 -g -ffunction-sections -fdata-sections<br>
-Wall -Wmissing-prototypes -Wimplicit-function-declaration<br>
-Wstrict-prototypes -Wnested-externs -MT psxfenv01/psxfenv01-init.o -MD<br>
-MP -MF psxfenv01/.deps/psxfenv01-init.Tpo -c -o<br>
psxfenv01/psxfenv01-init.o `test -f 'psxfenv01/init.c' || echo<br>
'/home/jiri/ibm/src/rtems/rtems/c/src/../../testsuites/psxtests/'`psxfenv01/init.c<br>
In file included from /home/jiri/src/rtems/5/riscv-rtems5/include/fenv.h:15,<br>
from<br>
/home/jiri/ibm/src/rtems/rtems/c/src/../../testsuites/psxtests/psxfenv01/init.c:42:<br>
/home/jiri/ibm/src/rtems/rtems/c/src/../../testsuites/psxtests/psxfenv01/init.c:<br>
In function 'Init':<br>
/home/jiri/ibm/src/rtems/rtems/c/src/../../testsuites/psxtests/psxfenv01/init.c:71:18:<br>
error: 'fe_dfl_env_p' undeclared (first use in this function); did you<br>
mean 'fe_dfl_env'?<br>
71 | r = fesetenv(FE_DFL_ENV);<br>
| ^~~~~~~~~~<br>
/home/jiri/ibm/src/rtems/rtems/c/src/../../testsuites/psxtests/psxfenv01/init.c:71:18:<br>
note: each undeclared identifier is reported only once for each function<br>
it appears in<br>
Makefile:10569: recipe for target 'psxfenv01/psxfenv01-init.o' failed<br>
make[5]: *** [psxfenv01/psxfenv01-init.o] Error 1<br>
make[5]: Leaving directory<br>
'/home/jiri/src/rtems/riscvmp/riscv-rtems5/c/griscv/testsuites/psxtests'<br>
Makefile:663: recipe for target 'psxtests' failed<br>
make[4]: *** [psxtests] Error 2<br>
make[4]: Leaving directory<br>
'/home/jiri/src/rtems/riscvmp/riscv-rtems5/c/griscv/testsuites'<br>
Makefile:1222: recipe for target 'testsuites' failed<br>
make[3]: *** [testsuites] Error 2<br>
make[3]: Leaving directory<br>
'/home/jiri/src/rtems/riscvmp/riscv-rtems5/c/griscv'<br>
Makefile:716: recipe for target 'all-recursive' failed<br>
make[2]: *** [all-recursive] Error 1<br>
make[2]: Leaving directory<br>
'/home/jiri/src/rtems/riscvmp/riscv-rtems5/c/griscv'<br>
Makefile:289: recipe for target 'all-recursive' failed<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory '/home/jiri/src/rtems/riscvmp/riscv-rtems5/c'<br>
Makefile:410: recipe for target 'all-recursive' failed<br>
make: *** [all-recursive] Error 1<br>
jiri@office:~/src/rtems/riscvmp$<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I thought I fixed this in the upstream newlib. </div><div dir="auto"><br></div><div dir="auto"><a href="https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=9e06ba1ac310c5a2392bb9d150e4686bbb118d6c">https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=9e06ba1ac310c5a2392bb9d150e4686bbb118d6c</a><br></div><div dir="auto"><br></div><div dir="auto">Either I didn't really fix it or your newlib is a bit old. </div><div dir="auto"><br></div><div dir="auto">Did Sebastian bump 5's newlib recently? I recall a binutils bump.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div></div>