Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#8369 - Compile in 32bit mode on x86_64 fails

Attached to Project: Arch Linux
Opened by Erwin Van de Velde (evdvelde) - Monday, 22 October 2007, 10:01 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 22 October 2007, 15:25 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
GCC lacks the 32 bit stubs to compile code with the -m32:

Output:
g++ -m32 -ggdb -Wall -Wextra -Werror -c -I../include/ AliveKeeper.cpp -o AliveKeeper.o
In file included from /usr/include/features.h:345,
from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../../../include/c++/4.2.2/x86_64-unknown-linux-gnu/./bits/os_defines.h:44,
from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../../../include/c++/4.2.2/x86_64-unknown-linux-gnu/./bits/c++config.h:41,
from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../../../include/c++/4.2.2/string:45,
from Messages.h:10,
from Constants.h:10,
from AliveKeeper.cpp:5:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory


Additional info:
* package version(s)
gcc 4.2.2-2


Steps to reproduce:
Compile C/C++ code with -m32 flag
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 22 October 2007, 15:25 GMT
Reason for closing:  Won't implement
Additional comments about closing:  read Arch64 FAQ in our Wiki!
Comment by Pierre Schmitz (Pierre) - Monday, 22 October 2007, 11:32 GMT
Install the 32bit version of arch within a chroot environment and compile there.
Comment by Erwin Van de Velde (evdvelde) - Monday, 22 October 2007, 11:37 GMT
This seems like a lot of overhead just to test something with software that needs to be compiled as 32bit. Changing the package (as happens on other distributions!) seems a lot easier...
Comment by Pierre Schmitz (Pierre) - Monday, 22 October 2007, 11:46 GMT
No, it's not. :-)
Comment by Jan de Groot (JGC) - Monday, 22 October 2007, 11:47 GMT
So the next question would be to add a multilib installation of gcc-libs, as you can't link without a 32bit version of this library.

Loading...