You are not logged in.

#1 2012-01-05 04:42:14

cmxiv
Member
Registered: 2011-12-21
Posts: 7

Mangler PKGBUILD error. C++ compiler

Hello

I've been attempting to install Mangler via PKGBUILD, and makepkg and makepkg -s give me this:

[mac@cmxiv-desktop mangler]$ makepkg
==> Making package: mangler 1.2.2-1 (Wed Jan  4 20:05:32 PST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found mangler-1.2.2.tar.bz2
==> Validating source files with md5sums...
    mangler-1.2.2.tar.bz2 ... Passed
==> Extracting Sources...
  -> Extracting mangler-1.2.2.tar.bz2 with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/home/mac/Downloads/mangler/src/mangler-1.2.2':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
==> ERROR: A failure occurred in build().
    Aborting...

I do have multilib-devel installed, if it makes a difference.

thanks in advance

[mac@cmxiv-desktop mangler]$ uname -a
Linux cmxiv-desktop 3.1.5-1-ARCH #1 SMP PREEMPT Sat Dec 10 14:43:09 CET 2011 x86_64 AMD Phenom(tm) II X6 1035T Processor AuthenticAMD GNU/Linux

Offline

#2 2012-01-05 05:04:50

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: Mangler PKGBUILD error. C++ compiler

Have you installed the base-devel group?  If you haven't or aren't sure, type:

pacman -S base-devel

At a root prompt or with sudo.

Offline

#3 2012-01-05 05:15:02

cmxiv
Member
Registered: 2011-12-21
Posts: 7

Re: Mangler PKGBUILD error. C++ compiler

headkase wrote:

Have you installed the base-devel group?  If you haven't or aren't sure, type:

pacman -S base-devel

At a root prompt or with sudo.


Indirectly, yes. I have multilib-devel, which should be able to do the same.

EDIT: yep, same results. [replacing multilib with base]

Last edited by cmxiv (2012-01-05 05:17:29)

Offline

#4 2012-01-05 06:12:01

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

Re: Mangler PKGBUILD error. C++ compiler

See `config.log' for more details.

Do that...  My guess is that you have something wrong in your CXXFLAGS.

Offline

#5 2012-01-05 06:25:15

cmxiv
Member
Registered: 2011-12-21
Posts: 7

Re: Mangler PKGBUILD error. C++ compiler

Allan wrote:
See `config.log' for more details.

Do that...  My guess is that you have something wrong in your CXXFLAGS.

not sure what to look for, so I made a pastebin.

http://pastebin.com/UG86jrhE

Offline

#6 2012-01-05 10:12:57

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Mangler PKGBUILD error. C++ compiler

g++: error: unrecognized option '-02'

You wrote "zero two" instead of "oh two".

Offline

#7 2012-01-05 22:03:57

cmxiv
Member
Registered: 2011-12-21
Posts: 7

Re: Mangler PKGBUILD error. C++ compiler

stqn wrote:
g++: error: unrecognized option '-02'

You wrote "zero two" instead of "oh two".

Well, first: I'm not the author of this pkgbuild, and have not touched it in anyway. All I have done is run 'makepkg' in the directory and it brings up this error.

Second: I'm way to newbish to even know what you just said, whether is a good thing, bad thing, or even a thing at all.. xD.

Apparently this build has worked for many other people, just not meh.

Last edited by cmxiv (2012-01-05 22:04:26)

Offline

#8 2012-01-05 22:22:41

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Mangler PKGBUILD error. C++ compiler

Check your /etc/makepkg.conf.

Offline

#9 2012-01-05 23:16:33

cmxiv
Member
Registered: 2011-12-21
Posts: 7

Re: Mangler PKGBUILD error. C++ compiler

stqn wrote:

Check your /etc/makepkg.conf.

http://pastebin.com/fs6WmuSi

Well, it has oh's instead of zero's. Which should it be?

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
 
#-- Exclusive: will only run on x86_64
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

Offline

#10 2012-01-07 01:16:47

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Mangler PKGBUILD error. C++ compiler

So your makepkg.conf seems correct (uses "-O2") and the PKGBUILDs I saw on the AUR for Mangler do not contain any reference to either CXXFLAGS or "-02"... I'm afraid I don't know what's the problem then. You could ask on Mangler's AUR page.

Offline

Board footer

Powered by FluxBB