You are not logged in.

#1 2014-08-28 18:03:35

Quatro
Member
From: Portugal
Registered: 2013-06-14
Posts: 24

[SOLVED] Compiling anything gives out an error

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1: error while loading shared libraries: libisl.so.10: cannot open shared object file: No such file or directory

This error even appears when compiling this:

main(){}

What's wrong with my gcc install?

Last edited by Quatro (2014-08-28 18:34:46)

Offline

#2 2014-08-28 18:07:23

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] Compiling anything gives out an error

Don't do partial system updates, unless you're an expert™.
`pacman -Syu` will solve your problem.


This silver ladybug at line 28...

Offline

#3 2014-08-28 18:09:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] Compiling anything gives out an error

From my system:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-4.9.1/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://b\
ugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exc\
eptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-isl-version-check --\
disable-cloog-version-check --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.9.1 (GCC)

$ echo 'main(){}'>a.c
$ cat a.c
main(){}
$ gcc a.c
$ locate libisl
/usr/lib/libisl.so
/usr/lib/libisl.so.13
/usr/lib/libisl.so.13.0.0
/usr/share/gdb/auto-load/usr/lib/libisl.so.13.0.0-gdb.py
$

What does your system report (aside from the compiler test I did there in the middle)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2014-08-28 18:18:42

Quatro
Member
From: Portugal
Registered: 2013-06-14
Posts: 24

Re: [SOLVED] Compiling anything gives out an error

$gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTOgcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-4.9-20140604/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 --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-isl-version-check --disable-cloog-version-check --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.9.0 20140604 (prerelease) (GCC)_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-4.9-20140604/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 --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-isl-version-check --disable-cloog-version-check --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.9.0 20140604 (prerelease) (GCC)


$locate libisl
/usr/lib/libisl.so
/usr/lib/libisl.so.13
/usr/lib/libisl.so.13.0.0
/usr/share/gdb/auto-load/usr/lib/libisl.so.13.0.0-gdb.py

Offline

#5 2014-08-28 18:29:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] Compiling anything gives out an error

The current gcc version in core is 4.9.1.   


lolilolicon and I had been posting at the same time, and he is probably correct.   I am not sure, however, that 4.9.0 20140604 (prerelease) was ever in core, but I could be wrong.
Anyway, your gcc is out of date.  At out curiosity, what do pacman -Qs gcc  and  which gcc   report?


Edit:  I checked.  that gcc has never been in core.  Where did it come from?

Last edited by ewaller (2014-08-28 18:31:19)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2014-08-28 18:31:18

Quatro
Member
From: Portugal
Registered: 2013-06-14
Posts: 24

Re: [SOLVED] Compiling anything gives out an error

Yes, pacman -Syu, solved it.

If you're still curious:

pacman -Qs gcc
local/gcc 4.9.1-1 (base-devel)
    The GNU Compiler Collection - C and C++ frontends
local/gcc-libs 4.9.1-1 (base)
    Runtime libraries shipped by GCC
local/gcc-objc 4.9.1-1
    Objective-C front-end for GCC
which gcc
/usr/bin/gcc

Last edited by Quatro (2014-08-28 18:31:47)

Offline

#7 2014-08-28 18:32:40

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] Compiling anything gives out an error

Those are the values after it changed tongue

Glad it is working.  Be sure to edit the first post and tag the thread title as solved.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2014-08-28 18:35:13

Quatro
Member
From: Portugal
Registered: 2013-06-14
Posts: 24

Re: [SOLVED] Compiling anything gives out an error

Oh yeah, sorry tongue

Done wink

Offline

Board footer

Powered by FluxBB