FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 06-17-2008, 03:11 PM
John Burton
 
Default Fedora 9 x86_64 system compiling for i386

I have a MacBook Pro with Core 2 Duo processors (64bit). I originally
had a straight install of Fedora 8 on it, which worked fine. My first
mistake was trying to upgrade to Fedora 9. It had problems upgrading
basic packages. Then I tried a clean install of Fedora 9 (backup /
format / install). I had better luck getting a functional system, but
now I've run into another roadblock....


I use my laptop as a development platform in a network with a mix of
i386 and x86_64 linux boxes. On the current project I'm working on, we
develop for the "lowest common denominator", which is i386. Other
projects we compile to x86_64 so I need to be able to do both relatively
transparently. The libraries for the current project are on our network
fileserver and are i386. With fedora 8 this was no problem whatsoever -
I just use the "-m32" switch when compiling on my machine and everything
worked. With Fedora 9 the first hint of disaster was an error message


"/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or
directory"


Okay, so for whatever reason, the i386 compatibility libraries /
includes / whatever weren't installed. I go to install them and guess
what, there is no such animal in any of the fedora 9 repositories. Doing
a little more research, I find that the "gnu/stubs" files are in
glibc-headers. Fedora 9 uses version 2.8.3 for x86_64. I find the
glibc-headers-2.8.3.i386.rpm file on RPMFIND. When I try to install it,
many of the files conflict with ones from glibc-headers-2.8.3.x86_64.rpm.


How can I compile and link C, C++, and FORTRAN code for the i386
architecture on my x86_64 machine. It used to work fine under Fedora 8,
but now seems completely broken under Fedora 9. Also, why was this
distribution released when it can't even upgrade from a plain vanilla
Fedora 8 x86_64 installation to a plain Fedora 9 x86_64 installation -
instead of a simple upgrade, I had to do a clean install. I've used
Redhat / Fedora distributions since the first Redhat distribution came
out and I've never had this much trouble upgrading...


John

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 06-17-2008, 03:59 PM
Antonio Olivares
 
Default Fedora 9 x86_64 system compiling for i386

--- On Tue, 6/17/08, John Burton <j.c.burton@gats-inc.com> wrote:

> From: John Burton <j.c.burton@gats-inc.com>
> Subject: Fedora 9 x86_64 system compiling for i386
> To: fedora-list@redhat.com
> Date: Tuesday, June 17, 2008, 8:11 AM
> I have a MacBook Pro with Core 2 Duo processors (64bit). I
> originally
> had a straight install of Fedora 8 on it, which worked
> fine. My first
> mistake was trying to upgrade to Fedora 9. It had problems
> upgrading
> basic packages. Then I tried a clean install of Fedora 9
> (backup /
> format / install). I had better luck getting a functional
> system, but
> now I've run into another roadblock....
>
> I use my laptop as a development platform in a network with
> a mix of
> i386 and x86_64 linux boxes. On the current project I'm
> working on, we
> develop for the "lowest common denominator",
> which is i386. Other
> projects we compile to x86_64 so I need to be able to do
> both relatively
> transparently. The libraries for the current project are on
> our network
> fileserver and are i386. With fedora 8 this was no problem
> whatsoever -
> I just use the "-m32" switch when compiling on my
> machine and everything
> worked. With Fedora 9 the first hint of disaster was an
> error message
>
> "/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h:
> No such file or
> directory"
>
> Okay, so for whatever reason, the i386 compatibility
> libraries /
> includes / whatever weren't installed. I go to install
> them and guess
> what, there is no such animal in any of the fedora 9
> repositories. Doing
> a little more research, I find that the
> "gnu/stubs" files are in
> glibc-headers. Fedora 9 uses version 2.8.3 for x86_64. I
> find the
> glibc-headers-2.8.3.i386.rpm file on RPMFIND. When I try to
> install it,
> many of the files conflict with ones from
> glibc-headers-2.8.3.x86_64.rpm.
>
I had an experience like this
> /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

But Ralf gave me direction and helped me here.

# rpm -qf /usr/include/gnu/stubs-32.h
glibc-devel-2.8-3.i386

The solution was to install the .i386 packages for what you need. I just did a yum list nameofpackage* and I have x86_64 bit machine as well, I got the i386 packages and was good to go. You may need to do the same.

As for the names of the packages, I do not know which ones specifically you need.

> How can I compile and link C, C++, and FORTRAN code for the
> i386
> architecture on my x86_64 machine.

Install the i386 devel packages and this should work.

Regards,

Antonio




--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 06-17-2008, 04:16 PM
John Burton
 
Default Fedora 9 x86_64 system compiling for i386

Antonio Olivares wrote:

--- On Tue, 6/17/08, John Burton <j.c.burton@gats-inc.com> wrote:



I had an experience like this


/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory



But Ralf gave me direction and helped me here.

# rpm -qf /usr/include/gnu/stubs-32.h
glibc-devel-2.8-3.i386

The solution was to install the .i386 packages for what you need. I just did a yum list nameofpackage* and I have x86_64 bit machine as well, I got the i386 packages and was good to go. You may need to do the same.


As for the names of the packages, I do not know which ones specifically you need.


Thanks for the response. I had come to the same conclusion "The solution
is to install the .i386 packages..." but unfortunately when I did a "yum
list..." there were no .i386 packages listed for what I needed. Thats
where the problem was...


John

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 04:34 PM.

VBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org