Bug#666098:

2012-04-20 Thread Mathieu Malaterre
Looks like OP did not read CMake wiki:

http://www.cmake.org/Wiki/CMake_Cross_Compiling#The_toolchain_file

I believe you forgot to setup the variable: 'CMAKE_FIND_ROOT_PATH'

2cts



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#666098:

2012-04-20 Thread Michal Suchanek
Excerpts from Mathieu Malaterre's message of Fri Apr 20 09:39:46 +0200 2012:
 Looks like OP did not read CMake wiki:
 
 http://www.cmake.org/Wiki/CMake_Cross_Compiling#The_toolchain_file
 
 I believe you forgot to setup the variable: 'CMAKE_FIND_ROOT_PATH'
 
 2cts

yes, this is problem with the tigervnc build instructions.

Thanks

Michal



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#666098: /usr/bin/i686-w64-mingw32-g++: includes time.h from system

2012-04-18 Thread Stephen Kitt
reassign 666098 cmake
thanks

On Fri, 30 Mar 2012 15:52:58 +0200, Michal Suchanek
michal.sucha...@ruk.cuni.cz wrote:
 This is a cmake or cmake scripting problem. It includes
 /usr/include in the include path leading to this error.

OK, I'm reassigning since I don't know enough about cmake to determine which
is which.

Modestas, this bug is about cmake giving a cross-compiler the system include
paths (among others), causing build problems. As Michal mentions, it could be
a bug in cmake or in the upstream build scripts.

Regards,

Stephen


signature.asc
Description: PGP signature


Bug#666098: /usr/bin/i686-w64-mingw32-g++: includes time.h from system

