[Mesa-users] Errors from MESA and MESASDK on compiling

Joshua J Ziegler jjziegler at utexas.edu
Wed Oct 23 18:41:48 EDT 2019


This was precisely the issue, thank you. It appears that gcc was not
installed through MESASDK, but installing it (or updating it) separately
seems to work.

On Wed, Oct 23, 2019 at 4:32 PM Beatriz Bordadágua <
beatriz.bordadagua at tecnico.ulisboa.pt> wrote:

> Hello,
>
> I don't know if it helps, but I also had problems while installing the new
> version of MESA using the latest version o MESASDK. It worked when I
> switched to gcc version 8.
>
> Wish you luck.
> Beatriz
>
> A 2019-10-23 19:07, Joshua J Ziegler escreveu:
>
> Hello,
>
> I have Scientific Linux 7.7 and have been trying to install MESA r-12115
> using x86_64-linux-20190830 version of MESASDK (i.e. the most recent
> releases of both). Unfortunately, I keep getting the following error:
>
> [jziegler at DESKTOP-RA3BMLP ~]$ source $MESASDK_ROOT/bin/mesasdk_init.sh
> mesasdk_init.sh: checking architecture
> mesasdk_init.sh: regenerating headers
> mesasdk_init.sh: checking prerequisites
> mesasdk_preq_check: error: C compiler cannot create executables
> See `config.log' for more details.
>
> If I ignore this, and attempt to continue installing MESA, when I run the
> ./install command, I receive the following error:
>
> [jziegler at wireless-10-147-124-140 mesa-r12115]$ ./install
>
> /home/jziegler/mesa-r12115/const
> building const package.
>
> MAKEDEPF90
> COMPILE_CMD ../public/const_def.f90
> COMPILE_CMD ../public/const_lib.f90
> LIB_TOOL libconst.a
> MAKEDEPF90
> TEST_COMPILE ../src/test_const.f
> LOADER ../tester
> /usr/bin/ld: cannot find crt1.o: No such file or directory
> /usr/bin/ld: cannot find crti.o: No such file or directory
> /usr/bin/ld: cannot find -lm
> collect2: error: ld returned 1 exit status
> make: *** [../tester] Error 1
>
> /home/jziegler/mesa-r12115/const/test
> FAILED
>
>
> /home/jziegler/mesa-r12115/const
> ./build_and_test FAILED
>
> I assume the latter error is related to the former, but am at a loss as to
> how to resolve the MESASDK error.
> I have attached the $MESA_DIR/build.log file.
>
> I've tried some of the fixes suggested to others having similar problems
> on the archived mailing list. In particular, without success, I tried
> running
>
> [jziegler at DESKTOP-RA3BMLP ~]$ ldconfig -p | grep libpthread
> libpthread.so.0 (libc6,x86-64, OS ABI: Linux 2.6.32) =>
> /lib64/libpthread.so.0
> libpthread.so.0 (libc6, OS ABI: Linux 2.6.32) => /lib/libpthread.so.0
> [jziegler at DESKTOP-RA3BMLP ~]$ export LIBRARY_PATH=/lib64
>
> I did realize that initially I did not have the development headers for
> the X11 and Z libraries, but have since installed them, now having the
> following prerequisite components (I believe this is the full list for
> Fedora/CentOS operating systems).
>
> binutils-2.27-41.base.el7.x86_64
> make-3.82-24.el7.x86_64
> perl-5.16.3-294.el7_6.x86_64
> libX11-devel-1.6.7-2.el7.x86_64
> libX11-1.6.7-2.el7.x86_64
> zlib-devel-1.2.7-18.el7.x86_64
> zlib-1.2.7-18.el7.x86_64
> tcsh-6.18.01-15.el7.x86_64
>
> Any help that anyone could offer would be greatly appreciated.
> Josh Ziegler
>
> [jziegler at DESKTOP-RA3BMLP mesasdk]$ uname -a
> Linux DESKTOP-RA3BMLP 3.10.0-1062.4.1.el7.x86_64 #1 SMP Thu Oct 17
> 14:34:42 CDT 2019 x86_64 x86_64 x86_64 GNU/Linux
> [jziegler at DESKTOP-RA3BMLP mesasdk]$ gfortran -v
> Using built-in specs.
> COLLECT_GCC=/home/jziegler/mesasdk/bin/gfortran.exec
>
> COLLECT_LTO_WRAPPER=/home/jziegler/mesasdk/bin/../libexec/gcc/x86_64-pc-linux-gnu/9.2.0/lto-wrapper
> Target: x86_64-pc-linux-gnu
> Configured with: /root/sdk2/build/gcc/configure CC=
> --build=x86_64-pc-linux-gnu --prefix=/root/mesasdk --with-gmp=/root/mesasdk
> --with-mpfr=/root/mesasdk --with-mpc=/root/mesasdk
> --enable-languages=c,c++,fortran --disable-multilib --disable-nls
> --disable-libsanitizer --enable-clocale=generic
> Thread model: posix
> gcc version 9.2.0 (GCC)
> [jziegler at DESKTOP-RA3BMLP mesasdk]$ echo $MESASDK_ROOT
> /home/jziegler/mesasdk
> [jziegler at DESKTOP-RA3BMLP mesasdk]$ echo $PATH
>
> /home/jziegler/mesasdk/bin:/home/jziegler/mesasdk/bin:/home/jziegler/mesasdk/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/jziegler/.local/bin:/home/jziegler/bin
>
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
>
>

-- 
Joshua Ziegler

University of Texas at Austin
Ph.D. Physics candidate

Case Western Reserve University
M.S. Physics - 2017
B.S. Physics - 2017
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20191023/11b0cc19/attachment.html>


More information about the Mesa-users mailing list