Re: Compiling 32bit on 64bit Fedora
On Sun, Sep 11, 2011 at 6:21 PM, Reindl Harald wrote: > > > Am 11.09.2011 18:18, schrieb drago01: 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. >>> >>> it's worth noting a 'cleaner' way to do this than messing up your main >>> system with 32-bit packages >> >> Not seeing what the "mess up" is really ... (having 32bit libs/apps >> does not hurt in any way ... a chroot does use even more diskpace) > > but not as default installed I didn't suggest that. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Compiling 32bit on 64bit Fedora
Am 11.09.2011 18:18, schrieb drago01: >>> 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. >> >> it's worth noting a 'cleaner' way to do this than messing up your main >> system with 32-bit packages > > Not seeing what the "mess up" is really ... (having 32bit libs/apps > does not hurt in any way ... a chroot does use even more diskpace) but not as default installed from 1000 users only 2 using any compiler and on ALL of my machines there is no single 32bit Lib installed and has never to be installed for compiling generally a virtual machine is recommended instead install tons of dependencies on the work system signature.asc Description: OpenPGP digital signature -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Compiling 32bit on 64bit Fedora
On Wed, Sep 7, 2011 at 9:35 PM, Adam Williamson wrote: > On Wed, 2011-09-07 at 11:52 -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. > > it's worth noting a 'cleaner' way to do this than messing up your main > system with 32-bit packages Not seeing what the "mess up" is really ... (having 32bit libs/apps does not hurt in any way ... a chroot does use even more diskpace). -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: yum-builddep (Re: Compiling 32bit on 64bit Fedora)
On Thu, Sep 08, 2011 at 10:37:10AM +0300, Panu Matilainen wrote: > On 09/08/2011 03:44 AM, Tony Breeds wrote: > > Hi All, > > On a related but different note. How hard would it be to get > > yum-builddep to take an --arch arg to that we can esily get the 32-bit > > builddeps on a 64-bit system? > > It's been recently implemented at upstream, see > https://bugzilla.redhat.com/show_bug.cgi?id=734983 for details. > > Note that this is only possible when feeding spec-files to yum-builddep, > and even then it requires that spec BuildRequires are using %{_isa} > where relevant. Thanks I'll test it out when it hits rawhide. Yours Tony -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: yum-builddep (Re: Compiling 32bit on 64bit Fedora)
On Thu, Sep 08, 2011 at 09:27:20AM -0400, Adam Jackson wrote: > On Thu, 2011-09-08 at 10:44 +1000, Tony Breeds wrote: > > Hi All, > > On a related but different note. How hard would it be to get > > yum-builddep to take an --arch arg to that we can esily get the 32-bit > > builddeps on a 64-bit system? > > Is 'setarch i686 yum-builddep foo' not enough? I swear when I tried that nothing sensible happend. However trying it again today it seems to do the right thing for the 1 or 2 packages I care about. Yours Tony -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: yum-builddep (Re: Compiling 32bit on 64bit Fedora)
On 09/08/2011 06:27 AM, Adam Jackson wrote: > On Thu, 2011-09-08 at 10:44 +1000, Tony Breeds wrote: >> Hi All, >> On a related but different note. How hard would it be to get >> yum-builddep to take an --arch arg to that we can esily get the 32-bit >> builddeps on a 64-bit system? > > Is 'setarch i686 yum-builddep foo' not enough? It seems rather nasty to wholly switch repo archs, when what you really want are the multilibs as they exist in the x84_64 repo. For instance, you need glibc-devel.i686, but pkgconfig.x86_64 will do just fine. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: yum-builddep (Re: Compiling 32bit on 64bit Fedora)
On Thu, 2011-09-08 at 10:44 +1000, Tony Breeds wrote: > Hi All, > On a related but different note. How hard would it be to get > yum-builddep to take an --arch arg to that we can esily get the 32-bit > builddeps on a 64-bit system? Is 'setarch i686 yum-builddep foo' not enough? - ajax signature.asc Description: This is a digitally signed message part -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: yum-builddep (Re: Compiling 32bit on 64bit Fedora)
On 09/08/2011 03:44 AM, Tony Breeds wrote: > Hi All, > On a related but different note. How hard would it be to get > yum-builddep to take an --arch arg to that we can esily get the 32-bit > builddeps on a 64-bit system? It's been recently implemented at upstream, see https://bugzilla.redhat.com/show_bug.cgi?id=734983 for details. Note that this is only possible when feeding spec-files to yum-builddep, and even then it requires that spec BuildRequires are using %{_isa} where relevant. - Panu - -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
yum-builddep (Re: Compiling 32bit on 64bit Fedora)
Hi All, On a related but different note. How hard would it be to get yum-builddep to take an --arch arg to that we can esily get the 32-bit builddeps on a 64-bit system? Yours Tony -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Compiling 32bit on 64bit Fedora
On Wed, Sep 7, 2011 at 2:35 PM, Adam Williamson wrote: > it's worth noting a 'cleaner' way to do this than messing up your main > system with 32-bit packages is to use mock: you can use mock -r > fedora-16-i386 --shell to give yourself interactive access to a nice > clean 32-bit buildroot, then install all the devel packages and > compilers you need, and build your code. Might not be what you want, but > I thought it was worth mentioning. I don't think yum will run inside the chroot by default so make sure you install everything you need on the front end. I usually do it like this (some steps may be able to be combined, but it works, so I haven't experimented). mock -r --init mock -r --install mock -r --shell The first two lines are also useful if you run into a situation where you're working on a review request which has dependencies that are not in the repos yet (i.e., may also be under review). Richard -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Compiling 32bit on 64bit Fedora
On Wed, 2011-09-07 at 11:52 -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. it's worth noting a 'cleaner' way to do this than messing up your main system with 32-bit packages is to use mock: you can use mock -r fedora-16-i386 --shell to give yourself interactive access to a nice clean 32-bit buildroot, then install all the devel packages and compilers you need, and build your code. Might not be what you want, but I thought it was worth mentioning. -- Adam Williamson Fedora QA Community Monkey IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora http://www.happyassassin.net -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Compiling 32bit on 64bit Fedora
On Wed, 7 Sep 2011 12:04:06 -0400, NM (Nathaniel) 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 The full show, please. "yum list glibc-devel" at least. Plus any attempts at pruning your Yum plugins and querying the repositories. http://www.gtlib.gatech.edu/pub/fedora.redhat/linux/development/16/x86_64/os/Packages/glibc-devel-2.14.90-4.i686.rpm -- Fedora release 16 (Verne) - Linux 3.1.0-0.rc4.git0.0.fc16.x86_64 loadavg: 0.49 0.23 0.15 -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Compiling 32bit on 64bit Fedora
On Wed, Sep 7, 2011 at 1:04 PM, Kevin Fenzi wrote: > On Wed, 7 Sep 2011 12:23:11 -0400 > 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? > > No, it should show them out of the box. > > Does: > > yum --noplugins list glibc-devel.i686 > > work? Yes, It does! Which plugin would filter those out? -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Compiling 32bit on 64bit Fedora
On Wed, 7 Sep 2011 12:23:11 -0400 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? 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 signature.asc Description: PGP signature -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: 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
Re: Compiling 32bit on 64bit Fedora
On Wed, Sep 7, 2011 at 12:15 PM, Ricky Zhou 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
Re: 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 pgpbR5Q3MUw7Q.pgp Description: PGP signature -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Compiling 32bit on 64bit Fedora
On Wed, Sep 7, 2011 at 12:04 PM, Nathaniel McCallum wrote: > On Wed, Sep 7, 2011 at 11:56 AM, Ricky Zhou 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
Re: Compiling 32bit on 64bit Fedora
On Wed, Sep 7, 2011 at 11:56 AM, Ricky Zhou 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
Re: 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 (t...@compton.nu) http://compton.nu/ -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: 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
Re: 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 pgp2FyVRUwoJp.pgp Description: PGP signature -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
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