You are not logged in.
Pages: 1
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
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
Edit: solved
ln -s /bin/gcc* /usr/local/bin
and then renamed gcc to gcc -4.2
This bug was really weird
Offline
@tomk
Thanks for a quick reply. I appreciate that
Offline
... that is so NOT the way to solve it.
But as long as you're happy.....
Offline
@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
Pages: 1