Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Slackware - ARM This forum is for the discussion of Slackware ARM.


  Search this Thread
Old 10-08-2019, 12:15 PM   #1
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,142

Rep: Reputation: 158Reputation: 158
Question Using icecream to crossbuild with x86_64

So in the past, I have used distcc to build arm packages while using my x86_64 machines are part of my cluster without issues mostly. Lately, I've been using icecream to build of my x86_64 packages with great success so I started to explore the possibility of doing the same for arm. I already ran x-build on every node that will be involved in the compilation. When it comes time to run a compilation, I monitor all of my cores using Pat's script. None of the other cores pick up any jobs. All the work is still being done one the ARM board.

For distcc,this was the only staging that I needed to do:
V=cd /usr/lib64/
ln -sfv /devel/build-servers/x86_64/arm/bin/arm-slackware-linux-gnueabihf-c++ arm-slackware-linux-gnueabihf-c++
ln -sfv /devel/build-servers/x86_64/arm/bin/arm-slackware-linux-gnueabihf-g++ arm-slackware-linux-gnueabihf-g++
ln -sfv /devel/build-servers/x86_64/arm/bin/arm-slackware-linux-gnueabihf-gcc arm-slackware-linux-gnueabihf-gcc
ln -sfv /usr/lib64/distcc /usr/lib/
It didn't seem to make a difference. I even tried linking /usr/bin/icecc to /usr/libexec/icecc/bin/arm-slackware-linux-gnueabihf-gcc for example, but no luck. According to the icecream documentation, cross-compiling should work.

Any ideas are greatly appreciated.
Old 10-08-2019, 08:37 PM   #2
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,142

Original Poster
Rep: Reputation: 158Reputation: 158
So I think I have figured this out. It just needed different steps. Had to re-read the instructions several times and found a few articles that somewhat cleared the issue. Pat already includes /etc/profile.d/ that sets up the paths correctly.

What I had to do was the following:

Copy the contents of x-toolchain from here. Then run x-build from your x86 or x86_64 host.

After completion, run this command on the scheduler host:
icecc-create-env --gcc /devel/build-servers/x86_64/arm/bin/arm-slackware-linux-gnueabihf-gcc /devel/build-servers/x86_64/arm/bin/arm-slackware-linux-gnueabihf-g++ --addfile /devel/build-servers/x86_64/arm/bin/arm-slackware-linux-gnueabihf-c++
This will create a tar.gz file with a really long random sets of numbers and letters. You can rename this if you wish. Copy that tar.gz file to the host that will run the actual compilation. In this case the ARM board.

Once your tar.gz file is in the desired ARM host, run the following commands:
ICECC_VERSION=x86_64:/path/to/yourfile.tar.gz ./package.SlackBuild
That *should* do it. I'll mark this thread as solved and will update it if needed.


arm, cross-compile, icecream

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[HOWTO] Set up icecream 1337_powerslacker Slackware 7 01-31-2019 04:04 AM
Icecream distrobuted cross compiler djsmiley2k Linux - Software 3 10-21-2018 02:10 PM
Icecream Slackbuild fail mlpa Slackware 1 09-14-2012 09:36 AM
ipm timed out error on Red Hat 2.6.9-67.0.22.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/L bellnarm Linux - Newbie 0 07-07-2009 04:36 PM
LXer: Xen 3.2 on CentOS 5.2 x86_64 / RHEL 5.2 x86_64 LXer Syndicated Linux News 0 07-12-2008 05:51 PM > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 03:48 AM.

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