Porting GCC
Posted: Wed Sep 26, 2018 4:48 pm
Hi!
I'm trying to build gcc, firstly i'm building binutils, but getting an some error, i'm noob in linux, using cygwin.
There is output:
MrLolthe1st@MrLolthe1stPC /cygdrive/e/BOS/GCC/build-binutils
$ ../binutils/configure --target=i686-butterflyos --prefix="$PREFIX" --with-sysroot=os/sysroot --disable-werror
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking target system type... i686-pc-butterflyos
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
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 ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
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... no
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... dlltool
checking for ld... (cached) E:/OS/compilers/MinGW/bin/../lib/gcc/mingw32/5.1.0/../../../../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 i686-butterflyos-cc... no
checking for i686-butterflyos-gcc... no
checking for i686-butterflyos-c++... no
checking for i686-butterflyos-g++... no
checking for i686-butterflyos-cxx... no
checking for i686-butterflyos-gxx... no
checking for i686-butterflyos-gcc... no
checking for i686-butterflyos-gcj... no
checking for i686-butterflyos-gfortran... no
checking for i686-butterflyos-ar... no
checking for i686-butterflyos-as... no
checking for i686-butterflyos-dlltool... no
checking for i686-butterflyos-ld... no
checking for i686-butterflyos-lipo... no
checking for i686-butterflyos-nm... no
checking for i686-butterflyos-objdump... no
checking for i686-butterflyos-ranlib... no
checking for i686-butterflyos-strip... no
checking for i686-butterflyos-windres... no
checking for i686-butterflyos-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 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 objdump... just compiled
checking where to find the target ranlib... 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
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
MrLolthe1st@MrLolthe1stPC /cygdrive/e/BOS/GCC/build-binutils
$ make
MAKE Version 5.2 Copyright (c) 1987, 1998 Inprise Corp.
Error makefile 186: Command syntax error
Error makefile 190: Command syntax error
Fatal makefile 13340: No terminator specified for in-line file operator
I'm assign files to post.
I'm trying to build gcc, firstly i'm building binutils, but getting an some error, i'm noob in linux, using cygwin.
There is output:
MrLolthe1st@MrLolthe1stPC /cygdrive/e/BOS/GCC/build-binutils
$ ../binutils/configure --target=i686-butterflyos --prefix="$PREFIX" --with-sysroot=os/sysroot --disable-werror
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking target system type... i686-pc-butterflyos
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
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 ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
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... no
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... dlltool
checking for ld... (cached) E:/OS/compilers/MinGW/bin/../lib/gcc/mingw32/5.1.0/../../../../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 i686-butterflyos-cc... no
checking for i686-butterflyos-gcc... no
checking for i686-butterflyos-c++... no
checking for i686-butterflyos-g++... no
checking for i686-butterflyos-cxx... no
checking for i686-butterflyos-gxx... no
checking for i686-butterflyos-gcc... no
checking for i686-butterflyos-gcj... no
checking for i686-butterflyos-gfortran... no
checking for i686-butterflyos-ar... no
checking for i686-butterflyos-as... no
checking for i686-butterflyos-dlltool... no
checking for i686-butterflyos-ld... no
checking for i686-butterflyos-lipo... no
checking for i686-butterflyos-nm... no
checking for i686-butterflyos-objdump... no
checking for i686-butterflyos-ranlib... no
checking for i686-butterflyos-strip... no
checking for i686-butterflyos-windres... no
checking for i686-butterflyos-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 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 objdump... just compiled
checking where to find the target ranlib... 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
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
MrLolthe1st@MrLolthe1stPC /cygdrive/e/BOS/GCC/build-binutils
$ make
MAKE Version 5.2 Copyright (c) 1987, 1998 Inprise Corp.
Error makefile 186: Command syntax error
Error makefile 190: Command syntax error
Fatal makefile 13340: No terminator specified for in-line file operator
I'm assign files to post.