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 Development

 
 
LinkBack Thread Tools
 
Old 09-07-2011, 03:52 PM
Nathaniel McCallum
 
Default Compiling 32bit on 64bit Fedora

"gcc -m32 -o foo foo.c" gives me:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file
or directory

If I copy the gnu/stubs-32.h file from the 32bit glibc-devel package
into the right place and run the command above again I get:
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping
incompatible /usr/lib/gcc/x86_64-redhat-linux/4.6.1/libgcc_s.so when
searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for
-lc
/usr/bin/ld: cannot find -lc
/usr/bin/ld: skipping
incompatible /usr/lib/gcc/x86_64-redhat-linux/4.6.1/libgcc_s.so when
searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: ld returned 1 exit status

Hrm...

Am I doing something wrong? Or is this a packaging bug? I can't think of
any reason why I shouldn't be able to compile at least a basic C program
with no deps as 32bit on 64bit.

Nathaniel
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-07-2011, 03:56 PM
Ricky Zhou
 
Default Compiling 32bit on 64bit Fedora

On 2011-09-07 11:52:58 AM, Nathaniel McCallum wrote:
> "gcc -m32 -o foo foo.c" gives me:
> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file
> or directory
>
> If I copy the gnu/stubs-32.h file from the 32bit glibc-devel package
> into the right place and run the command above again I get:
I don't think you should need to copy files manually like that - just
install glibc-devel.i686 and libgcc.i686.

Thanks,
Ricky
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-07-2011, 03:56 PM
Jakub Jelinek
 
Default Compiling 32bit on 64bit Fedora

On Wed, Sep 07, 2011 at 11:52:58AM -0400, Nathaniel McCallum wrote:
> "gcc -m32 -o foo foo.c" gives me:
> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file
> or directory
>
> If I copy the gnu/stubs-32.h file from the 32bit glibc-devel package
> into the right place and run the command above again I get:
> /usr/bin/ld: cannot find crt1.o: No such file or directory
> /usr/bin/ld: cannot find crti.o: No such file or directory
> /usr/bin/ld: skipping
> incompatible /usr/lib/gcc/x86_64-redhat-linux/4.6.1/libgcc_s.so when
> searching for -lgcc_s
> /usr/bin/ld: cannot find -lgcc_s
> /usr/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for
> -lc
> /usr/bin/ld: cannot find -lc
> /usr/bin/ld: skipping
> incompatible /usr/lib/gcc/x86_64-redhat-linux/4.6.1/libgcc_s.so when
> searching for -lgcc_s
> /usr/bin/ld: cannot find -lgcc_s
> /usr/bin/ld: cannot find crtn.o: No such file or directory
> collect2: ld returned 1 exit status
>
> Hrm...
>
> Am I doing something wrong? Or is this a packaging bug? I can't think of
> any reason why I shouldn't be able to compile at least a basic C program
> with no deps as 32bit on 64bit.

No, it is a user error. The packaging goal is that nobody is forced to have
32-bit packages installed on x86_64 (and similarly for other architectures).
So, if you want to compile/link 32-bit packages, you need to install a
minimal set of 32-bit packages (at least
yum install glibc-devel.i686 libgcc.i686
).

Jakub
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-07-2011, 03:56 PM
Tom Hughes
 
Default Compiling 32bit on 64bit Fedora

On 07/09/11 16:52, Nathaniel McCallum wrote:

> "gcc -m32 -o foo foo.c" gives me:
> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file
> or directory
>
> If I copy the gnu/stubs-32.h file from the 32bit glibc-devel package
> into the right place and run the command above again I get:

Installing the 32 bit glibc-devel package would probably have worked better.

> Am I doing something wrong? Or is this a packaging bug? I can't think of
> any reason why I shouldn't be able to compile at least a basic C program
> with no deps as 32bit on 64bit.

Well you can, but you do need things like glibc-devel.i686 to do it...

Tom

--
Tom Hughes (tom@compton.nu)
http://compton.nu/
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-07-2011, 04:04 PM
Nathaniel McCallum
 
Default Compiling 32bit on 64bit Fedora

On Wed, Sep 7, 2011 at 11:56 AM, Ricky Zhou <ricky@fedoraproject.org> wrote:
> On 2011-09-07 11:52:58 AM, Nathaniel McCallum wrote:
>> "gcc -m32 -o foo foo.c" gives me:
>> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file
>> or directory
>>
>> If I copy the gnu/stubs-32.h file from the 32bit glibc-devel package
>> into the right place and run the command above again I get:
> I don't think you should need to copy files manually like that - just
> install glibc-devel.i686 and libgcc.i686.

That was what I thought... Sot it was the first thing I tried (note,
this is F16):
$ sudo yum install glibc-devel.i686
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit,
remove-with-leaves, rpm-warm-cache, show-
: leaves, versionlock
Loading mirror speeds from cached hostfile
* fedora: www.gtlib.gatech.edu
* updates: mirrors.servercentral.net
* updates-testing: mirror.fdcservers.net
Setting up Install Process
No package glibc-devel.i686 available.
Error: Nothing to do
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-07-2011, 04:06 PM
Nathaniel McCallum
 
