* [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed
@ 2020-08-14 9:38 0syf3r
2020-08-14 10:42 ` Duncaen
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: 0syf3r @ 2020-08-14 9:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 751 bytes --]
New issue by 0syf3r on void-packages repository
https://github.com/void-linux/void-packages/issues/24270
Description:
### System
* xuname:
*Void 5.7.12_1 x86_64 GenuineIntel notuptodate rrmFF*
* package:
*libgcc-32bit-9.3.0_6*
### Expected behavior
`gcc -m32` works.
### Actual behavior
/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/libgcc.a when searching for -lgcc
/bin/ld: cannot find -lgcc
/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/libgcc.a when searching for -lgcc
/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
### Steps to reproduce the behavior
Create test.c:
```
int main() { return 0; }
```
Run
`gcc test.c -o test -m32`
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
@ 2020-08-14 10:42 ` Duncaen
2020-08-14 11:58 ` 0syf3r
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Duncaen @ 2020-08-14 10:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/issues/24270#issuecomment-674013682
Comment:
You need `gcc-multilib` not `libgcc-32bit`.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
2020-08-14 10:42 ` Duncaen
@ 2020-08-14 11:58 ` 0syf3r
2020-08-14 12:00 ` 0syf3r
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: 0syf3r @ 2020-08-14 11:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 237 bytes --]
New comment by 0syf3r on void-packages repository
https://github.com/void-linux/void-packages/issues/24270#issuecomment-674039635
Comment:
What's the difference between 32bit and multilib? Pretty confusing naming scheme if you ask me.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
2020-08-14 10:42 ` Duncaen
2020-08-14 11:58 ` 0syf3r
@ 2020-08-14 12:00 ` 0syf3r
2020-08-14 12:03 ` ericonr
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: 0syf3r @ 2020-08-14 12:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 263 bytes --]
New comment by 0syf3r on void-packages repository
https://github.com/void-linux/void-packages/issues/24270#issuecomment-674039635
Comment:
What's the difference between 32bit and multilib? Pretty confusing naming scheme if you ask me.
It works now, so thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
` (2 preceding siblings ...)
2020-08-14 12:00 ` 0syf3r
@ 2020-08-14 12:03 ` ericonr
2020-08-14 12:04 ` Duncaen
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ericonr @ 2020-08-14 12:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 287 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/24270#issuecomment-674041620
Comment:
`libgcc-32bit` is the `libgcc` package for i686 made available on x86_64. `gcc-multilib` is the compiler capable of working in a multilib setup.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
` (3 preceding siblings ...)
2020-08-14 12:03 ` ericonr
@ 2020-08-14 12:04 ` Duncaen
2020-08-14 12:04 ` Duncaen
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Duncaen @ 2020-08-14 12:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/issues/24270#issuecomment-674041808
Comment:
`-32bit` are packages/libraries built for 32bit x86. `gcc-multilib` are just split out parts of the x86_64 gcc built for -m32 support.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
` (4 preceding siblings ...)
2020-08-14 12:04 ` Duncaen
@ 2020-08-14 12:04 ` Duncaen
2020-08-14 12:04 ` ericonr
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Duncaen @ 2020-08-14 12:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/issues/24270#issuecomment-674041808
Comment:
`-32bit` are packages/libraries built for 32bit x86. `gcc-multilib` are just split out parts of the x86_64 gcc for -m32 support.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
` (5 preceding siblings ...)
2020-08-14 12:04 ` Duncaen
@ 2020-08-14 12:04 ` ericonr
2020-08-14 12:05 ` ericonr
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ericonr @ 2020-08-14 12:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 230 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/24270#issuecomment-674041978
Comment:
Also, if you need to link to libgcc you probably need the `libgcc-devel-32bit` package.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
` (6 preceding siblings ...)
2020-08-14 12:04 ` ericonr
@ 2020-08-14 12:05 ` ericonr
2020-08-14 12:06 ` Duncaen
2020-08-14 12:07 ` [ISSUE] [CLOSED] " 0syf3r
9 siblings, 0 replies; 11+ messages in thread
From: ericonr @ 2020-08-14 12:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/24270#issuecomment-674041978
Comment:
~~Also, if you need to link to libgcc you probably need the `libgcc-devel-32bit` package.~~ You don't, it comes in gcc-multilib
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
` (7 preceding siblings ...)
2020-08-14 12:05 ` ericonr
@ 2020-08-14 12:06 ` Duncaen
2020-08-14 12:07 ` [ISSUE] [CLOSED] " 0syf3r
9 siblings, 0 replies; 11+ messages in thread
From: Duncaen @ 2020-08-14 12:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/issues/24270#issuecomment-674041808
Comment:
`-32bit` are packages/libraries built for 32bit x86. `gcc-multilib` just contains split out parts of the x86_64 gcc required for -m32 support.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ISSUE] [CLOSED] GCC cannot compile 32 bit programs even with libgcc-32bit installed
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
` (8 preceding siblings ...)
2020-08-14 12:06 ` Duncaen
@ 2020-08-14 12:07 ` 0syf3r
9 siblings, 0 replies; 11+ messages in thread
From: 0syf3r @ 2020-08-14 12:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 776 bytes --]
Closed issue by 0syf3r on void-packages repository
https://github.com/void-linux/void-packages/issues/24270
Description:
### System
* xuname:
`Void 5.7.12_1 x86_64 GenuineIntel uptodate rrmFF`
* package:
`gcc-9.3.0_6`
`libgcc-32bit-9.3.0_6`
### Expected behavior
`gcc -m32` works.
### Actual behavior
```
/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/libgcc.a when searching for -lgcc
/bin/ld: cannot find -lgcc
/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/libgcc.a when searching for -lgcc
/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
```
### Steps to reproduce the behavior
Create test.c:
```
int main() { return 0; }
```
Run
`gcc test.c -o test -m32`
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-08-14 12:07 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-14 9:38 [ISSUE] GCC cannot compile 32 bit programs even with libgcc-32bit installed 0syf3r
2020-08-14 10:42 ` Duncaen
2020-08-14 11:58 ` 0syf3r
2020-08-14 12:00 ` 0syf3r
2020-08-14 12:03 ` ericonr
2020-08-14 12:04 ` Duncaen
2020-08-14 12:04 ` Duncaen
2020-08-14 12:04 ` ericonr
2020-08-14 12:05 ` ericonr
2020-08-14 12:06 ` Duncaen
2020-08-14 12:07 ` [ISSUE] [CLOSED] " 0syf3r
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).