You are not logged in.

#1 2021-01-21 16:10:20

PhilSmith
Member
Registered: 2018-08-10
Posts: 24

[solved] compilation with "gcc -m32" fails

Hello everybody,

I am trying to use makepkg to install lib32-glib and lib32-gtk.
However, in PKGBUILD the "-m32" option causes this to fail saying:

configure: error: C compiler cannot create executables

The piece of code in PKGBUILD:

build() {
  export CC="gcc -m32"
  // ...
}

I am thinking of trying out gcc-multilib-trunk but that is more of a guess.

Can anyone help?

Last edited by PhilSmith (2021-01-21 16:50:13)


Asus Prime X570-Pro | Ryzen 9 3900X | Fractac Design Ion+ 660P | Thermaltake View 71 TG RGB+ |
Asus GTX 1660 Super | 2x 16GB GSkill DDR4 3600 16-19-19-39 | 1TB WD Black SN850 PCIe 4.0 SSD

Offline

#2 2021-01-21 16:25:34

Bevan
Member
Registered: 2009-09-08
Posts: 99

Re: [solved] compilation with "gcc -m32" fails

You probably need to install the packages in the multilib-devel group:

pacman -S multilib-devel

Make sure to have the multilib repository enabled in /etc/pacman.conf.

PS: In multilib there also packages like lib32-gtk2, lib32-gtk3 and lib32-glib2 readily available.

Last edited by Bevan (2021-01-21 16:27:38)

Offline

#3 2021-01-21 16:49:57

PhilSmith
Member
Registered: 2018-08-10
Posts: 24

Re: [solved] compilation with "gcc -m32" fails

Bevan wrote:

You probably need to install the packages in the multilib-devel group:

pacman -S multilib-devel

Make sure to have the multilib repository enabled in /etc/pacman.conf.

PS: In multilib there also packages like lib32-gtk2, lib32-gtk3 and lib32-glib2 readily available.

Thank you - solved!

Considering your "PS" - I really meant the exact packages not *2 or *3.
I'm trying to replay c2rust's quake3 to rust port in order to verify some of their claims.

Thanks again!


Asus Prime X570-Pro | Ryzen 9 3900X | Fractac Design Ion+ 660P | Thermaltake View 71 TG RGB+ |
Asus GTX 1660 Super | 2x 16GB GSkill DDR4 3600 16-19-19-39 | 1TB WD Black SN850 PCIe 4.0 SSD

Offline

Board footer

Powered by FluxBB