Setting up env vars for gcc5.4

I was trying to use gcc 5.4, mostly to use the latest cilk version.

Here are some notes on what needs to be set up in order for gcc to compile (assuming the compiler is already built)

The variables that need to be set up are

export LD_LIBRARY_PATH=path/gcc-5.4/lib64:$LD_LIBRARY_PATH

(prepend to LD_LIBRARY_PATH to make sure that no older gcc libs are used)

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: path/mpc-1.0.3/lib: path/mpfr-2.4.2/lib:path/gmp-4.3.2/lib

export PATH=path/gcc-5.4/bin:$PATH

export CPATH=path/gcc-5.4/include:$CPATH

To see the dependencies of gcc5.4

c++-5.4 -v

Using built-in specs.

COLLECT_GCC=c++-5.4

COLLECT_LTO_WRAPPER=path/gcc-5.4/libexec/gcc/x86_64-unknown-linux-gnu/5.4.0/lto-wrapper

Target: x86_64-unknown-linux-gnu

Configured with: ./configure –prefix=path/gcc-5.4 –with-gmp=path/gmp-4.3.2/ –with-mpc=path/mpc-1.0.3/ –with-mpfr=path/mpfr-2.4.2/ –program-suffix=-5.4 –enable-languages=c,c++,fortran –disable-werror –disable-bootstrap –enable-multilib –enable-threads=posix

Thread model: posix

gcc version 5.4.0 (GCC)

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s