Default Compiling 32bit on 64bit Fedora

On Wed, Sep 7, 2011 at 12:04 PM, Nathaniel McCallum
<nathaniel@natemccallum.com> wrote:
> On Wed, Sep 7, 2011 at 11:56 AM, Ricky Zhou <ricky@fedoraproject.org> wrote:
>> On 2011-09-07 11:52:58 AM, Nathaniel McCallum wrote:
>>> "gcc -m32 -o foo foo.c" gives me:
>>> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file
>>> or directory
>>>
>>> If I copy the gnu/stubs-32.h file from the 32bit glibc-devel package
>>> into the right place and run the command above again I get:
>> I don't think you should need to copy files manually like that - just
>> install glibc-devel.i686 and libgcc.i686.
>
> That was what I thought... Sot it was the first thing I tried (note,
> this is F16):
> $ sudo yum install glibc-devel.i686
> Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit,
> remove-with-leaves, rpm-warm-cache, show-
> * * * * * * *: leaves, versionlock
> Loading mirror speeds from cached hostfile
> ** fedora: www.gtlib.gatech.edu
> ** updates: mirrors.servercentral.net
> ** updates-testing: mirror.fdcservers.net
> Setting up Install Process
> No package glibc-devel.i686 available.
> Error: Nothing to do

Could this be related to the recent events surrounding glibc that
caused RPMs to be pulled from the repo?
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-07-2011, 04:15 PM
Ricky Zhou
 
Default Compiling 32bit on 64bit Fedora

On 2011-09-07 12:04:06 PM, Nathaniel McCallum wrote:
> That was what I thought... Sot it was the first thing I tried (note,
> this is F16):
> $ sudo yum install glibc-devel.i686
> Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit,
> remove-with-leaves, rpm-warm-cache, show-
> : leaves, versionlock
> Loading mirror speeds from cached hostfile
> * fedora: www.gtlib.gatech.edu
> * updates: mirrors.servercentral.net
> * updates-testing: mirror.fdcservers.net
> Setting up Install Process
> No package glibc-devel.i686 available.
> Error: Nothing to do
Strange - just tried a yum clean all followed by yum install
glibc-devel.i686 libgcc.i686 on Kevin's F16 test machine - maybe
whatever issue with glibc-devel in the repos has been fixed now?

Thanks,
Ricky
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-07-2011, 04:23 PM
Nathaniel McCallum
 
Default Compiling 32bit on 64bit Fedora

On Wed, Sep 7, 2011 at 12:15 PM, Ricky Zhou <ricky@fedoraproject.org> wrote:
> On 2011-09-07 12:04:06 PM, Nathaniel McCallum wrote:
>> That was what I thought... Sot it was the first thing I tried (note,
>> this is F16):
>> $ sudo yum install glibc-devel.i686
>> Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit,
>> remove-with-leaves, rpm-warm-cache, show-
>> * * * * * * * : leaves, versionlock
>> Loading mirror speeds from cached hostfile
>> ** fedora: www.gtlib.gatech.edu
>> ** updates: mirrors.servercentral.net
>> ** updates-testing: mirror.fdcservers.net
>> Setting up Install Process
>> No package glibc-devel.i686 available.
>> Error: Nothing to do
> Strange - just tried a yum clean all followed by yum install
> glibc-devel.i686 libgcc.i686 on Kevin's F16 test machine - maybe
> whatever issue with glibc-devel in the repos has been fixed now?

I don't appear to have any i[356]86 packages in any of the repos on my
F16 box. Is there an rpm I'm missing?
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-07-2011, 05:01 PM
Michael Cronenworth
 
Default Compiling 32bit on 64bit Fedora

Nathaniel McCallum wrote:
> I don't appear to have any i[356]86 packages in any of the repos on my
> F16 box. Is there an rpm I'm missing?

How are you making this determination? At first glance, this mirror[1]
has 32-bit and 64-bit binaries.

[1]
http://mirror.hiwaay.net/pub/fedora/linux/development/16/x86_64/os/Packages/
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-07-2011, 05:04 PM
Kevin Fenzi
 
Default Compiling 32bit on 64bit Fedora

On Wed, 7 Sep 2011 12:23:11 -0400
Nathaniel McCallum <nathaniel@natemccallum.com> wrote:

> I don't appear to have any i[356]86 packages in any of the repos on my
> F16 box. Is there an rpm I'm missing?

No, it should show them out of the box.

Does:

yum --noplugins list glibc-devel.i686

work?

do you have any excludes= in /etc/yum.conf or /etc/yum.repos.d/* ?

kevin
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 

Thread Tools




All times are GMT. The time now is 07:42 AM.

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