LinuxQuestions.org
Visit Jeremy's Blog.
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 05-28-2013, 11:11 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
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, 01:53 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
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, 04:48 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
but like I said, I want to prepare packages for another arch...
 
Old 05-29-2013, 06:42 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 08:24 AM   #5
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
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, 08:34 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 04: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



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 04:09 PM
GNOME SlackBuild 2.30 for x86 and x86_64 released fidesratio Slackware 57 10-29-2010 01:41 PM
LiveCD/USB kits for ARCH x86/x86_64 now ready! linus72 Arch 2 07-30-2010 05:16 PM
[SOLVED] arch - x86 or x86_64? Gerard Lally Linux - Kernel 2 04-29-2010 07:00 PM
fbreader.SlackBuild uses /usr/lib in x86_64 gapan Slackware 6 01-13-2010 04:42 PM

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

All times are GMT -5. The time now is 09:33 PM.

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