32
edits
(octave itself) |
|||
Line 264: | Line 264: | ||
{{codeline|exit}} root session, then {{codeline|exit}} current bash, to return to a clean state | {{codeline|exit}} root session, then {{codeline|exit}} current bash, to return to a clean state | ||
== Octave itself == | |||
cd $downloads | |||
wget ftp://alpha.gnu.org/gnu/octave/octave-4.2.0-rc3.tar.lz | |||
Start from a clean state | |||
exit | |||
bash | |||
export PATH=/usr/local/gcc-6.2.0_binutils-2.27_isl/bin:$PATH | |||
which gfortran | |||
# should be /usr/local/gcc-6.2.0_binutils-2.27_isl/bin/gfortran | |||
cd $buildroot | |||
tar --no-same-owner -xvf $downloads/octave-4.2.0-rc3.tar.lz | |||
cd octave-4.2.0-rc3 | |||
mkdir build_; cd $_ | |||
../configure --with-blas="/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64/libopenblas.so" CPPFLAGS="-I/usr/local/gcc-6.2.0_binutils-2.27_isl/include" CFLAGS="-O2 -march=native -L/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64" CXXFLAGS="-O2 -march=native -L/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64" FFLAGS="-O2 -march=native -L/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64" LDFLAGS=-Wl,-rpath,/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64 PKG_CONFIG_PATH=/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64/pkgconfig JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/ --prefix=/usr/local/gcc-6.2.0_binutils-2.27_isl | |||
make -j 6 | |||
make check | |||
# or, for nvidia users, | |||
xvfb-run -s "-screen 0 640x480x24" make check LD_PRELOAD=/usr/lib64/libGL.so | |||
To be continued... | To be continued... |
edits