LinuxQuestions.org
Review your favorite Linux distribution.
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 05-28-2013, 12:11 PM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Rep: Reputation: 36
generating slackbuild pgks in $ARCH=x86_64 for an x86 pc


Hello everyone,
I want to generate some slackbuilds (things I can't find in slackbuilds.org), related with audio mostly.

I also would prefer to carry out the slackbuild scripts generation and the building of packages in a x86_64 pc. The slackbuilds are universal of course, but I need to the precompiled binary packages on a x86 pc.

What do you propose as a best way to go about it?

The safe way is to create a vm and do everything there.
could (and should) I just define on the x86_64,
Quote:
ARCH=x86
and let the script run resolving $ARCH like this?
some other way?
 
Old 05-28-2013, 02:53 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,621

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
the script will be able to determine your architecture, so no need to define it explicitly (even though it also works)
 
Old 05-29-2013, 05:48 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Original Poster
Rep: Reputation: 36
but like I said, I want to prepare packages for another arch...
 
Old 05-29-2013, 07:42 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,652
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
I usually compile packages for my 32 bit systems in a clean chroot of Slackware 32 bit on a machine running 64 bit Slackware with
Code:
ARCH=i486
 
Old 05-29-2013, 09:24 AM   #5
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by TobiSGD View Post
I usually compile packages for my 32 bit systems in a clean chroot of Slackware 32 bit on a machine running 64 bit Slackware with
Code:
ARCH=i486
This is what I do as well. I actually export this setting in .profile (IIRC) so when I chroot into the 32 bit system the ARCH is set for me.
 
Old 05-29-2013, 09:34 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,652
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Quote:
Originally Posted by chess View Post
This is what I do as well. I actually export this setting in .profile (IIRC) so when I chroot into the 32 bit system the ARCH is set for me.
I have it in my .zshrc, but of course that works the same.
 
Old 05-29-2013, 05:21 PM   #7
torimus
Member
 
Registered: Apr 2013
Distribution: Slackware
Posts: 81

Rep: Reputation: Disabled
You would need a cross compiler to build for other architectures. As far as I know Slackware distributes gcc without multitarget support. Just try gcc -dumpmachine to see available platforms.

You either need to rebuild gcc & binutils to enable cross-compiling or do a separate install of the target platform - in virtual machine or directly if natively supported by your hardware.
Alien's gcc may also be used for x86 / x86_64 crosscompiling but I didn't personally tested. Maybe someone else may confirm/disprove it.
 
  


Reply

Tags
arch, slackbuilds


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
[SOLVED] How to compile only specific arch code (linux-3.8.2/arch/x86) ?. abdulrahuman.s@gmail.com Linux - Kernel 6 05-18-2013 05:09 PM
GNOME SlackBuild 2.30 for x86 and x86_64 released fidesratio Slackware 57 10-29-2010 02:41 PM
LiveCD/USB kits for ARCH x86/x86_64 now ready! linus72 Arch 2 07-30-2010 06:16 PM
[SOLVED] arch - x86 or x86_64? gezley Linux - Kernel 2 04-29-2010 08:00 PM
fbreader.SlackBuild uses /usr/lib in x86_64 gapan Slackware 6 01-13-2010 05:42 PM


All times are GMT -5. The time now is 08:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration