Dear all, I'm trying to get qemu usermode emulation of riscv32 working. I managed to cross-build a linux system, and have it mostly rebuild itself (including gcc 3-phase bootstrap), however, something is broken in bash.
Which may very well be a qemu usermode emulation bug, as I'm told bash works fine in a riscv32 system emulation. Below is the output of the bash testsuite. Any advice on where to start looking for problems would be appreciated. Best, Andreas >>> Test phase: app-shells/bash-5.2_p15-r6 make -j1 check make[1]: Entering directory '/var/tmp/portage/app-shells/bash-5.2_p15-r6/work/bash-5.2/builtins' make[1]: 'pipesize.h' is up to date. make[1]: Leaving directory '/var/tmp/portage/app-shells/bash-5.2_p15-r6/work/bash-5.2/builtins' *********************************************************** * * * GNU bash, version 5.2.15(1)-release (riscv32-unknown-linux-gnu) * * *********************************************************** declare -r SHELLOPTS="braceexpand:hashall:interactive-comments" Testing /var/tmp/portage/app-shells/bash-5.2_p15-r6/work/bash-5.2/bash version: 5.2.15(1)-release versinfo: 5 2 15 1 release riscv32-unknown-linux-gnu HOSTTYPE = riscv32 OSTYPE = linux-gnu MACHTYPE = riscv32-unknown-linux-gnu Any output from any test, unless otherwise noted, indicates a possible anomaly run-alias run-appendop run-arith run-arith-for run-array warning: all of these tests will fail if arrays have not warning: been compiled into the shell warning: the BASH_ARGC and BASH_ARGV tests will fail if debugging support warning: has not been compiled into the shell run-array2 warning: all of these tests will fail if arrays have not warning: been compiled into the shell run-assoc warning: all of these tests will fail if arrays have not warning: been compiled into the shell run-attr run-braces run-builtins warning: some of these tests may fail if process substitution has not warning: been compiled into the shell or if the OS does not provide warning: /dev/fd. 88,89c88,89 < /var/tmp/portage/app-shells/bash-5.2_p15-r6/work/bash-5.2/bash < /var/tmp/portage/app-shells/bash-5.2_p15-r6/work/bash-5.2/bash --- > specialname > -specialname run-case run-casemod run-complete run-comsub run-comsub-eof run-comsub-posix run-cond warning: all of these tests will fail if the conditional command has not warning: been compiled into the shell warning: some of these tests will fail if extended pattern matching has not warning: been compiled into the shell run-coproc run-cprint run-dbg-support run-dbg-support2 run-dirstack run-dollars run-dynvar run-errors run-execscript warning: the text of a system error message may vary between systems and warning: produce diff output. warning: UNIX versions number signals differently. warning: If output differing only in line numbers is produced, please warning: do not consider this a test failure. warning: if the text of the error messages concerning `notthere' or warning: `/tmp/bash-notthere' not being found or `/' being a directory warning: produce diff output, please do not consider this a test failure warning: if diff output differing only in the location of the bash warning: binary appears, please do not consider this a test failure 24d23 < trap -- 'echo USR1' SIGUSR1 25a25 > trap -- 'echo USR1' SIGUSR1 30d29 < trap -- 'echo USR1' SIGUSR1 31a31 > trap -- 'echo USR1' SIGUSR1 47c47 < this is /var/tmp/portage/app-shells/bash-5.2_p15-r6/work/bash-5.2/bash --- > this is ohio-state run-exp-tests run-exportfunc run-extglob run-extglob2 run-extglob3 run-func warning: if you have exported functions defined in your environment, warning: they may show up as diff output. warning: if so, please do not consider this a test failure run-getopts run-glob-test 2,3d1 < glob2.sub: warning: you do not have the zh_HK.big5hkscs locale installed; < glob2.sub: warning: that will cause some of these tests to fail. 9d6 < ./glob2.sub: line 44: warning: setlocale: LC_ALL: cannot change locale (zh_HK.big5hkscs): No such file or directory 11c8 < argv[1] = <AαB> --- > argv[1] = <A�\B> 14,15c11,12 < argv[1] = <aαb> < 0000000 141 316 261 142 --- > argv[1] = <a�\b> > 0000000 141 243 134 142 18,19d14 < ./glob2.sub: line 65: warning: setlocale: LC_ALL: cannot change locale (zh_HK.big5hkscs) < /var/tmp/portage/app-shells/bash-5.2_p15-r6/work/bash-5.2/bash: warning: setlocale: LC_ALL: cannot change locale (zh_HK.big5hkscs) run-globstar run-heredoc warning: UNIX versions number signals and schedule processes differently. warning: If output differing only in line numbers is produced, please warning: do not consider this a test failure. 129c129 < /bin/grep: *.c: No such file or directory --- > grep: *.c: No such file or directory run-herestr run-histexpand warning: all of these tests will fail if history has not been compiled warning: into the shell run-history warning: all of these tests will fail if history has not been compiled warning: into the shell run-ifs run-ifs-posix run-input-test run-intl unicode1.sub: warning: you do not have the fr_FR.ISO8859-1 locale installed; unicode1.sub: that will cause some of these tests to be skipped. unicode1.sub: warning: you do not have the ja_JP.SJIS locale installed; unicode1.sub: that will cause some of these tests to be skipped. 24c24 < Passed all 998 Unicode tests --- > Passed all 1378 Unicode tests run-invert run-iquote run-lastpipe run-mapfile run-more-exp run-nameref warning: some of these tests will fail if arrays have not warning: been compiled into the shell run-new-exp warning: two of these tests will fail if your OS does not support warning: named pipes or the /dev/fd filesystem. If the tests of the warning: process substitution mechanism fail, please do not consider warning: this a test failure warning: if you have exported variables beginning with the string _Q, warning: diff output may be generated. If so, please do not consider warning: this a test failure run-nquote run-nquote1 warning: several of these tests will fail if arrays have not warning: been compiled into the shell. run-nquote2 warning: several of these tests will fail if arrays have not warning: been compiled into the shell. run-nquote3 warning: several of these tests will fail if arrays have not warning: been compiled into the shell. run-nquote4 warning: some of these tests will fail if you do not have UTF-8 warning: locales installed on your system run-nquote5 run-parser run-posix2 run-posixexp 309d308 < ./posixexp.tests: line 98: syntax error: unexpected end of file run-posixexp2 run-posixpat run-posixpipe run-precedence run-printf run-procsub warning: all of these tests will fail if process substitution has not warning: been compiled into the shell or if the OS does not provide warning: FIFOs or /dev/fd. Some tests may fail if the OS does not warning: provide FIFOs. run-quote run-quotearray run-read warning: please do not consider output differing only in the amount of warning: white space to be an error. 47c47 < a --- > abcde 71c71 < 0 --- > 1 74c74 < 1 --- > timeout 2: ok 80c80 < a --- > abcde run-redir warning: the text of a system error message may vary between systems and warning: produce diff output. warning: if the text of an error message concerning `redir1.*' not being warning: found or messages concerning bad file descriptors produce diff warning: output, please do not consider it a test failure run-rhs-exp run-rsh run-set-e run-set-x run-shopt run-strip run-test run-tilde run-tilde2 run-trap warning: UNIX versions number signals and schedule processes differently. warning: If output differing only in line numbers is produced, please warning: do not consider this a test failure. run-type run-varenv warning: some of these tests will fail if arrays have not warning: been compiled into the shell run-vredir warning: the text of a system error message may vary between systems and warning: produce diff output. >>> Completed testing app-shells/bash-5.2_p15-r6 -- Andreas K. Hüttel dilfri...@gentoo.org Gentoo Linux developer (council, toolchain, base-system, perl, libreoffice)
signature.asc
Description: This is a digitally signed message part.