cvs: Intel C++ &.1 rejects /usr/include/bits/stat.h

Markus Werle numerical.simulation at web.de
Thu Sep 25 09:41:00 BST 2003


Hi!

While trying to build KDE-cvs with Intels C++ compiler I encounter 
some issues with system headers that pass the same compiler
when included alone.

Q: if __USE_MISC is undefined the problem should vanish.
Does KDE rely on this part of the header or can the 
configuration be adopted to undef it somewhere?

I tried this:

./configure LDFLAGS="-L/opt/qt-x11-free-3.2.1/lib" LD=icpc CC=icc
CFLAGS="-O2 -Ob2 -ip" CXX=icpc CXXFLAGS="-O2 -Ob2 -ip -unroll -parallel"
--with-qt-dir=/opt/qt-x11-free-3.2.1 --prefix=/opt/kde-20030922 && make
2>&1 | tee make_markus.log
[...]

kdelibs/kdecore
[root at sylvie]  / > icpc -V
Intel(R) C++ Compiler for 32-bit applications, Version 7.1   Build
20030909Z
Copyright (C) 1985-2003 Intel Corporation.  All rights reserved.
FOR NON-COMMERCIAL USE ONLY

GNU ld version 2.13.90.0.18 20030121 (SuSE Linux)
  Supported emulations:
   elf_i386
   i386linux
   elf_x86_64
/usr/lib/crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'

kdelibs/kdecore
[root at sylvie]  / > icpc -D__STRICT_ANSI__ -DHAVE_CONFIG_H -I. -I. -I..
-I../dcop -I../kio/kssl -I../kdefx -I../dcop -I../libltdl -I../kdefx
-I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I..
-I/opt/qt-x11-free-3.2.1/include -I/usr/X11R6/include
-I/opt/kde-20030922/include  -I/usr/include/libart-2.0 
-DQT_THREAD_SUPPORT  -D_REENTRANT  -O2   -DQT_CLEAN_NAMESPACE
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION 
kconfig.cpp
/usr/include/bits/stat.h(70): error: incomplete type is not allowed
      struct timespec st_atim;          /* Time of last access.  */
                      ^

/usr/include/bits/stat.h(71): error: incomplete type is not allowed
      struct timespec st_mtim;          /* Time of last modification. 
*/
                      ^

/usr/include/bits/stat.h(72): error: incomplete type is not allowed
      struct timespec st_ctim;          /* Time of last status change. 
*/
                      ^

/usr/include/bits/stat.h(116): error: incomplete type is not allowed
      struct timespec st_atim;          /* Time of last access.  */
                      ^

/usr/include/bits/stat.h(117): error: incomplete type is not allowed
      struct timespec st_mtim;          /* Time of last modification. 
*/
                      ^

/usr/include/bits/stat.h(118): error: incomplete type is not allowed
      struct timespec st_ctim;          /* Time of last status change. 
*/
                      ^

compilation aborted for kconfig.cpp (code 2)




More information about the kde-core-devel mailing list