This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
GLIBC_BUILDING_ISSUE
- From: shaikh ishaque <Shaikishaque dot Ibrahim at votarytech dot com>
- To: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Mon, 14 May 2018 06:43:50 +0000 (UTC)
- Subject: GLIBC_BUILDING_ISSUE
- References: <176099616.862414.1526280230548.ref@mail.yahoo.com>
- Reply-to: shaikh ishaque <Shaikishaque dot Ibrahim at votarytech dot com>
Hi Team,
I am building a Glibc for arm architecture on X86 machine. I followed different methods but not able to successful in generating the glibc for arm architecture. Please find the detailed steps for few methods mentioned as below.
Method1:
sudo apt-get source glibc-source
sudo apt-get build-dep glibc-source
sudo TARGET=arm dpkg-buildpackage -us -uc -b -d -rfakeroot
OR
sudo TARGET=arm64 dpkg-buildpackage -us -uc -b -d -rfakeroot
After the procedure,debians got generated for X86 and i386 architecture but not for arm architecture.
Method2:
Downloaded the cross compiler source from and followed the below procedure.
"https://dl.armbian.com/_toolchains/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu.tar.xz"
"https://dl.armbian.com/_toolchains/gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz"
export ARCH=arm64
export CROSS_COMPILE=/home/systebui/Downloads/compiler/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
CROSS_COMPILE_AARCH64=/home/systebui/Downloads/compiler/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
dpkg-buildpackage -us -uc -b -d -rfakeroot
OR
sudo TARGET=arm64 dpkg-buildpackage -us -uc -b -d -rfakeroot
For arm architecture, almost same method as Method 2 followed with few changes as below.
export ARCH=arm
export CROSS_COMPILE=/home/systebui/Downloads/compiler/gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
dpkg-buildpackage -us -uc -b -d -rfakeroot
sudo TARGET=arm dpkg-buildpackage -us -uc -b -d -rfakeroot
Even the procedure in Method2 also generated the debians for X86 and i386 architecture and debians for arm architecture is missing.
Is it a problem in the links given /etc/apt/sources.list file or any configuration is missed out. Can you help me here.
Thanks and Regards
Shaikh Ishaque