You are not logged in.

#1 2015-06-20 10:08:05

ygyfygy
Member
Registered: 2015-06-20
Posts: 10

Strange gcc+yaourt error.

When I try installing something from aur it gives me output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/local/bin/gcc-4.2
checking whether the C compiler works... no
configure: error: in `/tmp/yaourt-tmp-ygyfygy/aur-tickr/src/tickr-0.6.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
==> ERROR: A failure occurred in prepare().
    Aborting...
==> ERROR: Makepkg was unable to build tickr.
==> Restart building tickr ? [y/N]
==> ------------------------------
==>


The problem is it checks for gcc-4.2, but i have:

ygyfygy@lapek ~
$ gcc -v                                                                                                                                                                                   [11:54:49]
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-5-20150519/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=c++98
Thread model: posix
gcc version 5.1.0 (GCC)

My /usr/local/bin is empty

WTF is going on?

Last edited by ygyfygy (2015-06-20 10:09:20)

Offline

#2 2015-06-20 10:17:12

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Strange gcc+yaourt error.

This most likely has nothing to do with yaourt, or even Arch, and everything to do with tickr - the current release is over a year old, so it's not surprising it knows nothing about gcc5.

Contact the tickr dev, see what he says.

<edit>Actually, scratch all that. I just ran it here, with gcc 5.1.0, and it built fine, so there's something wrong with your setup. I used makepkg, as I usually do, not yaourt, but that shouldn't make a difference.

Last edited by tomk (2015-06-20 10:21:57)

Offline

#3 2015-06-20 10:27:51

ygyfygy
Member
Registered: 2015-06-20
Posts: 10

Re: Strange gcc+yaourt error.

Edit: solved

ln -s /bin/gcc* /usr/local/bin

and then renamed gcc to gcc -4.2

This bug was really weird

Offline

#4 2015-06-20 10:29:15

ygyfygy
Member
Registered: 2015-06-20
Posts: 10

Re: Strange gcc+yaourt error.

@tomk

Thanks for a quick reply. I appreciate that

Offline

#5 2015-06-20 10:43:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Strange gcc+yaourt error.

... that is so NOT the way to solve it. roll

But as long as you're happy.....

Offline

#6 2015-06-24 18:07:15

ygyfygy
Member
Registered: 2015-06-20
Posts: 10

Re: Strange gcc+yaourt error.

@tomk
It was custom oh-my-zsh from github fault. There was CC set to /usr/local/bin/gcc-4.2, (God, why?). After changing it to /usr/bin/gcc all started to work.

Offline

Board footer

Powered by FluxBB