You are not logged in.

#1 2010-12-21 15:10:08

avanc
Member
Registered: 2010-12-21
Posts: 12

makepkg creates x86_64 packages instead of i686

Hi,

I installed arch linux as 32bit version on my 64bit machine. I changed the architecture parameter in /etc/pacman.conf to i686 and everything works like a charm.
However, makepkg creates a  x86_64 instead of i686. Thus, pacman complains when I try install the package.
My makepkg.conf looks like the following:

 
CARCH="i686"
CHOST="i686-pc-linux-gnu"

#-- Exclusive: will only run on i686
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

How can I create the correct package?

Regards
Sven

Offline

#2 2010-12-21 15:15:16

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: makepkg creates x86_64 packages instead of i686

What does

uname -a

say?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2010-12-21 15:15:38

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

Re: makepkg creates x86_64 packages instead of i686

Does this happen with multiple packages or just one?

Offline

#4 2010-12-21 16:23:15

avanc
Member
Registered: 2010-12-21
Posts: 12

Re: makepkg creates x86_64 packages instead of i686

.:B:. wrote:

What does

uname -a

say?

Linux 2.6.36-ARCH #1 SMP PREEMPT Fri Dec 10 20:01:53 UTC 2010 i686 Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz GenuineIntel GNU/Linux

Allan wrote:

Does this happen with multiple packages or just one?

grub-gfx caused the problem.

I also tried it with libpng12. Interestingly, this works!

Offline

#5 2010-12-21 16:31:40

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,911
Website

Re: makepkg creates x86_64 packages instead of i686

PKGBUILD

has

 DESTARCH="x86_64"

Could that be the problem?


Mr Green

Offline

#6 2010-12-21 23:06:34

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

Re: makepkg creates x86_64 packages instead of i686

Yes it is...   

  if [ "$DESTARCH" = "x86_64" ]; then
    # fool makepkg into building a x86_64 package
    export CARCH="x86_64"
  fi

Offline

#7 2010-12-22 13:41:23

avanc
Member
Registered: 2010-12-21
Posts: 12

Re: makepkg creates x86_64 packages instead of i686

Thanks for the help!
I replaced x86_64 with i686 and int works.
I will drop a note at aur.

Offline

Board footer

Powered by FluxBB