LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-12-2022, 12:56 PM   #1
dodoLQ
Member
 
Registered: Dec 2014
Location: France
Distribution: Slackware
Posts: 213

Rep: Reputation: Disabled
Cross-compiling on a x86_64 arch


Hi, compilation of PaleMoon on a P4 (32bits) takes lots of time and i want to known if i can speed up the job under an x86_64 arch by cross-compiling.. I've a core-i5 here running Slack64-15.0. How can i proceed? Latest compilation of PaleMoon-31.1.1 took about ~ 20h /o\ Thanks
 
Old 07-12-2022, 02:02 PM   #2
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Quote:
Originally Posted by dodoLQ View Post
Hi, compilation of PaleMoon on a P4 (32bits) takes lots of time and i want to known if i can speed up the job under an x86_64 arch by cross-compiling.. I've a core-i5 here running Slack64-15.0. How can i proceed?
I am not familiar with compilation of PaleMoon, but maybe it would be possible to cross compile for 32 bit on Slackware64 if you have multilib installed. To do this you would have to make sure that the flag "-m32" is passed to gcc. Depending on the level of support for this in existing configuration scripts and Makefiles it might be tricky. If you are lucky, it might be enough to do "export CFLAGS=-m32" before running "./configure".

Your core-i5 is probably capable of running a virtual machine. If you install something like qemu, you can install a 32 bit Slackware in a virtual machine. That virtual machine will get good CPU performance if the intel_kvm module is loaded and qemu is started with "--enable-kvm". Compiling in a 32 bit installation in a virtual machine is not cross compiling, but it might be the easiest way to solve your problem.

Above are two different ways forward, depending on your configuration and the functionality of PaleMoon I hope that you will find at least one of these options easy enough.

regards Henrik
 
2 members found this post helpful.
Old 07-13-2022, 05:55 AM   #3
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
You can do that for sure with multilib installed. I never tried using 32bit packages prepared in 64bit system. You may also create a 32bit chroot on 64bit system. It may work better. Have a look at the below wiki page for how to create 32bir chroot and compile packages.
https://docs.slackware.com/howtos:ge...ackware_chroot
 
1 members found this post helpful.
Old 07-14-2022, 05:15 AM   #4
dodoLQ
Member
 
Registered: Dec 2014
Location: France
Distribution: Slackware
Posts: 213

Original Poster
Rep: Reputation: Disabled
Ok, thanks for your replys guys
 
  


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
[SOLVED] Cross-Compiling on ARM from x86_64: Undef ref to rplmalloc/realloc johnp Linux - Software 3 07-13-2013 05:04 PM
[cross compiling]x86_64 system, compile target i686 ////// Programming 1 03-31-2011 03:56 AM
cross compiling for x86 x86_64, for RHEL, Ubuntu, SLES deadeyes Linux - General 11 04-21-2010 06:50 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
Cross-compiling v/s cross-building kushalkoolwal Programming 3 05-13-2009 05:49 AM

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

All times are GMT -5. The time now is 02:59 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