From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cDkBt-0000KO-LF for mharc-grub-devel@gnu.org; Sun, 04 Dec 2016 22:43:45 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDkBr-0000JM-LL for grub-devel@gnu.org; Sun, 04 Dec 2016 22:43:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDkBo-0008M5-Fx for grub-devel@gnu.org; Sun, 04 Dec 2016 22:43:43 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:34592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cDkBo-0008Lf-5E for grub-devel@gnu.org; Sun, 04 Dec 2016 22:43:40 -0500 Received: by mail-wm0-x22b.google.com with SMTP id u144so16682867wmu.1 for ; Sun, 04 Dec 2016 19:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Ge6o830El9ynsJderdmHsIes7/1n7b0ozC3X74T1X50=; b=pMKrsnnXXV+lRv2NVbyTAiTyQ5ui/LZked39WXKK7sB8MhaKLWlLX73Ktuwef0HNQ0 YBuyrHFIVMRVl4+vJAZtg3NszsZUYf3h+nRARIHVCtA6H5en9MbImOmzsZI1gfSePOtG 5zO0tdL094sJF0nRa57Pq/klBl87GoxChvvmQNoUf4PTlPm8YXEv56jEe2i8eRbxBKxT 4z5blE2qw6hYo//3/JC7xjwuk5SbXa2xWRnwVApRtKd4M3rk0BqdxL5V1NiZXJutpiij HwOSuzrWxvyQIPL2Toon6sd/n3BtMUPUqY9y2TUTNAJ4GV1KBItciwKB3O5FWDH2DUja vD1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Ge6o830El9ynsJderdmHsIes7/1n7b0ozC3X74T1X50=; b=Gw+SzpKbacRedUsgiWLtSl7tcm9sQJ4TRuFX1/H7ABx5ndVgjDrNtLOCnGcRwSgznr zJE31EDOjgnromVIoY8sZlLr/j5vm2e8WuxYs/h6fOg6K5l+meg0lKx7MlF2jljEOhpl ALDwSdPyhsXQpQH10RoGnN5nPad4Byf/qUkeIYfyNtxPSt/0P6K/3+C2gYfgO6o4Lokf JFwF+mdDe4B2koTfVpD4DTO4Ys+fyKZRTEuz3Xyncy0osqb0rjaF8NfUqEDcyBPwzi1b hvxz6Df8STKUgieGG4TGM7No92dyYAdY3sJ+HQAP+kvDhzYDNcfu2Zw1Uv/mVogd6klN BBqw== X-Gm-Message-State: AKaTC014/3jkWU83q4JD4rr/ixzpUJ5GMtSnAm55l2ZMm2n0FX9yO0l99bSOrBwt78ZgJQ== X-Received: by 10.46.32.7 with SMTP id g7mr22464074ljg.35.1480909418176; Sun, 04 Dec 2016 19:43:38 -0800 (PST) Received: from [192.168.1.44] (ppp109-252-90-110.pppoe.spdop.ru. [109.252.90.110]) by smtp.gmail.com with ESMTPSA id a9sm2502929ljb.9.2016.12.04.19.43.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Dec 2016 19:43:37 -0800 (PST) Subject: Re: Can cross building grub2 on X86 for target ppc64le platform? To: The development of GNU GRUB References: From: Andrei Borzenkov Message-ID: <3a761b99-989a-1c27-dc79-bac3fe258d2e@gmail.com> Date: Mon, 5 Dec 2016 06:43:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22b X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2016 03:43:45 -0000 05.12.2016 06:14, Leno Hou пишет: > Hi all, > > I've attached the config.log in here. Thanks for your help. > Your toolchain apparently lacks big-endian support. configure:24647: powerpc64le-cros-linux-gnu-gcc -o conftest -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wcast-align -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -mbig-endian -Werror -Wall -W -DGRUB_MACHINE_IEEE1275=1 -DGRUB_MACHINE=POWERPC_IEEE1275 -fuse-ld=bfd -nostdlib -static conftest.c >&5 /usr/libexec/gcc/powerpc64le-cros-linux-gnu/ld.bfd: cannot open linker script file ldscripts/elf64ppc.xw: No such file or directory collect2: error: ld returned 1 exit status configure:24647: $? = 1 grub is always built big-endian on PPC. Do you know how to enable compilation for big-endian in your case? > *Leno Hou* > E-mail : lenohou@gmail.com > > > On Fri, Dec 2, 2016 at 4:23 PM, Leno Hou wrote: > >> Hi all, >> >> I have an ppc64le cross toolchain working on x86 which is >> powerpc64le-linux-gnu-gcc-5.0. >> Can I use this to build grub2 for ppc64le as below ? Thanks for your help ! >> >> #grub-2.02_beta2_p20151217/configure --prefix=/usr >> --build=x86_64-pc-linux-gnu --host=powerpc64le-cros-linux-gnu >> --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share >> --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking >> --disable-silent-rules --docdir=/usr/share/doc/grub-2.02_beta2_p20151217-r10 >> --disable-werror --program-prefix= --libdir=/usr/lib >> --htmldir=/usr/share/doc/grub-2.02_beta2_p20151217-r10/html >> --disable-mm-debug --disable-grub-emu-usb --disable-device-mapper >> --disable-grub-mount --disable-nls --disable-grub-mkfont --disable-libzfs >> --disable-efiemu >> >> >> >> ....... >> checking whether mbrtowc handles incomplete characters... (cached) >> guessing yes >> checking whether mbrtowc works as well as mbtowc... (cached) guessing yes >> checking whether wcrtomb return value is correct... guessing yes >> checking whether iswcntrl works... guessing yes >> checking for towlower... yes >> checking for wctype_t... yes >> checking for wctrans_t... yes >> checking whether wctype is declared without a macro... yes >> checking whether iswctype is declared without a macro... yes >> checking whether wctrans is declared without a macro... yes >> checking whether towctrans is declared without a macro... yes >> checking whether wcwidth is declared... (cached) yes >> checking whether wcwidth works reasonably in UTF-8 locales... (cached) yes >> checking for stdint.h... (cached) yes >> checking which extra warnings work... -Wextra -Wattributes -Wendif-labels >> -Winit-self -Wint-to-pointer-cast -Winvalid-pch >> -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla >> -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros >> -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs >> -Wmissing-prototypes -Wmissing-declarations -Wformat=2 >> checking for powerpc64le-cros-linux-gnu-objcopy... >> powerpc64le-cros-linux-gnu-objcopy >> checking for powerpc64le-cros-linux-gnu-strip... >> powerpc64le-cros-linux-gnu-strip >> checking for powerpc64le-cros-linux-gnu-nm... >> powerpc64le-cros-linux-gnu-nm >> checking for powerpc64le-cros-linux-gnu-ranlib... >> powerpc64le-cros-linux-gnu-ranlib >> checking which extra warnings work... -Wextra -Wattributes -Wendif-labels >> -Winit-self -Wint-to-pointer-cast -Winvalid-pch >> -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla >> -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros >> -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs >> -Wmissing-prototypes -Wmissing-declarations -Wformat=2 >> checking if compiling with clang... no >> checking for options to get big-endian compilation... no >> configure: error: could not force big-endian >> .... >> >> *Leno Hou* >> E-mail : lenohou@gmail.com >> >> > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >