public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* GLIBC_BUILDING_ISSUE
       [not found] <176099616.862414.1526280230548.ref@mail.yahoo.com>
@ 2018-05-14  6:43 ` shaikh ishaque
  2018-05-14 11:24   ` GLIBC_BUILDING_ISSUE Adhemerval Zanella
  0 siblings, 1 reply; 2+ messages in thread
From: shaikh ishaque @ 2018-05-14  6:43 UTC (permalink / raw)
  To: libc-help

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





 
 

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

* Re: GLIBC_BUILDING_ISSUE
  2018-05-14  6:43 ` GLIBC_BUILDING_ISSUE shaikh ishaque
@ 2018-05-14 11:24   ` Adhemerval Zanella
  0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2018-05-14 11:24 UTC (permalink / raw)
  To: libc-help



On 14/05/2018 03:43, shaikh ishaque wrote:
> 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

Have you tried https://wiki.debian.org/CrossCompiling ? These kind of question would be better
answered in distro-specific maillist. 

If you are trying to cross-compiling glibc, best option would to use scripts/build-many-glibcs.py
script.  It does not tie with distro-source, so you will need to change the script to do
something different.

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

end of thread, other threads:[~2018-05-14 11:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <176099616.862414.1526280230548.ref@mail.yahoo.com>
2018-05-14  6:43 ` GLIBC_BUILDING_ISSUE shaikh ishaque
2018-05-14 11:24   ` GLIBC_BUILDING_ISSUE Adhemerval Zanella

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 read-only IMAP folder(s) and NNTP newsgroup(s).