[QE-users] Quantum espresso installation problem in MAC

Mejia Rodriguez, Daniel dmejiarodriguez at ufl.edu
Wed Nov 27 16:58:46 CET 2019


Hi Kanka,

_stdio.h is a header file that comes with Xcode. You should try to update the headers with a command similar to

cd /Library/Developer/CommandLineTools/Packages/
open macOS_SDK_headers_for_macOS_10.14.pkg

(This will open an installation wizard). And then compile QE.



Daniel Mejia Rodriguez
Postdoctoral Associate
University of Florida

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: users <users-bounces at lists.quantum-espresso.org> on behalf of Ye Luo <xw111luoye at gmail.com>
Sent: Wednesday, November 27, 2019 9:28:32 AM
To: Quantum ESPRESSO users Forum <users at lists.quantum-espresso.org>
Subject: Re: [QE-users] Quantum espresso installation problem in MAC

[External Email]
The error message indicates the gcc8.3 you have installed is not compatible with your OS.
QE includes <stdio.h> which is standard C. The stdio.h shipped by the compiler tries to access _stdio.h which doesn't exist in the system.
So probably you can write a dummy C program with just include stdio.h and a main function and then use it to debug your compiler installation first.
This is not a QE problem and hopefully you can find answers on Google.
Best,k
Ye

===================
Ye Luo, Ph.D.
Computational Science Division & Leadership Computing Facility
Argonne National Laboratory


Kanka Ghosh <kanka.ghosh at u-bordeaux.fr<mailto:kanka.ghosh at u-bordeaux.fr>> 于2019年11月26日周二 上午4:45写道:
Hello,

I am trying to install quantum espresso in iMac (macOS Mojave, version 10.14.6). While it configured properly, I am facing some issues while compiling with make all or make pw or any make command. It is showing the following error after executing make all command :



make all

test -d bin || mkdir bin

( cd clib ; /Library/Developer/CommandLineTools/usr/bin/make TLDEPS= all || exit 1 )

gcc -O3 -D__FFTW3 -D__MPI -I/Users/kghosh/Downloads/qe-6.4.1//include -I/Users/kghosh/Downloads/qe-6.4.1//FoX/finclude -I/Users/kghosh/Downloads/qe-6.4.1//S3DE/iotk/include/  -c customize_signals.c

gcc -O3 -D__FFTW3 -D__MPI -I/Users/kghosh/Downloads/qe-6.4.1//include -I/Users/kghosh/Downloads/qe-6.4.1//FoX/finclude -I/Users/kghosh/Downloads/qe-6.4.1//S3DE/iotk/include/  -c stack.c

In file included from stack.c:9:

/usr/local/lib/gcc/x86_64-apple-darwin18.5.0/8.3.0/include-fixed/stdio.h:78:10:fatal error: _stdio.h: No such file or directory

 #include <_stdio.h>

          ^~~~~~~~~~

compilation terminated.

make[1]: *** [stack.o] Error 1

make: *** [libs] Error 1


Can anybody help to overcome this issue ? I have installed all gcc compilers as well as the libraries using brew in the machine.

Thanks in advanced,

Kanka
Postdoc, I2M-bordeaux
University of Bordeaux, CNRS UMR 5295
_______________________________________________
Quantum ESPRESSO is supported by MaX (www.max-centre.eu/quantum-espresso<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.max-2Dcentre.eu_quantum-2Despresso&d=DwMFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=TwOmC0aFDFSc-mNMKX7hqf_mpx9TR50wSNa9tLtYbcE&m=hwQz0bSKSND5bCtT7E7qZAtMDVaErDIRhfrKLD77eyo&s=PEgugKLOxPvJuVDRFuLqFMNm9UI9piAeyjgWU_9Bhy4&e=>)
users mailing list users at lists.quantum-espresso.org<mailto:users at lists.quantum-espresso.org>
https://lists.quantum-espresso.org/mailman/listinfo/users<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.quantum-2Despresso.org_mailman_listinfo_users&d=DwMFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=TwOmC0aFDFSc-mNMKX7hqf_mpx9TR50wSNa9tLtYbcE&m=hwQz0bSKSND5bCtT7E7qZAtMDVaErDIRhfrKLD77eyo&s=kVAYGeAAB396FyEbXgYXSF2DIqa9jNstuQDyT60IQxQ&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20191127/fec527a3/attachment.html>


More information about the users mailing list