2012-03-30 Thread Michal Suchanek
Excerpts from Stephen Kitt's message of Thu Mar 29 19:51:21 +0200 2012:
 On Thu, Mar 29, 2012 at 03:39:37PM +0200, Michal Suchanek wrote:
  I used this command:
  
  svn co https://tigervnc.svn.sourceforge.net/svnroot/tigervnc tigervnc
  mkdir tigerbin
  cd tigerbin
  CC=i686-w64-mingw32-gcc \
 CXX=i686-w64-mingw32-g++ \
 RC=i686-w64-mingw32-windres \
 AR=i686-w64-mingw32-ar \
 RANLIB=i686-w64-mingw32-ranlib \
 cmake -G Unix Makefiles -DCMAKE_SYSTEM_NAME=Windows \
 ../tigervnc/trunk  \
 make
 
 Thanks. Did you set up a JPEG library for tigervnc? When I run the
 above I get
 
 CMake Error at 
 /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
   Could NOT find JPEG (missing: JPEG_LIBRARY)
 Call Stack (most recent call first):
   /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 
 (_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 
 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
   CMakeLists.txt:205 (find_package)
 
 (I know how to point the build to an appropriate JPEG library, I'd
 just like to make sure I attempt the build in exactly the same way you
 did.)
 

No, I did not set up any JPEG library. According to the docs
libjpeg-turbo is optional and the thing should build without.

However, the trunk version does not have common/jpeg so maybe the cmake
script pulls one from the system which would be a bug in their scripts
or cmake.

Thanks

Michal



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#666098: /usr/bin/i686-w64-mingw32-g++: includes time.h from system

2012-03-30 Thread Michal Suchanek
Excerpts from Stephen Kitt's message of Thu Mar 29 19:51:21 +0200 2012:
 On Thu, Mar 29, 2012 at 03:39:37PM +0200, Michal Suchanek wrote:
  I used this command:
  
  svn co https://tigervnc.svn.sourceforge.net/svnroot/tigervnc tigervnc
  mkdir tigerbin
  cd tigerbin
  CC=i686-w64-mingw32-gcc \
 CXX=i686-w64-mingw32-g++ \
 RC=i686-w64-mingw32-windres \
 AR=i686-w64-mingw32-ar \
 RANLIB=i686-w64-mingw32-ranlib \
 cmake -G Unix Makefiles -DCMAKE_SYSTEM_NAME=Windows \
 ../tigervnc/trunk  \
 make
 
 Thanks. Did you set up a JPEG library for tigervnc? When I run the
 above I get
 
 CMake Error at 
 /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
   Could NOT find JPEG (missing: JPEG_LIBRARY)
 Call Stack (most recent call first):
   /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 
 (_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 
 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
   CMakeLists.txt:205 (find_package)
 
 (I know how to point the build to an appropriate JPEG library, I'd
 just like to make sure I attempt the build in exactly the same way you
 did.)

When I specify a libjpeg the problem does not occur.

This is a cmake or cmake scripting problem. It includes
/usr/include in the include path leading to this error.

Thanks

Michal



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#666098: /usr/bin/i686-w64-mingw32-g++: includes time.h from system

2012-03-29 Thread Michal Suchanek
Excerpts from Stephen Kitt's message of Thu Mar 29 00:20:41 +0200 2012:
 Hi Michal,
 
 On Wed, 28 Mar 2012 19:02:41 +0200, Michal Suchanek
 michal.sucha...@ruk.cuni.cz wrote:
  I tried to build tigervnc on Debian.
  
  I get the following error. It mentions a file from /usr/include which is
  totally bogus, system files should not be included by crosscompiler:
 
 Could you show me the exact steps you followed to build tigervnc? I just
 rebuilt it (along with turbo-jpeg) to try to reproduce the bug, and
 everything went fine until wm_hooks which is built long after the part where
 your build failed.
 

I used this command:

svn co https://tigervnc.svn.sourceforge.net/svnroot/tigervnc tigervnc
mkdir tigerbin
cd tigerbin
CC=i686-w64-mingw32-gcc \
   CXX=i686-w64-mingw32-g++ \
   RC=i686-w64-mingw32-windres \
   AR=i686-w64-mingw32-ar \
   RANLIB=i686-w64-mingw32-ranlib \
   cmake -G Unix Makefiles -DCMAKE_SYSTEM_NAME=Windows \
   ../tigervnc/trunk  \
   make

Thanks

Michal



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#666098: /usr/bin/i686-w64-mingw32-g++: includes time.h from system

2012-03-29 Thread Stephen Kitt
On Thu, Mar 29, 2012 at 03:39:37PM +0200, Michal Suchanek wrote:
 I used this command:
 
 svn co https://tigervnc.svn.sourceforge.net/svnroot/tigervnc tigervnc
 mkdir tigerbin
 cd tigerbin
 CC=i686-w64-mingw32-gcc \
CXX=i686-w64-mingw32-g++ \
RC=i686-w64-mingw32-windres \
AR=i686-w64-mingw32-ar \
RANLIB=i686-w64-mingw32-ranlib \
cmake -G Unix Makefiles -DCMAKE_SYSTEM_NAME=Windows \
../tigervnc/trunk  \
make

Thanks. Did you set up a JPEG library for tigervnc? When I run the
above I get

CMake Error at 
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
  Could NOT find JPEG (missing: JPEG_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 
(_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:205 (find_package)

(I know how to point the build to an appropriate JPEG library, I'd
just like to make sure I attempt the build in exactly the same way you
did.)

Thanks again,

Stephen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#666098: /usr/bin/i686-w64-mingw32-g++: includes time.h from system

2012-03-28 Thread Michal Suchanek
Package: gcc-mingw-w64
Version: 4.6.2-14+3
Severity: normal
File: /usr/bin/i686-w64-mingw32-g++

Hello,

I tried to build tigervnc on Debian.

I get the following error. It mentions a file from /usr/include which is
totally bogus, system files should not be included by crosscompiler:

cd /scratch/tigerbin/common/rfb  /usr/bin/i686-w64-mingw32-g++   
-D__BUILD__=\20120328\ -D_WIN32_IE=0x0500 -D_WIN32_WINNT=0x0500 
-DHAVE_CONFIG_H -O3 -DNDEBUG @CMakeFiles/rfb.dir/includes_CXX.rsp   -o 
CMakeFiles/rfb.dir/Configuration.cxx.obj -c 
/scratch/tigervnc/trunk/common/rfb/Configuration.cxx
In file included from 
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/winsock.h:26:0,
 from 
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/windows.h:81,
 from /scratch/tigervnc/trunk/win/rfb_win32/Handle.h:24,
 from /scratch/tigervnc/trunk/win/rfb_win32/Threading.h:27,
 from /scratch/tigervnc/trunk/common/rfb/Threading.h:28,
 from /scratch/tigervnc/trunk/common/rfb/Configuration.cxx:34:
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/_timeval.h:10:8:
 error: redefinition of ‘struct timeval’
/usr/include/bits/time.h:75:8: error: previous definition of ‘struct timeval’
In file included from 
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/winsock.h:30:0,
 from 
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/windows.h:81,
 from /scratch/tigervnc/trunk/win/rfb_win32/Handle.h:24,
 from /scratch/tigervnc/trunk/win/rfb_win32/Threading.h:27,
 from /scratch/tigervnc/trunk/common/rfb/Threading.h:28,
 from /scratch/tigervnc/trunk/common/rfb/Configuration.cxx:34:
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/psdk_inc/_fd_types.h:15:16:
 error: using typedef-name ‘fd_set’ after ‘struct’
/usr/include/sys/select.h:78:5: error: ‘fd_set’ has a previous declaration here
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/psdk_inc/_fd_types.h:19:9:
 error: invalid type in declaration before ‘;’ token
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/psdk_inc/_fd_types.h:19:9:
 error: conflicting declaration ‘typedef int fd_set’
/usr/include/sys/select.h:78:5: error: ‘fd_set’ has a previous declaration as 
‘typedef struct fd_set fd_set’
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/psdk_inc/_fd_types.h:21:16:
 error: using typedef-name ‘fd_set’ after ‘struct’
/usr/include/sys/select.h:78:5: error: ‘fd_set’ has a previous declaration here
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/psdk_inc/_fd_types.h:21:29:
 error: invalid type in declaration before ‘;’ token
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/psdk_inc/_fd_types.h:22:16:
 error: using typedef-name ‘fd_set’ after ‘struct’
/usr/include/sys/select.h:78:5: error: ‘fd_set’ has a previous declaration here
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/psdk_inc/_fd_types.h:22:31:
 error: invalid type in declaration before ‘;’ token
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/psdk_inc/_fd_types.h:23:16:
 error: using typedef-name ‘fd_set’ after ‘struct’
/usr/include/sys/select.h:78:5: error: ‘fd_set’ has a previous declaration here
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/psdk_inc/_fd_types.h:23:32:
 error: invalid type in declaration before ‘;’ token
In file included from 
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/windows.h:81:0,
 from /scratch/tigervnc/trunk/win/rfb_win32/Handle.h:24,
 from /scratch/tigervnc/trunk/win/rfb_win32/Threading.h:27,
 from /scratch/tigervnc/trunk/common/rfb/Threading.h:28,
 from /scratch/tigervnc/trunk/common/rfb/Configuration.cxx:34:
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/winsock.h:317:130:
 error: declaration of C function ‘int select(int, fd_set*, fd_set*, fd_set*, 
const timeval*)’ conflicts with
/usr/include/sys/select.h:109:12: error: previous declaration ‘int select(int, 
fd_set*, fd_set*, fd_set*, timeval*)’ here
In file included from 
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/windows.h:101:0,
 from /scratch/tigervnc/trunk/win/rfb_win32/Handle.h:24,
 from /scratch/tigervnc/trunk/win/rfb_win32/Threading.h:27,
 from /scratch/tigervnc/trunk/common/rfb/Threading.h:28,
 from /scratch/tigervnc/trunk/common/rfb/Configuration.cxx:34:
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/stralign.h:
 In function ‘WCHAR* ua_wcscpy(PUWSTR, PCUWSTR)’:
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/stralign.h:30:102:
 error: 

Bug#666098: /usr/bin/i686-w64-mingw32-g++: includes time.h from system

2012-03-28 Thread Stephen Kitt
Hi Michal,

On Wed, 28 Mar 2012 19:02:41 +0200, Michal Suchanek
michal.sucha...@ruk.cuni.cz wrote:
 I tried to build tigervnc on Debian.
 
 I get the following error. It mentions a file from /usr/include which is
 totally bogus, system files should not be included by crosscompiler:

Could you show me the exact steps you followed to build tigervnc? I just
rebuilt it (along with turbo-jpeg) to try to reproduce the bug, and
everything went fine until wm_hooks which is built long after the part where
your build failed.

Here's the cmake command I used:

CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ RC=i686-w64-mingw32-windres \
cmake -G Unix Makefiles -DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_AR=/usr/bin/i686-w64-mingw32-ar \
-DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib \
-DJPEG_INCLUDE_DIR=../../libjpeg-turbo-1.2.0/ \
-DJPEG_LIBRARY=../../libjpeg-turbo-1.2.0/build/libjpeg.a ..

(from within a build directory in the tigervnc source).

Regards,

Stephen


signature.asc
Description: PGP signature