You are not logged in.
Hello, mission impossible for me, I want to make porting SliTaz on arm tablet, and my first step is try to compile grub for arm, but stop the configure with this message
git clone git://git.savannah.gnu.org/grub.git
cd grub
./autogen
,
,
./configure --prefix=/usr –host=arm-slitaz-linux-gnueabi
,
,
checking for arm-slitaz-linux-gnueabi-ranlib... no
checking for ranlib... 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 compile assembly... configure: error: could not compile assembly
source https://wiki.linaro.org/LEG/Engineering/Kernel/GRUB
Anyone have ideas to solve?
Offline
162 # Handle cross compilation
http://hg.slitaz.org/wok/file/c76d35a1ca0b/linux/receipt#l162
Offline
Hi gibor,
Warning: I'm not a developer 
From your log:
./configure --prefix=/usr –host=arm-slitaz-linux-gnueabi
,
,
checking for arm-slitaz-linux-gnueabi-ranlib... no
I think, the magic will be when you install "some package" with this file.
What we already have among cross-compilers that have "something-ranlib" file?
Please, go to http://pkgs.slitaz.org/ , select "File" in the first dropdown, and enter next regexp in the input field:
[c][^/]*\-ranlib$[/c]
Press Search button. You'll see the list of packages with the "something-ranlib" file, but nothing match. So, I think we haven't the package with the cross-compiler for the RPi.
BTW, the precise citation of your link: arm-linux-gnueabihf.
I search Google and found detailed instructions about cross-compiling for the RPi here:
http://stackoverflow.com/questions/19162072/installing-raspberry-pi-cross-compiler
I hope it helps you.
------
PS. Found something on that web site from your link:
https://wiki.linaro.org/WorkingGroups/ToolChain -> http://www.linaro.org/downloads/ -> https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/
I think the next file will be in help: gcc-linaro-6.2.1-2016.11-i686_arm-linux-gnueabihf.tar.xz
Offline
Thank at all, I have repeated command as root, and this is the report
make clean
export PATH=$PATH:/cross/arm/tools/bin
./autogen.sh
./configure --prefix=/usr –host=arm-slitaz-linux-gnueabi
,
,
,
*******************************************************
GRUB2 will be compiled with following components:
Platform: arm-uboot
With devmapper support: No (need libdevmapper header)
With memory debugging: No
With disk cache statistics: No
With boot time statistics: No
efiemu runtime: No (only available on i386)
grub-mkfont: No (freetype2 library unusable)
grub-mount: No (need FUSE library)
starfield theme: Yes
With DejaVuSans font from /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
With libzfs support: No (need zfs library)
Build-time grub-mkfont: Yes
Without unifont
With liblzma from -llzma (support for XZ-compressed mips images)
make CC=arm-slitaz-linux-gnueabi-gcc
,
,
,
crc64_small.c:(.text+0x94): undefined reference to `pthread_once'
collect2: ld returned 1 exit status
make[2]: *** [grub-mkimage] Error 1
seem an error of gcc compiler.... or not!?!?
Offline
Hi gibor,
Notice the "strange" dash symbol before "host=..." in your command. Seems like double-dash ([c]--[/c]) should be here. Please, retry and re-post output.
(Please, note, I'll not respond in near time: not sleep yet.)
And I guess, that "/cross/arm/tools/" are really exists on your host...
Offline
Notice the "strange" dash symbol before "host=..." in your command. Seems like double-dash (--) should be here. Please, retry and re-post output.
Are an error of corrector of word processing, on terminal i right (--)
And I guess, that "/cross/arm/tools/" are really exists on your host
Yes exists, but on any case there is full list of output
http://paste.slitaz.org/?7e1df6a4bc5c4915#wR50SNHD/LOU4Z19JJUtSWvaTa7DfDMerh3iLBMW2Uo=
Offline
I think, your program (GRUB) rejects to assemble with the outdated toolchain:
skipping incompatible /cross/arm/sysroot/usr/lib/liblzma.so when searching for -llzma
Can you use the official linaro toolchain I mentioned in one of the previous posts, as well as detailed instruction from the same post? If not, just wait, and I wrote one more instruction for you based on the linaro toolchain for you. But I need some spare time for that...
Offline
checking for arm-slitaz-linux-gnueabi-ranlib... no
make CC=arm-slitaz-linux-gnueabi-gcc
Handle cross compilation
http://hg.slitaz.org/wok/file/c76d35a1ca0b/linux/receipt#l162
# Handle cross compilation
case "$ARCH" in
arm)
echo "Compiling: $ARCH Kernel"
make mrproper
patch -Np1 < $stuff/$ARCH/linux-arm.patch || exit 1
cp -f $stuff/$ARCH/linux-arm.config .config
yes '' | make ARCH=$ARCH oldconfig
make ARCH=$ARCH CROSS_COMPILE=${HOST_SYSTEM}- bzImage &&
make ARCH=$ARCH CROSS_COMPILE=${HOST_SYSTEM}- modules &&
make ARCH=$ARCH CROSS_COMPILE=${HOST_SYSTEM}- \
INSTALL_MOD_PATH=$DESTDIR modules_install &&
OR
export PATH=$PATH:/cross/arm/tools/bin
export ARCH=arm
export CROSS_COMPILE=arm-slitaz-linux-gnueabi-
./configure
make
make install
----
checking for arm-slitaz-linux-gnueabi-ranlib... no
So, I think we haven't the package with the cross-compiler for the RPi.
BTW, the precise citation of your link: arm-linux-gnueabihf.
slitaz-arm-toolchain-20140304.tar.bz2
http://mirror1.slitaz.org/arm/cross/slitaz-arm-toolchain-20140304.tar.bz2
tux@slitaz:~$ tar -tjvf slitaz-arm-toolchain-20140304.tar.bz2 | grep ranlib
-rwxr-xr-x root/root 52304 2014-03-03 23:35 slitaz-arm-toolchain-20140304/arm/tools/bin/arm-slitaz-linux-gnueabi-ranlib
hrwxr-xr-x root/root 0 2014-03-03 23:35 slitaz-arm-toolchain-20140304/arm/tools/arm-slitaz-linux-gnueabi/bin/ranlib link to slitaz-arm-toolchain-20140304/arm/tools/bin/arm-slitaz-linux-gnueabi-ranlib
tux@slitaz:~$
SliTaz Cross Toolchain configuration file
http://hg.slitaz.org/cookutils/file/0ade59078977/data/cross-arm.conf
# SliTaz Cross Toolchain configuration file
#
# ARM v6
#
# Main settings
ARCH=arm
BUILD_SYSTEM=i486-slitaz-linux
TARGET=$ARCH-slitaz-linux-gnueabi
WORK=/cross/$ARCH
SRC=/home/slitaz/src
Offline
[ Generated in 0.016 seconds, 11 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]