Thank you so much for all your time and help on this - I now suspect tar etc commands also do not exist on Windows - I wanted to investigate it a bit more to try and understand this after this error
Code: $ sh name.sh
name.sh: line 4: tar: command not found
name.sh: line 5: tar: command not found
name.sh: line 7: ../binutils-2.*/configure: No such file or directory
but decided to see if 7zip can extract the tar file and it did so I ended up with folders
Code: C:\msys64\home\Anna\binutils-2.26
C:\msys64\home\Anna\gcc-5.3.0
and then even deleted tar files to save space. I gaveCode: $ sh name.sh
a couple of more tries and received errors like
Code: mkdir: cannot create directory ‘build-binutils’: File exists
andCode: name.sh: line 7: ../binutils-2.*/configure: No such file or directory
but commenting out all the top lines one by one with # eventually leaving only line starting at export command helped to move it along massively and got me to the following point:
Code: $ sh name.sh
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
checking target system type... sh3eb-unknown-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... no, using cp -p
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2
checking for objdir... .libs
checking for compatible ISL... yes
checking for default BUILD_CONFIG...
checking for --enable-vtable-verify... no
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for bison... no
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... no
/home/Anna/binutils-2.26/missing: line 81: makeinfo: command not found
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... dlltool
checking for ld... (cached) C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... windres
checking for windmc... windmc
checking for objcopy... objcopy
checking for objdump... objdump
checking for readelf... readelf
checking for sh3eb-elf-cc... no
checking for sh3eb-elf-gcc... no
checking for sh3eb-elf-c++... no
checking for sh3eb-elf-g++... no
checking for sh3eb-elf-cxx... no
checking for sh3eb-elf-gxx... no
checking for sh3eb-elf-gcc... no
checking for sh3eb-elf-gcj... no
checking for sh3eb-elf-gfortran... no
checking for sh3eb-elf-gccgo... no
checking for sh3eb-elf-ar... no
checking for sh3eb-elf-as... no
checking for sh3eb-elf-dlltool... no
checking for sh3eb-elf-ld... no
checking for sh3eb-elf-lipo... no
checking for sh3eb-elf-nm... no
checking for sh3eb-elf-objcopy... no
checking for sh3eb-elf-objdump... no
checking for sh3eb-elf-ranlib... no
checking for sh3eb-elf-readelf... no
checking for sh3eb-elf-strip... no
checking for sh3eb-elf-windres... no
checking for sh3eb-elf-windmc... no
checking where to find the target ar... just compiled
checking where to find the target as... just compiled
checking where to find the target cc... pre-installed
checking where to find the target c++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... just compiled
checking where to find the target gcc... pre-installed
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target gccgo... pre-installed
checking where to find the target ld... just compiled
checking where to find the target lipo... pre-installed
checking where to find the target nm... just compiled
checking where to find the target objcopy... just compiled
checking where to find the target objdump... just compiled
checking where to find the target ranlib... just compiled
checking where to find the target readelf... just compiled
checking where to find the target strip... just compiled
checking where to find the target windres... just compiled
checking where to find the target windmc... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
make[1]: Entering directory '/home/Anna/build-binutils'
mkdir -p -- ./libiberty
Configuring in ./libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... /home/Anna/binutils-2.26/missing makeinfo --split-size=5000000
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... perl
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
checking for x86_64-pc-mingw64-ar... ar
checking for x86_64-pc-mingw64-ranlib... ranlib
checking whether to install libiberty headers and static library... no
configure: target_header_dir =
checking for x86_64-pc-mingw64-gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether gcc supports -W... yes
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wc++-compat... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -pedantic ... yes
checking whether gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... no
checking for sys/stat.h... (cached) yes
checking for sys/mman.h... no
checking for fcntl.h... yes
checking for alloca.h... no
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... no
checking for sys/systemcfg.h... no
checking for stdint.h... (cached) yes
checking for stdio_ext.h... no
checking for process.h... yes
checking for sys/prctl.h... no
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking size of int... 4
checking size of long... 4
checking size of size_t... 8
checking for long long... yes
checking size of long long... 8
checking for a 64-bit type... uint64_t
checking for intptr_t... yes
checking for uintptr_t... yes
checking for ssize_t... yes
checking for pid_t... yes
checking for library containing strerror... none required
checking for asprintf... yes
checking for atexit... yes
checking for basename... yes
checking for bcmp... no
checking for bcopy... no
checking for bsearch... yes
checking for bzero... no
checking for calloc... yes
checking for clock... yes
checking for ffs... no
checking for getcwd... yes
checking for getpagesize... yes
checking for gettimeofday... yes
checking for index... no
checking for insque... no
checking for memchr... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmem... no
checking for memmove... yes
checking for mempcpy... yes
checking for memset... yes
checking for mkstemps... no
checking for putenv... yes
checking for random... no
checking for rename... yes
checking for rindex... no
checking for setenv... no
checking for snprintf... yes
checking for sigsetmask... no
checking for stpcpy... no
checking for stpncpy... no
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strndup... no
checking for strnlen... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for strtoll... yes
checking for strtoull... yes
checking for strverscmp... no
checking for tmpnam... yes
checking for vasprintf... yes
checking for vfprintf... yes
checking for vprintf... yes
checking for vsnprintf... yes
checking for vsprintf... yes
checking for waitpid... no
checking for setproctitle... no
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... -1
checking for vfork.h... no
checking for fork... no
checking for vfork... no
checking for _doprnt... no
checking for sys_errlist... no
checking for sys_nerr... no
checking for sys_siglist... no
checking for external symbol _system_configuration... no
checking for __fsetlocking... no
checking for canonicalize_file_name... no
checking for dup3... no
checking for getrlimit... no
checking for getrusage... no
checking for getsysinfo... no
checking for gettimeofday... (cached) yes
checking for on_exit... no
checking for psignal... no
checking for pstat_getdynamic... no
checking for pstat_getstatic... no
checking for realpath... no
checking for setrlimit... no
checking for sbrk... no
checking for spawnve... yes
checking for spawnvpe... yes
checking for strerror... yes
checking for strsignal... no
checking for sysconf... no
checking for sysctl... no
checking for sysmp... no
checking for table... no
checking for times... no
checking for wait3... no
checking for wait4... no
checking whether basename is declared... no
checking whether ffs is declared... no
checking whether asprintf is declared... yes
checking whether vasprintf is declared... yes
checking whether snprintf is declared... yes
checking whether vsnprintf is declared... yes
checking whether calloc is declared... yes
checking whether getenv is declared... yes
checking whether getopt is declared... yes
checking whether malloc is declared... yes
checking whether realloc is declared... yes
checking whether sbrk is declared... no
checking whether strtol is declared... yes
checking whether strtoul is declared... yes
checking whether strtoll is declared... yes
checking whether strtoull is declared... yes
checking whether strverscmp is declared... no
checking whether canonicalize_file_name must be declared... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... no
checking for working strncmp... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
Makefile:7992: recipe for target 'configure-libiberty' failed
make[1]: *** [configure-libiberty] Error 1
Makefile:852: recipe for target 'all' failed
make: *** [all] Interrupt
So because of this Code: Makefile:7992: recipe for target 'configure-libiberty' failed
make[1]: *** [configure-libiberty] Error 1
Makefile:852: recipe for target 'all' failed
make: *** [all] Interrupt
I'm not sure if this step worked basically.
Git step works.
But the one after complains about prizm-gcc:
Code: ~/libfxcg
$ mingw32-make
make -C libfxcg
make[1]: Entering directory '/home/Anna/libfxcg/libfxcg'
prizm-gcc -c -ffunction-sections -fdata-sections -Os -Lr -I../include -mhitachi -m4a-nofpu -flto -std=c99 -Wall -Wextra syscalls/Bdisp_GetPoint_VRAM.S -o syscalls/Bdisp_GetPoint_VRAM.o
make[1]: prizm-gcc: Command not found
Makefile:21: recipe for target 'syscalls/Bdisp_GetPoint_VRAM.o' failed
make[1]: *** [syscalls/Bdisp_GetPoint_VRAM.o] Error 127
make[1]: Leaving directory '/home/Anna/libfxcg/libfxcg'
Makefile:2: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Many thanks for looking at this again and hope you can help me to fix it. Please let me know if I need to provide any more info. Kind regards