LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-03-2012, 02:35 AM   #1
malloc
Member
 
Registered: Jul 2010
Posts: 111

Rep: Reputation: 4
64-bit nonsense


I have one laptop and one desktop which both run Slackware 13.37, 64-bit. On both I have used the Alien's approach to get multilib functionality (http://alien.slackbook.org/dokuwiki/...kware:multilib).

There should be no difference between these systems, yet on the desktop I get this when I try to compile the 3.1.6 kernel:

Code:
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
kernel/bounds.c:1:0: error: code model 'kernel' not supported in the 32 bit mode
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Whereas on the laptop I get no such error.

Why is this?
 
Old 01-03-2012, 03:58 AM   #2
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Have your tried:
Code:
 $ make ARCH=ia64 [...]
??

Edit: well more precisely, which target are you trying to compile (32/64) ? And then are you sure you didn't set the "32bit" compiling environment on one of your systems (.bashrc or /etc/profile.d/... ) ?

Last edited by NoStressHQ; 01-03-2012 at 04:00 AM.
 
Old 01-03-2012, 05:14 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Compiling 32-bit programs

In case you need to compile a 32-bit program (wine and grub are two examples of open source programs that are 32-bit only) you first configure your shell environment by running the command:

. /etc/profile.d/32dev.sh
http://alien.slackbook.org/dokuwiki/...kware:multilib

Maybe your /etc/profile.d/32dev.sh file is executable and sourced automatically each time you start a new shell ?
 
Old 01-03-2012, 05:46 AM   #4
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by Cedrik View Post
Maybe your /etc/profile.d/32dev.sh file is executable and sourced automatically each time you start a new shell ?
Hell well, I suspect something like this, and didn't encountered that problem, but reading your post I realize that /etc/profile.d might not be a clever (*) place for this file... At least to prevent problems like this, but more generally because it's not very coherent with the purpose of /etc/profile.d. Am I wrong ?

Cheers.

Garry.

(*) No offence AlienBob, I don't criticize your job, just raising a flag.

Edit: BTW, to the OP: You might want to specify 64bit/multilib in your title, as it is NOT a 64bit problem but more a multilib one... Or it seems to be.

Last edited by NoStressHQ; 01-03-2012 at 05:48 AM.
 
  


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: Patent nonsense LXer Syndicated Linux News 0 02-07-2010 02:00 AM
rpm nonsense?? joegimeno Linux - Software 2 07-12-2008 04:39 PM
Steam nonsense archvile Linux - Games 0 03-14-2004 07:23 AM
font nonsense with icewm iantri Slackware 1 12-27-2003 10:54 PM
Wvdial nonsense Vlad_M Linux - Software 0 11-28-2003 01:13 AM

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

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