You are not logged in.

#1 2011-10-16 15:21:14

dades
Member
Registered: 2011-10-16
Posts: 3

Install gcc34

Hi. I'm in x86_64 and I want install gcc34 by aur. But it returns this message:

2011-10-16 17:16:48 (390 KB/s) - `gcc-g++-3.4.6.tar.bz2.part' saved [2511332]

  -> Found gcc-localeversion.patch
  -> Found gcc-3.3-pure64.patch
==> Validating source files with md5sums...
    gcc-core-3.4.6.tar.bz2 ... Passed
    gcc-g++-3.4.6.tar.bz2 ... Passed
    gcc-localeversion.patch ... Passed
    gcc-3.3-pure64.patch ... Passed
==> Extracting Sources...
  -> Extracting gcc-core-3.4.6.tar.bz2 with bsdtar
  -> Extracting gcc-g++-3.4.6.tar.bz2 with bsdtar
==> Starting build()...
You need the de_DE locale to build gcc.
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build gcc34.
==> Restart building gcc34 ? [y/N]
==> ------------------------------
==> 

How to fix??

Offline

#2 2011-10-16 15:28:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Install gcc34

Have you tried setting your locale accordingly

You need the de_DE locale to build gcc.

? Maybe you con comment out this 'if' clause

build() {
  if ! locale -a | grep ^de_DE; then
    echo "You need the de_DE locale to build gcc."
    return 1
  fi

in the PKGBUILD and see if it works.

Last edited by karol (2011-10-16 15:29:00)

Offline

#3 2011-10-16 15:30:32

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Install gcc34

Add --enable-clocale=gnu to the configure line. Then, as karol says, remove that 'if' block. Edit: Oh, I see now clocale is already set. Well then, all you need is to remove that 'if' block.

Last edited by Gusar (2011-10-16 15:32:19)

Offline

#4 2011-10-16 16:02:11

dades
Member
Registered: 2011-10-16
Posts: 3

Re: Install gcc34

I removed "if block", but now it say this:

checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-gcc34/src/gcc-build'
make: *** [bootstrap] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build gcc34.
==> Restart building gcc34 ? [y/N]

Offline

#5 2011-10-16 17:52:06

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Install gcc34

Builds fine her, but I am german and so I have de_DE locale set.

Did you try

LOCALE=de_DE makepkg

in one line?

Offline

#6 2011-10-16 18:40:03

dades
Member
Registered: 2011-10-16
Posts: 3

Re: Install gcc34

I tryed, but it dosen't work.
In PKGBUILD:

...
LOCALE=de_DE makepkg
build() {
  if ! locale -a | grep ^de_DE; then
    echo "You need the de_DE locale to build gcc."
    return 1
  fi
...

Last edited by dades (2011-10-16 18:43:29)

Offline

Board footer

Powered by FluxBB