[LLVMdev] FileUtilities.cpp:72: error: aggregate `stat s' has incomplete type and cannot
John Criswell
criswell at cs.uiuc.edu
Thu Jul 22 13:08:16 PDT 2004
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. *
*********************************************************************
More information about the llvm-dev
mailing list