LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-25-2012, 04:44 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Problem building 32-bit and 64-bit packages


In a recent post that I now can't find, somebody mentioned a problem with some software compiling and working correctly with 64-bit but not with 32-bit. I have run into that problem with some non stock Slackware software I'm compiling.

The problem is not correctly detecting large files, specifically DVD ISO images. The problem occurs only in the 32-bit build but detects those files correctly in the 64-bit build.

Although the problem could be a system library not having proper support for 64 bit variables, files, etc., I suspect I'm doing something wrong that causes the build process to fail to recognize large files in 32-bit systems.

I use separate and clean build environments for both the 32-bit and 64-bit builds. No multilibs. No cross contamination (that I am aware). Other than this peculiar problem, everything otherwise builds and functions correctly.

I appreciate all ideas where to troubleshoot.

Thanks!
 
Old 09-25-2012, 05:01 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Not sure at all it be relevant but maybe have a look here.
 
Old 09-25-2012, 07:34 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
In my 32-bit build log output I notice the following:

checking size of long... 4
checking size of char *... 4
checking size of size_t... 4
checking size of unsigned long... 4

In my 64-bit log:

checking size of long... 8
checking size of char *... 8
checking size of size_t... 8
checking size of unsigned long... 8

Is there a way to control those sizes?

When I use the terms 32-bit and 64-bit I am referring to the build environment and not my hardware. All builds are performed on the same AMD 64-bit dual core CPU system.
 
Old 09-26-2012, 12:52 AM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Woodsman View Post
In my 32-bit build log output I notice the following:

checking size of long... 4
checking size of char *... 4
checking size of size_t... 4
checking size of unsigned long... 4

In my 64-bit log:

checking size of long... 8
checking size of char *... 8
checking size of size_t... 8
checking size of unsigned long... 8

Is there a way to control those sizes?
Why on earth do you think those values are wrong?

A 32 bit pointer (char *) is 4 bytes long. A 64 bit pointer (char *) is 8 bytes long. A long is a minimum of 4 bytes but can be larger if the runtime supports it.
 
Old 09-26-2012, 04:56 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Woodsman View Post
The problem is not correctly detecting large files, specifically DVD ISO images. The problem occurs only in the 32-bit build but detects those files correctly in the 64-bit build.
Try to be more specific than this, please. It makes no sense what you are telling here.
What are you trying to compile. Why is this compilation trying to find a DVD ISO? What are the error messages?

Eric
 
Old 09-26-2012, 05:44 AM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,780

Rep: Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459
Quote:
Originally Posted by Woodsman View Post
The problem is not correctly detecting large files, specifically DVD ISO images. The problem occurs only in the 32-bit build but detects those files correctly in the 64-bit build.
Maybe you need to add "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" in CFLAGS.

Last edited by Petri Kaukasoina; 09-26-2012 at 09:17 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
[SOLVED] building shared libary in 32 bit mode on 64 bit machine using -m32 option gaurav.rustagi Linux - Software 3 01-24-2012 09:03 AM
[SOLVED] building shared libary in 32 bit mode on 64 bit machine using -m32 option gaurav.rustagi Linux - Newbie 1 01-24-2012 07:54 AM
[SOLVED] Installing 32 bit RPMs on 64 bit Linux conflicts with 64 bit packages gheibia Linux - Server 1 08-18-2011 01:33 AM
32-bit Packages and 64-Bit Packages with Included Multilib on One SlackBuild foodown Slackware 1 03-11-2011 08:40 PM
[SOLVED] RHEL 6 64 bit building 32 bit programs jwenzel09 Red Hat 9 11-16-2010 01:34 AM

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

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