[opensuse] -m32 switch and gcc
LS, I try to cross-compile some packages, but using -m32 as an option to the gcc line does not work. I get nothing compiled. During configure no working compiler is found. I have no 32-bit compiler installed but uses the standard 64-bit compiler as distributed by Leap 15 and Tumbleweed. The should support also i?38 processors. I am missing something, but exactly what? Regards, Frans. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi Frans, -m32 should work on the 64-bit-gcc. Do you have the 32-bit-libraries such as glibc-devel-32bit installed? ~ Simon Am 11.12.18 um 22:10 schrieb Frans de Boer:
LS,
I try to cross-compile some packages, but using -m32 as an option to the gcc line does not work. I get nothing compiled. During configure no working compiler is found.
I have no 32-bit compiler installed but uses the standard 64-bit compiler as distributed by Leap 15 and Tumbleweed. The should support also i?38 processors.
I am missing something, but exactly what?
Regards, Frans.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
12.12.2018 0:10, Frans de Boer пишет:
LS,
I try to cross-compile some packages, but using -m32 as an option to the gcc line does not work. I get nothing compiled. During configure no working compiler is found.
And we should guess what compiler options you were using, how your compiler invocation looks like and what errors you get ...
I have no 32-bit compiler installed but uses the standard 64-bit compiler as distributed by Leap 15 and Tumbleweed. The should support also i?38 processors.
I am missing something, but exactly what?
It depends on what exactly you are trying to do and what exact error you get. bor@bor-Latitude-E5450:~$ cat /tmp/foo.c int foo () { return 0; } bor@bor-Latitude-E5450:~$ cc -m32 -c -o /tmp/foo.o /tmp/foo.c bor@bor-Latitude-E5450:~$ file /tmp/foo.o /tmp/foo.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped bor@bor-Latitude-E5450:~$
Regards, Frans.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Dec 11, 2018 at 10:10:35PM +0100, Frans de Boer wrote:
LS,
I try to cross-compile some packages, but using -m32 as an option to the gcc line does not work. I get nothing compiled. During configure no working compiler is found.
I have no 32-bit compiler installed but uses the standard 64-bit compiler as distributed by Leap 15 and Tumbleweed. The should support also i?38 processors.
I am missing something, but exactly what?
probably at least the gcc-32bit RPM, and also various other -32bit packages. Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12-12-18 08:55, Marcus Meissner wrote:
LS,
I try to cross-compile some packages, but using -m32 as an option to the gcc line does not work. I get nothing compiled. During configure no working compiler is found.
I have no 32-bit compiler installed but uses the standard 64-bit compiler as distributed by Leap 15 and Tumbleweed. The should support also i?38 processors.
I am missing something, but exactly what?
On Tue, Dec 11, 2018 at 10:10:35PM +0100, Frans de Boer wrote: probably at least the gcc-32bit RPM, and also various other -32bit packages.
Ciao, Marcus
As it turns out, I did not had the 32-bit gcc installed, including some other 32-bit dev. files. I would have expected that the 64-bit version was capable of generating 32-bit versions too, but I was wrong. -- Frans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Andrei Borzenkov
-
Frans de Boer
-
Marcus Meissner
-
Simon Heimbach