pspdev / newlib

A fork of newlib for the PSP.
GNU General Public License v2.0
8 stars 5 forks source link

[Bug] checking for psp-gcc loops infinte during configure #14

Closed ghost closed 2 months ago

ghost commented 2 months ago

Occurs with #7 applied and not gcc/newlib LTO activation or CPU core count depended.

Running configure in multilib sudir eb
pwd: /usr/src/toolchains/mips/pspdev/pspdev/build/psptoolchain/build/psptoolchain-allegrex/build/newlib/build-psp/psp
checking for psp-gcc... psp-gcc -isystem -EB

top output:

 8696 root      20   0    5.5m   3.9m   0.0   0.0   0:00.02 S  `- /bin/login --                                                                                                                                                                                                                                               
 7623 root      20   0    5.5m   4.2m   0.0   0.0   0:01.33 S      `- -bash                                                                                                                                                                                                                                                   
 2238 root      20   0    5.0m   3.2m   0.0   0.0   0:00.00 S          `- /bin/bash ./toolchain-sudo.sh 003                                                                                                                                                                                                                   
 2240 root      20   0    5.0m   3.3m   0.0   0.0   0:00.01 S              `- /bin/bash ./toolchain.sh 003                                                                                                                                                                                                                    
 2269 root      20   0    5.0m   3.3m   0.0   0.0   0:00.00 S                  `- /bin/bash ../scripts/003-newlib.sh                                                                                                                                                                                                          
 3592 root      20   0   11.1m   5.2m   0.0   0.0   0:00.06 S                      `- make --quiet -j 4 all                                                                                                                                                                                                                   
 3595 root      20   0    5.1m   3.4m   0.0   0.0   0:00.00 S                          `- /bin/sh -c r=`${PWDCMD-pwd}`; export r; \ s=`cd ..; ${PWDCMD-pwd}`; export s; \   make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=psp" "bindir=/usr/local/pspdev/bin" "datadir=/usr/local/pspdev/share" "exec_prefix=+
 3607 root      20   0   11.2m   5.2m   0.0   0.0   0:00.06 S                              `- make DESTDIR= RPATH_ENVVAR=LD_LIBRARY_PATH TARGET_SUBDIR=psp bindir=/usr/local/pspdev/bin datadir=/usr/local/pspdev/share exec_prefix=/usr/local/pspdev includedir=/usr/local/pspdev/include datarootdir=/usr/local/pspdev/shar+
 3611 root      20   0    5.1m   3.5m   0.0   0.0   0:00.00 S                                  `- /bin/sh -c r=`${PWDCMD-pwd}`; export r; \ s=`cd ..; ${PWDCMD-pwd}`; export s; \ echo "Checking multilib configuration for newlib..."; \ /bin/sh ../mkinstalldirs psp/newlib; \ psp-gcc --print-multi-lib > psp/newlib/multi+
 3646 root      20   0    5.6m   4.0m   0.0   0.0   0:00.25 S                                      `- /bin/sh /usr/src/toolchains/mips/psp/pspdev/pspdev/build/psptoolchain/build/psptoolchain-allegrex/build/newlib/newlib/configure --srcdir=../../../newlib --cache-file=./config.cache --with-newlib --enable-multilib --+
 4486 root      20   0    5.0m   3.4m   0.0   0.0   0:00.11 S                                          `- /bin/sh ./config.status                                                                                                                                                                                             
10931 root      20   0    4.9m   3.3m   0.0   0.0   0:00.14 S                                              `- /bin/sh ../../../../newlib/configure --with-multisubdir=eb --with-multisrctop= --srcdir=../../../newlib --cache-file=./config.cache --with-newlib --enable-multilib --with-cross-host=x86_64-pc-linux-gnu --pre+
11183 root      20   0    4.9m   2.1m   0.0   0.0   0:00.00 S                                                  `- /bin/sh ../../../../newlib/configure --with-multisubdir=eb --with-multisrctop= --srcdir=../../../newlib --cache-file=./config.cache --with-newlib --enable-multilib --with-cross-host=x86_64-pc-linux-gnu -+
11184 root      20   0    5.6m   3.0m   0.0   0.0   0:00.00 S                                                      `- psp-gcc -B/usr/src/toolchains/mips/psp/pspdev/pspdev/build/psptoolchain/build/psptoolchain-allegrex/build/newlib/build-psp/psp/eb/newlib/ -isystem /usr/src/toolchains/mips/psp/pspdev/pspdev/build/psp+
11187 root      20   0    4.8m   2.3m   0.0   0.0   0:00.00 S                                                          `- /usr/local/pspdev/libexec/gcc/psp/14.1.0/collect2 -plugin /usr/local/pspdev/libexec/gcc/psp/14.1.0/liblto_plugin.so -plugin-opt=/usr/local/pspdev/libexec/gcc/psp/14.1.0/lto-wrapper -plugin-opt=-f+
11188 root      20   0    5.9m   3.7m  77.7   0.0   6:46.84 R                                                              `- /usr/local/pspdev/lib/gcc/psp/14.1.0/../../../../psp/bin/ld -plugin /usr/local/pspdev/libexec/gcc/psp/14.1.0/liblto_plugin.so -plugin-opt=/usr/local/pspdev/libexec/gcc/psp/14.1.0/lto-wrapper