How to include a front end to gcc ?
Greicy.Costa-Marques@imag.fr
Greicy.Costa-Marques@imag.fr
Fri Mar 12 16:41:00 GMT 2010
costam@imag.fr a écrit :
> Hi Andi,
>
> very very little progress... :(
>
> yes, it's true the install tyed to install the file "helo1.exe.exe",
> of course doesn't exit... I change the first line of Make-lang.in
> gcc/hello-world, but it give me:
>
> Jucelia@ACER-C28991BD48 /c/gcc/gcc-build
> $ make install
> make[1]: Entering directory `/c/gcc/gcc-build'
> /bin/sh ./../gcc-4.4.3/mkinstalldirs /usr/local /usr/local
> make[2]: Entering directory `/c/gcc/gcc-build/fixincludes'
> rm -rf /usr/local/libexec/gcc/i686-pc-mingw32/4.4.3/install-tools
> /bin/sh .././../gcc-4.4.3/fixincludes/../mkinstalldirs
> /usr/local/libexec/gcc/i686-pc-mingw32/4.4.3/install-tools
> mkdir -p -- /usr/local/libexec/gcc/i686-pc-mingw32/4.4.3/install-tools
> /bin/sh .././../gcc-4.4.3/fixincludes/../mkinstalldirs
> /usr/local/lib/gcc/i686-pc-mingw32/4.4.3/install-tools/include
> /bin/install -c -m 644 .././../gcc-4.4.3/fixincludes/README-fixinc \
>
> /usr/local/lib/gcc/i686-pc-mingw32/4.4.3/install-tools/include/README
> /bin/install -c fixinc.sh
> /usr/local/libexec/gcc/i686-pc-mingw32/4.4.3/install-tools/fixinc.sh
> /bin/install -c fixincl.exe \
>
> /usr/local/libexec/gcc/i686-pc-mingw32/4.4.3/install-tools/fixincl.exe
> /bin/install -c mkheaders
> /usr/local/libexec/gcc/i686-pc-mingw32/4.4.3/install-tools/mkheaders
> make[2]: Leaving directory `/c/gcc/gcc-build/fixincludes'
> make[2]: Entering directory `/c/gcc/gcc-build/gcc'
> LANGUAGES="hello-world" \
> CONFIG_HEADERS= \
> CONFIG_SHELL="/bin/sh" \
> CONFIG_FILES=Makefile /bin/sh config.status
> config.status: creating Makefile
> config.status: executing default commands
> make[2]: Leaving directory `/c/gcc/gcc-build/gcc'
> make[2]: Entering directory `/c/gcc/gcc-build/gcc'
> TARGET_CPU_DEFAULT="" \
> HEADERS="auto-host.h ansidecl.h config/i386/xm-mingw32.h"
> DEFINES="" \
> /bin/sh .././../gcc-4.4.3/gcc/mkconfig.sh config.h
> config.h is unchanged
> TARGET_CPU_DEFAULT="" \
> HEADERS="options.h config/i386/i386.h config/i386/unix.h
> config/i386/bsd.h config/i386/gas.h config/dbxcoff.h
> config/i386/cygming.h config/i386/mingw32.h defaults.h" DEFINES="" \
> /bin/sh .././../gcc-4.4.3/gcc/mkconfig.sh tm.h
> tm.h is unchanged
> gawk -f .././../gcc-4.4.3/gcc/opt-gather.awk
> .././../gcc-4.4.3/gcc/ada/gcc-interface/lang.opt
> .././../gcc-4.4.3/gcc/fortran/lang.opt
> .././../gcc-4.4.3/gcc/hello-world/lang.opt
> .././../gcc-4.4.3/gcc/java/lang.opt .././../gcc-4.4.3/gcc/c.opt
> .././../gcc-4.4.3/gcc/common.opt
> .././../gcc-4.4.3/gcc/config/i386/i386.opt
> .././../gcc-4.4.3/gcc/config/i386/cygming.opt
> .././../gcc-4.4.3/gcc/config/i386/mingw.opt > tmp-optionlist
> /bin/sh .././../gcc-4.4.3/gcc/../move-if-change tmp-optionlist optionlist
> echo timestamp > s-options
> TARGET_CPU_DEFAULT="" \
> HEADERS="auto-host.h ansidecl.h config/i386/xm-mingw32.h"
> DEFINES="" \
> /bin/sh .././../gcc-4.4.3/gcc/mkconfig.sh bconfig.h
> bconfig.h is unchanged
> /bin/sh .././../gcc-4.4.3/gcc/../move-if-change tmp-gi.list gtyp-input.list
> echo timestamp > s-gtyp-input
> TARGET_CPU_DEFAULT="" \
> HEADERS="config/i386/i386-protos.h tm-preds.h" DEFINES="" \
> /bin/sh .././../gcc-4.4.3/gcc/mkconfig.sh tm_p.h
> tm_p.h is unchanged
> rm -f tmp-all-tree.def
> echo '#include "tree.def"' > tmp-all-tree.def
> echo 'END_OF_BASE_TREE_CODES' >> tmp-all-tree.def
> echo '#include "c-common.def"' >> tmp-all-tree.def
> ltf=".././../gcc-4.4.3/gcc/ada/gcc-interface/ada-tree.def
> .././../gcc-4.4.3/gcc/cp/cp-tree.def
> .././../gcc-4.4.3/gcc/hello-world/hello-world-tree.def
> .././../gcc-4.4.3/gcc/java/java-tree.def
> .././../gcc-4.4.3/gcc/objc/objc-tree.def"; for f in $ltf; do \
> echo "#include \"$f\""; \
> done | sed 's|.././../gcc-4.4.3/gcc/||' >> tmp-all-tree.def
> /bin/sh .././../gcc-4.4.3/gcc/../move-if-change tmp-all-tree.def all-tree.def
> echo timestamp > s-alltree
> if test yes = yes \
> || test -n ""; then \
> /bin/sh .././../gcc-4.4.3/gcc/genmultilib \
> "" \
> "" \
> "" \
> "" \
> "" \
> "" \
> "" \
> "yes" \
> > tmp-mlib.h; \
> else \
> /bin/sh .././../gcc-4.4.3/gcc/genmultilib '' '' '' '' '' '' '' no \
> > tmp-mlib.h; \
> fi
> /bin/sh .././../gcc-4.4.3/gcc/../move-if-change tmp-mlib.h multilib.h
> echo timestamp > s-mlib
> lsf=".././../gcc-4.4.3/gcc/hello-world/lang-specs.h"; for f in $lsf; do \
> echo "#include \"$f\""; \
> done | sed 's|.././../gcc-4.4.3/gcc/||' > tmp-specs.h
> /bin/sh .././../gcc-4.4.3/gcc/../move-if-change tmp-specs.h specs.h
> echo timestamp > s-specs
> gcc -g -O2 -D__USE_MINGW_ACCESS -DIN_GCC -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
> -Wold-style-definition -Wc++-compat -Wmissing-format-attribute
> -pedantic -Wno-long-long -Wno-variadic-macros
> -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I.
> -I.././../gcc-4.4.3/gcc -I.././../gcc-4.4.3/gcc/.
> -I.././../gcc-4.4.3/gcc/../include -I./../intl
> -I.././../gcc-4.4.3/gcc/../libcpp/include
> -I.././../gcc-4.4.3/gcc/../libdecnumber
> -I.././../gcc-4.4.3/gcc/../libdecnumber/dpd -I../libdecnumber \
> -DLOCALEDIR=\"/usr/local/share/locale\" \
> -c .././../gcc-4.4.3/gcc/intl.c -o intl.o
> cc1.exe: error: unrecognized command line option "-Wc++-compat"
> cc1.exe: error: unrecognized command line option "-Wno-variadic-macros"
> cc1.exe: error: unrecognized command line option "-Wno-overlength-strings"
> make[2]: *** [intl.o] Error 1
> make[2]: Leaving directory `/c/gcc/gcc-build/gcc'
> make[1]: *** [install-gcc] Error 2
> make[1]: Leaving directory `/c/gcc/gcc-build'
> make: *** [install] Error 2
>
>
> Thanks in advance,
> greicy
>
>
> Andi Hellmund <mail@andihellmund.com> a écrit :
>
>> Hey Greicy,
>>
>> great that you made some progress.
>>
>>> for name in hello1.exe; \
>>> do \
>>> if [ -f $name ] ; then \
>>> name2="`echo \`basename $name\` | sed -e 's,y,y,' `"; \
>>> rm -f /usr/local/bin/$name2.exe; \
>>> echo /bin/install -c $name.exe /usr/local/bin/$name2.exe; \
>>> /bin/install -c $name.exe /usr/local/bin/$name2.exe; \
>>> chmod a+x /usr/local/bin/$name2.exe; \
>>> fi ; \
>>> done
>>> /bin/install -c hello1.exe.exe /usr/local/bin/hello1.exe.exe
>>> /bin/install: cannot stat `hello1.exe.exe': No such file or directory
>>> chmod: cannot access `/usr/local/bin/hello1.exe.exe': No such file or
>>> directory
>> There is apparently an error in the Make-lang.in file in the front-end
>> directory gcc/hello-world.
>>
>> The compiler is named 'hello1.exe' but the installer tries to install
>> the file 'hello1.exe.exe' which doesn't exist. Though, the easiest fix
>> would be to change the first line into
>>
>> for name in hello1
>> [...]
>>
>> Then you should be able to install gcc in the --prefix=<...> defined
>> directory.
>>
>>> Is necessary to do $make install, ok?
>> Yes, it is generally necessary to install gcc for at least three reasons:
>>
>> (1) you won't find the gcc compiler driver in the build directory,
>> because it is called xgcc and will be renamed into gcc during installation
>> (2) if you call xgcc from the build directory, it won't find the real
>> compiler (cc1)
>> (3) if you call xgcc from the build directory, it won't possibly find
>> libraries like libgcc
>>
>> In your case where you only built a compiler (without driver), you don't
>> necessarily need to install your compiler - it should work without - but
>> you need to try :)
>>
>> Andi
>>
>
>
More information about the Gcc-help
mailing list