I would suggest to try whether the "Invalid argument" syscall errors go away if you clone the Sage source tree in the Linux file system, for example, in "/sage", instead of a location mounted from the Windows file system (/mnt/g/Maths/sage-9.5/clone/).
On Tuesday, February 15, 2022 at 12:14:30 AM UTC-8 hohoa...@gmail.com wrote: > Hi, > > Thank you so much for your advice. > > I just started afresh with a new clone from github and following the > instructions from https://sagemanifolds.obspm.fr/install_ubuntu.html > > After running './configure', conda was deactivated (twice): > > $ which conda > /home/hph/miniconda3/bin/conda > > $ conda deactivate > $ conda deactivate > > Then: > > $ make ccache > $ MAKE="make -j8" make > > after 10 times of -re-make (with MAKE="make -j8"): > > $ ls -l *.log | wc -l > 152 > > $ ls -l *.log.error | wc -l > 12 > > All the errors from the earlier make's seemed to be fixed eventually in > the later re-make, all except 'scipy-1.7.2' and 'sagelib-9.5' > > Please find attached 'config.log.7z' and 'Error building a wheel for > scipy-1.7.2 - scipy-1.7.2.log.error.7z' (from re-make #5 to #10) and > 'sagelib-9.5.log.error.7z' > > The re-make #10, scipy-1.7.2 failed with: > > *error: Command "gfortran -Wall -g -ffixed-form -fno-second-underscore -g > -O2 -fPIC -fPIC -O3 -funroll-loops > -I/mnt/g/Maths/sage-9.5/clone/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/numpy/core/include > > -Ibuild/src.linux-x86_64-3.8/numpy/distutils/include -c -c > scipy/interpolate/fitpack/curev.f -o > build/temp.linux-x86_64-3.8/scipy/interpolate/fitpack/curev.o" failed with > exit status 1* > > ########### CLIB COMPILER OPTIMIZATION ########### > Platform : > Architecture: x64 > Compiler : gcc > > CPU baseline : > Requested : 'min' > Enabled : SSE SSE2 SSE3 > Flags : -msse -msse2 -msse3 > Extra checks: none > > CPU dispatch : > Requested : 'max -xop -fma4' > Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F > AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL > Generated : none > CCompilerOpt.cache_flush[809] : write cache to path -> > /mnt/g/Maths/sage-9.5/clone/local/var/lib/sage/venv-python3.8/var/tmp/sage/build/scipy-1.7.2/src/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_clib.py > *error: Command "gfortran -Wall -g -ffixed-form -fno-second-underscore > -g -O2 -fPIC -fPIC -O3 -funroll-loops > -I/mnt/g/Maths/sage-9.5/clone/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/numpy/core/include > > -Ibuild/src.linux-x86_64-3.8/numpy/distutils/include -c -c > scipy/interpolate/fitpack/curev.f -o > build/temp.linux-x86_64-3.8/scipy/interpolate/fitpack/curev.o" failed with > exit status 1* > Building wheel for scipy (pyproject.toml): finished with status 'error' > ERROR: Failed building wheel for scipy > Failed to build scipy > ERROR: Failed to build one or more wheels > > ******************************************************************************** > Error building a wheel for scipy-1.7.2 > > ******************************************************************************** > > real 3m25.289s > user 6m14.359s > sys 1m47.406s > > In the re-make #12, 'sagelib-9.5' build failed with: > *error: [Errno 22] Invalid argument: 'sage/rings/power_series_poly.pxd'* > > Discovering Python/Cython source code.... > distributions = [''] > Discovered Python/Cython sources, time: 2.99 seconds. > running build > Generating auto-generated sources > Building interpreters for fast_callable > running build_cython > Enabling Cython debugging support > *error: [Errno 22] Invalid argument: 'sage/rings/power_series_poly.pxd'* > > real 0m17.411s > user 0m4.844s > sys 0m11.797s > > > Regards, > > phiho > > > On Thu, Feb 3, 2022 at 2:36 PM Matthias Koeppe <matthia...@gmail.com> > wrote: > >> It would probably be a good idea to do "make ccache" and then re-attempt >> the build. >> On Thursday, February 3, 2022 at 11:32:32 AM UTC-8 hohoa...@gmail.com >> wrote: >> >>> Hi, >>> >>> Actually this approach was tried a few times before. The report was from >>> a fresh clone and build. >>> >>> 'MAKE="make -j8" make' was just tried again and the re-make ended >>> with these failed packages: >>> >>> <quote> >>> real 13m20.842s >>> user 14m38.391s >>> sys 6m4.781s >>> *************************************************************** >>> Error building Sage. >>> >>> The following package(s) may have failed to build (not necessarily >>> during this run of 'make all-start'): >>> >>> * package: arb-2.19.0.p0 >>> last build time: Feb 3 12:08 >>> log file: >>> /mnt/g/Maths/sage-9.5/clone/logs/pkgs/arb-2.19.0.p0.log >>> >>> * package: pplpy-0.8.6 >>> last build time: Feb 3 12:09 >>> log file: /mnt/g/Maths/sage-9.5/clone/logs/pkgs/pplpy-0.8.6.log >>> >>> * package: sphinx-4.2.0 >>> last build time: Feb 3 12:09 >>> log file: /mnt/g/Maths/sage-9.5/clone/logs/pkgs/sphinx-4.2.0.log >>> >>> * package: numpy-1.21.4 >>> last build time: Feb 3 12:13 >>> log file: /mnt/g/Maths/sage-9.5/clone/logs/pkgs/numpy-1.21.4.log >>> >>> It is safe to delete any log files and build directories, but they >>> contain information that is helpful for debugging build problems. >>> WARNING: If you now run 'make' again, the build directory of the >>> same version of the package will, by default, be deleted. Set the >>> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this. >>> >>> </quote> >>> >>> Please find attached 'config.log.7z' and the logs of failed packages* >>> including numpy-1.21.4*.log2.7z. >>> >>> FWIW, 'sage-9.4' was successfully built (the first time) from the >>> tarball (with 'configure' pre-made, downloaded from github) on this same >>> machine about a week ago. >>> (The tarball for 'sage-9.5' did not go far) >>> >>> numpy-1.21.4 still failed in another re-make >>> >>> Regards, >>> >>> phiho >>> >>> P.S: I will be out of town and will have no access to the Internet (a >>> couple weeks or so), please allow me to catch up later on. >>> >>> >>> On Thu, Feb 3, 2022 at 11:20 AM Matthias Koeppe <matthia...@gmail.com> >>> wrote: >>> >>>> The compilation fails with a failed system call: >>>> >>>> /usr/include/x86_64-linux-gnu/bits/types.h:142:10: fatal error: >>>> /mnt/g/Maths/sage-9.5/clone/local/var/lib/sage/venv-python3.8/include/bits/time64.h: >>>> >>>> Invalid argument >>>> 142 | #include <bits/time64.h> /* Defines __TIME*_T_TYPE macros. */ >>>> | ^~~~~~~~~~~~~~~ >>>> compilation terminated. >>>> >>>> This is likely sporadic and will go away if you just restart "make". >>>> Tracked at https://trac.sagemath.org/ticket/31088 >>>> >>>> >>>> >>>> On Thursday, February 3, 2022 at 1:22:11 AM UTC-8 hohoa...@gmail.com >>>> wrote: >>>> >>>>> Greetings, >>>>> >>>>> The instructions at >>>>> https://sagemanifolds.obspm.fr/install_ubuntu.html were followed. >>>>> >>>>> It is much appreciated if someone would kindly point out what was >>>>> missing in the build process. >>>>> >>>>> Please find attached 'install.log.7z' and 'numpy-1.21.4.log.7z' >>>>> >>>>> Regards, >>>>> >>>>> phiho >>>>> >>>>> P.S: >>>>> $ uname -a >>>>> Linux 4.4.0-17763-Microsoft #2268-Microsoft Thu Oct 07 16:36:00 PST >>>>> 2021 x86_64 x86_64 x86_64 GNU/Linux >>>>> >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "sage-devel" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to sage-devel+...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/sage-devel/461e60bb-5ae8-453c-b332-2bf2b02d6e14n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/sage-devel/461e60bb-5ae8-453c-b332-2bf2b02d6e14n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "sage-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-devel+...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/sage-devel/751fde85-2d70-4fad-9f5a-05114f670b74n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/sage-devel/751fde85-2d70-4fad-9f5a-05114f670b74n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/dc4ccfec-3959-4540-9389-64bb50ab8f4an%40googlegroups.com.