From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12740 invoked by alias); 12 Mar 2010 16:17:07 -0000 Received: (qmail 12720 invoked by uid 22791); 12 Mar 2010 16:17:06 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mx1.imag.fr (HELO shiva.imag.fr) (129.88.30.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Mar 2010 16:17:00 +0000 Received: from trottinette.imag.fr (trottinette.imag.fr [129.88.34.202]) by shiva.imag.fr (8.13.8/8.13.8) with ESMTP id o2CGDeZm016087 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Mar 2010 17:13:40 +0100 Received: from trottinette.imag.fr (localhost.imag.fr [127.0.0.1]) by trottinette.imag.fr (8.13.8/8.13.8/ImagV2.1.feuille) with ESMTP id o2CGG5cT012899; Fri, 12 Mar 2010 17:16:05 +0100 Received: (from apache@localhost) by trottinette.imag.fr (8.13.8/8.13.8/Submit) id o2CGG4tx012896; Fri, 12 Mar 2010 17:16:04 +0100 Received: from tima-dhcp-h58.imag.fr (tima-dhcp-h58.imag.fr [147.171.132.88]) by webmail.imag.fr (Horde Framework) with HTTP; Fri, 12 Mar 2010 17:16:04 +0100 Message-ID: <20100312171604.17284u4sfc3gqrb8@webmail.imag.fr> Date: Fri, 12 Mar 2010 16:41:00 -0000 From: Greicy.Costa-Marques@imag.fr To: Greicy.Costa-Marques@imag.fr Cc: Andi Hellmund , Greicy.Costa-Marques@imag.fr, gcc-help@gcc.gnu.org Subject: Re: How to include a front end to gcc ? References: <20091110120039.17904xf1jt3syevr@webmail.imag.fr> <20091207160613.40835qozrvolrf1h@webmail.imag.fr> <20091210175316.143851rlp1356070@webmail.imag.fr> <4B216D18.5040901@andihellmund.com> <20091211103140.15643vy5an53arng@webmail.imag.fr> <20091216171913.38736ex25lsi1vnl@webmail.imag.fr> <20100118171613.37323adazx3nmf65@webmail.imag.fr> <19bb413aeea8173be0119dc84a99254c-EhVcXl1CTQJeRwgeDAw3AF9BdAJSS1xcXV9EBF41WEVGVFENQV5+BEtdXzBeQ0MGX1taRV1T-webmailer2@server02.webmailer.hosteurope.de> <20100121110544.618273k2lhw1t054@webmail.imag.fr> <20100129160405.10512mrjmwx0n10l@webmail.imag.fr> <4B65ABE6.8070109@andihellmund.com> <20100204184027.126147yistgbwjnv@webmail.imag.fr> <4B6B4CC5.50406@andihellmund.com> <20100305163456.975572cwmhofv734@webmail.imag.fr> <4B91890C.5000409@andihellmund.com> <20100308182919.86426tk7sjgg2qr3@webmail.imag.fr> In-Reply-To: <20100308182919.86426tk7sjgg2qr3@webmail.imag.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3.6) X-MI2S-Agent: webmail 3.3.6 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00174.txt.bz2 costam@imag.fr a =E9crit=A0: > Hi Andi, > > very very little progress... :( > > yes, it's true the install tyed to install the file "helo1.exe.exe",=20=20 > of course doesn't exit... I change the first line of Make-lang.in=20=20 > 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=20=20 > /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=20=20 > /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 \ >=20=20=20=20=20=20=20=20=20=20=20=20 > /usr/local/lib/gcc/i686-pc-mingw32/4.4.3/install-tools/include/README > /bin/install -c fixinc.sh=20=20 > /usr/local/libexec/gcc/i686-pc-mingw32/4.4.3/install-tools/fixinc.sh > /bin/install -c fixincl.exe \ >=20=20=20=20=20=20=20=20=20=20=20=20 > /usr/local/libexec/gcc/i686-pc-mingw32/4.4.3/install-tools/fixincl.exe > /bin/install -c mkheaders=20=20 > /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=3D"hello-world" \ > CONFIG_HEADERS=3D \ > CONFIG_SHELL=3D"/bin/sh" \ > CONFIG_FILES=3DMakefile /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=3D"" \ > HEADERS=3D"auto-host.h ansidecl.h config/i386/xm-mingw32.h"=20=20 > DEFINES=3D"" \ > /bin/sh .././../gcc-4.4.3/gcc/mkconfig.sh config.h > config.h is unchanged > TARGET_CPU_DEFAULT=3D"" \ > HEADERS=3D"options.h config/i386/i386.h config/i386/unix.h=20=20 > config/i386/bsd.h config/i386/gas.h config/dbxcoff.h=20=20 > config/i386/cygming.h config/i386/mingw32.h defaults.h" DEFINES=3D"" \ > /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=20=20 > .././../gcc-4.4.3/gcc/ada/gcc-interface/lang.opt=20=20 > .././../gcc-4.4.3/gcc/fortran/lang.opt=20=20 > .././../gcc-4.4.3/gcc/hello-world/lang.opt=20=20 > .././../gcc-4.4.3/gcc/java/lang.opt .././../gcc-4.4.3/gcc/c.opt=20=20 > .././../gcc-4.4.3/gcc/common.opt=20=20 > .././../gcc-4.4.3/gcc/config/i386/i386.opt=20=20 > .././../gcc-4.4.3/gcc/config/i386/cygming.opt=20=20 > .././../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=3D"" \ > HEADERS=3D"auto-host.h ansidecl.h config/i386/xm-mingw32.h"=20=20 > DEFINES=3D"" \ > /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.li= st > echo timestamp > s-gtyp-input > TARGET_CPU_DEFAULT=3D"" \ > HEADERS=3D"config/i386/i386-protos.h tm-preds.h" DEFINES=3D"" \ > /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=3D".././../gcc-4.4.3/gcc/ada/gcc-interface/ada-tree.def=20=20 > .././../gcc-4.4.3/gcc/cp/cp-tree.def=20=20 > .././../gcc-4.4.3/gcc/hello-world/hello-world-tree.def=20=20 > .././../gcc-4.4.3/gcc/java/java-tree.def=20=20 > .././../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 =3D 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=3D".././../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=20=20 > -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual=20=20 > -Wold-style-definition -Wc++-compat -Wmissing-format-attribute=20=20 > -pedantic -Wno-long-long -Wno-variadic-macros=20=20 > -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I.=20=20 > -I.././../gcc-4.4.3/gcc -I.././../gcc-4.4.3/gcc/.=20=20 > -I.././../gcc-4.4.3/gcc/../include -I./../intl=20=20 > -I.././../gcc-4.4.3/gcc/../libcpp/include=20=20=20 > -I.././../gcc-4.4.3/gcc/../libdecnumber=20=20 > -I.././../gcc-4.4.3/gcc/../libdecnumber/dpd -I../libdecnumber \ > -DLOCALEDIR=3D\"/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 a =E9crit=A0: > >> Hey Greicy, >> >> great that you made some progress. >> >>> for name in hello1.exe; \ >>> do \ >>> if [ -f $name ] ; then \ >>> name2=3D"`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=3D<...> 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 installati= on >> (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 >> > >