grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* Can cross building grub2 on X86 for target ppc64le platform?
@ 2016-12-02  8:23 Leno Hou
  2016-12-02  9:32 ` Andrei Borzenkov
  2016-12-05  3:14 ` Leno Hou
  0 siblings, 2 replies; 4+ messages in thread
From: Leno Hou @ 2016-12-02  8:23 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 2775 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3416 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can cross building grub2 on X86 for target ppc64le platform?
  2016-12-02  8:23 Can cross building grub2 on X86 for target ppc64le platform? Leno Hou
@ 2016-12-02  9:32 ` Andrei Borzenkov
  2016-12-05  3:14 ` Leno Hou
  1 sibling, 0 replies; 4+ messages in thread
From: Andrei Borzenkov @ 2016-12-02  9:32 UTC (permalink / raw)
  To: The development of GNU GRUB

please attach config.log

On Fri, Dec 2, 2016 at 11:23 AM, Leno Hou <lenohou@gmail.com> 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
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can cross building grub2 on X86 for target ppc64le platform?
  2016-12-02  8:23 Can cross building grub2 on X86 for target ppc64le platform? Leno Hou
  2016-12-02  9:32 ` Andrei Borzenkov
@ 2016-12-05  3:14 ` Leno Hou
  2016-12-05  3:43   ` Andrei Borzenkov
  1 sibling, 1 reply; 4+ messages in thread
From: Leno Hou @ 2016-12-05  3:14 UTC (permalink / raw)
  To: grub-devel


[-- Attachment #1.1: Type: text/plain, Size: 3077 bytes --]

Hi all,

I've attached the config.log in here. Thanks for your help.

*Leno Hou*
E-mail :  lenohou@gmail.com


On Fri, Dec 2, 2016 at 4:23 PM, Leno Hou <lenohou@gmail.com> 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
>
>

[-- Attachment #1.2: Type: text/html, Size: 4330 bytes --]

[-- Attachment #2: config.log.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 37624 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can cross building grub2 on X86 for target ppc64le platform?
  2016-12-05  3:14 ` Leno Hou
@ 2016-12-05  3:43   ` Andrei Borzenkov
  0 siblings, 0 replies; 4+ messages in thread
From: Andrei Borzenkov @ 2016-12-05  3:43 UTC (permalink / raw)
  To: The development of GNU GRUB

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 <lenohou@gmail.com> 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
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-05  3:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-02  8:23 Can cross building grub2 on X86 for target ppc64le platform? Leno Hou
2016-12-02  9:32 ` Andrei Borzenkov
2016-12-05  3:14 ` Leno Hou
2016-12-05  3:43   ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).