You are not logged in.

#1 2016-07-14 13:49:33

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

[SOLVED] Please explain pkg-config 32 bit and 64 bit differences

The package  pkg-config-0.29.1-1-x86_64.pkg.tar.xz  contains the following file:
/usr/bin/x86_64-unknown-linux-gnu-pkg-config
while the package pkg-config-0.29.1-1-i686.pkg.tar.xz contains the following one:
/usr/bin/i686-pc-linux-gnu-pkg-config

Why is there that *unknown* vs. *pc* difference?

The reason I'm asking is that my d1x-rebirth package won't build now on 64 bit, because it tries to run this file:
/usr/bin/x86_64-pc-linux-gnu-pkg-config

Last edited by SanskritFritz (2016-07-28 15:46:06)


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#2 2016-07-14 14:01:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] Please explain pkg-config 32 bit and 64 bit differences

Offline

#3 2016-07-14 20:29:46

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: [SOLVED] Please explain pkg-config 32 bit and 64 bit differences

I'm not sure, for me that seems so that pacman is now compiled with the x86_64-pc-linux-gnu triplet. One more reason I start to think that the pkg-config package should contain the /usr/bin/x86_64-pc-linux-gnu-pkg-config file. But TBH I don't know how the filename is generated. The d1x-rebirth scons script generates the name like this:

os.environ['CHOST']

zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#4 2016-07-15 02:53:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] Please explain pkg-config 32 bit and 64 bit differences

It likely should, the current package is from before the switch.

Offline

#5 2016-07-15 15:06:58

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: [SOLVED] Please explain pkg-config 32 bit and 64 bit differences

After some googling and readings in the wiki I came up with this workaround:

In /etc/makepkg.conf in changed the CHOST variable to:
CHOST="x86_64-unknown-linux-gnu"

This way I was able to build d1x-rebirth. My question is, does this method have any drawbacks?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#6 2016-07-16 03:59:04

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [SOLVED] Please explain pkg-config 32 bit and 64 bit differences

Yes...  everything requiring it to be "x86_64-pc-linux-gnu" will be broken...    Either rebuild pkg-config or give me a couple of hours to do it.

Offline

#7 2016-07-16 20:18:18

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: [SOLVED] Please explain pkg-config 32 bit and 64 bit differences

Allan wrote:

Yes...  everything requiring it to be "x86_64-pc-linux-gnu" will be broken...    Either rebuild pkg-config or give me a couple of hours to do it.

I can wait that much, thanks Allan big_smile


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

Board footer

Powered by FluxBB