Henrik Bach
2004-Jul-21 23:31 UTC
[LLVMdev] FileUtilities.cpp:72: error: aggregate `stat s' has incomplete type and cannot
Hi As shown below, the .\configure script found a version of stat.h: --------------------- configure:4382: checking for sys/stat.h configure:4399: gcc -c -g -O2 conftest.c >&5 configure:4402: $? = 0 configure:4405: test -s conftest.o configure:4408: $? = 0 configure:4419: result: yes --------------------- However, I got this error when compiling: --------------------- FileUtilities.cpp: In function `bool llvm::FileOpenable(const std::string&)': FileUtilities.cpp:72: error: aggregate `stat s' has incomplete type and cannot be defined --------------------- By looking in include/Config/config.h: --------------------- /* Define to 1 if you have the <sys/stat.h> header file. */ /* #undef HAVE_SYS_STAT_H */ --------------------- The macro is not set as expected. It compiles when HAVE_SYS_STAT_H is set to 1. /Henrik _________________________________________________________________ Opret en gratis Hotmail-konto http://www.hotmail.com med udsigt til 250 MB lagerkapacitet
John Criswell
2004-Jul-22 20:08 UTC
[LLVMdev] FileUtilities.cpp:72: error: aggregate `stat s' has incomplete type and cannot
Henrik Bach wrote: It seems that (obviously) configure is getting the right information, but is somehow not generating the config.h file correctly. Can you send us a copy of your entire config.log file, as well as the exact command line that you're using to run configure? Also, you're using Interix, right? I have no idea as to why your config.h isn't getting updated properly. I'm hoping that the config.log will give me some more insight as to what is happening. Another question: Can you verify that config.h is writable? If you remove the config.h file and re-run configure, does the problem still occur? Thanks for your patience and the info. -- John T.> Hi > > As shown below, the .\configure script found a version of stat.h: > --------------------- > configure:4382: checking for sys/stat.h > configure:4399: gcc -c -g -O2 conftest.c >&5 > configure:4402: $? = 0 > configure:4405: test -s conftest.o > configure:4408: $? = 0 > configure:4419: result: yes > --------------------- > > However, I got this error when compiling: > --------------------- > FileUtilities.cpp: In function `bool llvm::FileOpenable(const > std::string&)': > FileUtilities.cpp:72: error: aggregate `stat s' has incomplete type and > cannot > be defined > --------------------- > > By looking in include/Config/config.h: > --------------------- > /* Define to 1 if you have the <sys/stat.h> header file. */ > /* #undef HAVE_SYS_STAT_H */ > --------------------- > The macro is not set as expected. > > It compiles when HAVE_SYS_STAT_H is set to 1. > > > /Henrik > > _________________________________________________________________ > Opret en gratis Hotmail-konto http://www.hotmail.com med udsigt til 250 > MB lagerkapacitet > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-- ********************************************************************* * John T. Criswell Email: criswell at uiuc.edu * * Research Programmer * * University of Illinois at Urbana-Champaign * * * * "It's today!" said Piglet. "My favorite day," said Pooh. * *********************************************************************
Possibly Parallel Threads
- [LLVMdev] /usr/local/src/llvm/include/Config/alloca.h:42:17:#error "The function alloca()
- [LLVMdev] SlowOperationInformer.cpp:55: error: `SIGALRM' undeclared (first use this functi
- [LLVMdev] Type uint64_t required but not found
- [LLVMdev] Which files does ./config.status -d produce?
- [LLVMdev] Changes to configure to recognize MinGW Win32 platform