LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 09-23-2016, 03:56 AM   #1
spongetron
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 61

Rep: Reputation: Disabled
Cross compiler for RPi 2


I have a Raspberry Pi 2 running slackware-current. As compiling on the Pi is a bit slow I would like to setup a cross compiler on my slackware64 machine. Does anyone know a slackware specific how to on how to setup the environment?
 
Old 09-23-2016, 11:06 AM   #2
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,210

Rep: Reputation: 295Reputation: 295Reputation: 295
What about using Qemu or another virtual machine ?
 
Old 09-23-2016, 11:06 AM   #3
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,210

Rep: Reputation: 295Reputation: 295Reputation: 295
I dont know if it supports the ARM arch.
 
Old 09-23-2016, 11:30 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by spongetron View Post
I have a Raspberry Pi 2 running slackware-current. As compiling on the Pi is a bit slow I would like to setup a cross compiler on my slackware64 machine. Does anyone know a slackware specific how to on how to setup the environment?
http://slackware.uk/slackwarearm/sla...s/x-toolchain/
or
https://github.com/idlemoor/distcc-tools

Last edited by ponce; 09-23-2016 at 11:32 AM.
 
1 members found this post helpful.
Old 09-23-2016, 02:08 PM   #5
spongetron
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: Disabled
Thanks ponce, I will look into the distcc-tools.
 
Old 09-24-2016, 02:43 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,539

Rep: Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308
Quote:
Originally Posted by saxa View Post
I dont know if it supports the ARM arch.
QEMU supports ARM (check the installation documentation on arm.slackware.com) but there's no point using QEMU - it'll be slower than your RPI.
 
Old 09-24-2016, 01:22 PM   #7
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,539

Rep: Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308
The x-toolchain is not a full cross compiler toolchain -- e.g. you cannot use it on x86 alone - you run the build as normal on ARM and use distcc in place of gcc to farm out the compilation to x86.
alienBOB made a full toolchain when he did his hard float port. It's out of date now but probably it would not be too much work to update it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 03:03 PM
My c compiler doesn't work after the cross-compiler installed heracles.cn Linux - Newbie 1 06-05-2007 03:55 AM
Cross compiler !!! hiteshmaisheri Linux - Laptop and Netbook 3 03-05-2005 09:51 AM
cross compiler leonora Programming 2 01-08-2005 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration