Re: [OpenWrt-Devel] [OpenWrt-Tickets] [OpenWrt] #7269: grub notbuilding for x86
aptitude install ia32-libs - failed aptitude install gcc-multilib - Ok, works fine I have done a full make from a fresh svn - Ok Thierry Museux France Wireless Technologies www.fwt.fr msn: t...@fwt.fr Tel: + 33 (0) 1 41 08 70 78 Gsm: + 33 (0) 6 15 22 09 62 -Message d'origine- De : Nico [mailto:n...@openwrt.org] Envoyé : mardi 4 mai 2010 19:56 À : t...@fwt.fr; OpenWrt Development List Objet : Re: [OpenWrt-Devel] [OpenWrt-Tickets] [OpenWrt] #7269: grub notbuilding for x86 Thierry MUSEUX - www.fwt.fr - wrote: Problem not solved, same thing with last trunk 21343 I am on debian x86_64 Why in configure: checking build system type... x86_64-pc-linux-gnu It is solved. You have to investigate why your 64-bits build system refuses to build a 32-bits app (see ./build_dir/grub-0.97/config.log). Depending on the distro you're using, you might need to install additional packages like gcc-multilib (Debian/Ubuntu) or gcc.i686 libgcc.i686 (CentOS/Fedora/RHEL). I'm working on Prereq check to spot that before attempting to build... Cheers, -- -{Nico} ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Tickets] [OpenWrt] #7269: grub notbuilding for x86
Thierry MUSEUX - www.fwt.fr - wrote: Problem not solved, same thing with last trunk 21343 I am on debian x86_64 Why in configure: checking build system type... x86_64-pc-linux-gnu It is solved. You have to investigate why your 64-bits build system refuses to build a 32-bits app (see ./build_dir/grub-0.97/config.log). Depending on the distro you're using, you might need to install additional packages like gcc-multilib (Debian/Ubuntu) or gcc.i686 libgcc.i686 (CentOS/Fedora/RHEL). I'm working on Prereq check to spot that before attempting to build... Cheers, -- -{Nico} ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Tickets] [OpenWrt] #7269: grub notbuilding for x86
Thierry, Can you try the attached patch ? -- -{Nico} Nico wrote: Thierry MUSEUX - www.fwt.fr - wrote: Problem not solved, same thing with last trunk 21343 I am on debian x86_64 Why in configure: checking build system type... x86_64-pc-linux-gnu It is solved. You have to investigate why your 64-bits build system refuses to build a 32-bits app (see ./build_dir/grub-0.97/config.log). Depending on the distro you're using, you might need to install additional packages like gcc-multilib (Debian/Ubuntu) or gcc.i686 libgcc.i686 (CentOS/Fedora/RHEL). I'm working on Prereq check to spot that before attempting to build... Cheers, -- -{Nico} ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel Index: package/grub/Makefile === --- package/grub/Makefile (revision 21305) +++ package/grub/Makefile (working copy) @@ -67,5 +67,16 @@ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/ endef +ifeq ($(HOST_ARCH),x86_64) + define Require/working-gcc32 + echo 'int main(int argc, char **argv) { return 0; }' | \ + gcc -x c -o $(TMP_DIR)/a.out - -m32 -lc + endef +endif + +$(eval $(call Require,working-gcc32, \ + Please install 32 bits development files. \ +)) + $(eval $(call HostBuild)) $(eval $(call BuildPackage,grub)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Tickets] [OpenWrt] #7269: grub notbuilding for x86
-1 apply the patch: pwd ./trunk; patch -p0 grub-prereq.diff make prereq gives nothing displayed make world V=99 checking whether make sets $(MAKE)... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-linux-gnu-gcc... x86_64-linux-gnu-gcc checking for x86_64-linux-gnu-gcc... (cached) x86_64-linux-gnu-gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. make[3]: *** [/home/dev8/HR/openwrt/x86/trunk/build_dir/host/grub-0.97/.configured] Error 77 make[3]: Leaving directory `/home/dev8/HR/openwrt/x86/trunk/package/grub' make[2]: *** [package/grub/host/compile] Error 2 Thierry Museux France Wireless Technologies www.fwt.fr msn: t...@fwt.fr Tel: + 33 (0) 1 41 08 70 78 Gsm: + 33 (0) 6 15 22 09 62 -Message d'origine- De : openwrt-devel-boun...@lists.openwrt.org [mailto:openwrt-devel-boun...@lists.openwrt.org] De la part de Nico Envoyé : mardi 4 mai 2010 20:21 À : OpenWrt Development List Objet : Re: [OpenWrt-Devel] [OpenWrt-Tickets] [OpenWrt] #7269: grub notbuilding for x86 Thierry, Can you try the attached patch ? -- -{Nico} Nico wrote: Thierry MUSEUX - www.fwt.fr - wrote: Problem not solved, same thing with last trunk 21343 I am on debian x86_64 Why in configure: checking build system type... x86_64-pc-linux-gnu It is solved. You have to investigate why your 64-bits build system refuses to build a 32-bits app (see ./build_dir/grub-0.97/config.log). Depending on the distro you're using, you might need to install additional packages like gcc-multilib (Debian/Ubuntu) or gcc.i686 libgcc.i686 (CentOS/Fedora/RHEL). I'm working on Prereq check to spot that before attempting to build... Cheers, -- -{Nico} ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Tickets] [OpenWrt] #7269: grub notbuilding for x86
Problem not solved, same thing with last trunk 21343 I am on debian x86_64 Why in configure: checking build system type... x86_64-pc-linux-gnu touch /home/dev8/HR/openwrt/x86/trunk/build_dir/host/grub-0.97/.prepared87c17f772c 0328066918fc3cfad5f95e (cd /home/dev8/HR/openwrt/x86/trunk/build_dir/host/grub-0.97/; if [ -x configure ]; then cp -fpR /home/dev8/HR/openwrt/x86/trunk/scripts/config.{guess,sub} /hoe/dev8/HR/openwrt/x86/trunk/build_dir/host/grub-0.97// ./configure CFLAGS=-O2 -I/home/dev8/HR/openwrt/x86/trunk/staging_dir/host/include -fno-stack-protecor -U_FORTIFY_SOURCE CPPFLAGS=-O2 -I/home/dev8/HR/openwrt/x86/trunk/staging_dir/host/include -fno-stack-protector -U_FORTIFY_SOURCE LDFLAGS=-L/home/dev8/HRopenwrt/x86/trunk/staging_dir/host/lib SHELL=/bin/bash grub_cv_prog_objcopy_absolute=yes --target=x86_64-linux-gnu --host=x86_64-linux-gnu --build=x86_64-lnux-gnu --program-prefix= --program-suffix= --prefix=/home/dev8/HR/openwrt/x86/trunk/staging_dir/host --exec-prefix=/home/dev8/HR/openwrt/x86/trunk/stagingdir/host --sysconfdir=/home/dev8/HR/openwrt/x86/trunk/staging_dir/host/etc --localstatedir=/home/dev8/HR/openwrt/x86/trunk/staging_dir/host/var --disable-auto-inux-mem-opt --disable-graphics --disable-hercules --without-curses --sbindir=/home/dev8/HR/openwrt/x86/trunk/staging_dir/host/bin ; fi ) checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-linux-gnu-gcc... x86_64-linux-gnu-gcc checking for x86_64-linux-gnu-gcc... (cached) x86_64-linux-gnu-gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. make[3]: *** [/home/dev8/HR/openwrt/x86/trunk/build_dir/host/grub-0.97/.configured] Error 77 make[3]: Leaving directory `/home/dev8/HR/openwrt/x86/trunk/package/grub' make[2]: *** [package/grub/host/compile] Error 2 make[2]: Leaving directory `/home/dev8/HR/openwrt/x86/trunk' make[1]: *** [/home/dev8/HR/openwrt/x86/trunk/staging_dir/target-i386_uClibc-0.9.30.1/sta mp/.package_compile] Error 2 make[1]: Leaving directory `/home/dev8/HR/openwrt/x86/trunk' make: *** [world] Erreur 2 Thierry Museux ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel