Building 1.8.6 fails on Visual Studio 2010 64bit

When building with cmake 2.8.4 (default configuration switches) I get
errors like:

2>ClCompile:
2> 4
2> H5make_libsettings.c
3>c1 : fatal error C1083: Cannot open source file: '4': No such file
or directory

Did anyone succeeded in building hdf5 in this configuration?

Regards,
Dominik

Dominik

I'm building the cmake_1_8_ branch (which I think is now 1.8.7) on windows 7, 64bit using VS2010 and although I get a few build errors (6), they are only the parallel tests which try to #include "unistd.h" and other non portable tests which have never worked. Everything else builds fine.

I'm not sure how this helps you, but the '4' looks odd. Since it thinks it's a slurce file, did you take a look at the relevant cmakelists file and see if something strange has accidently found it's way in there?

JB

···

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Dominik Szczerba
Sent: 28 February 2011 23:34
To: HDF forum
Subject: [Hdf-forum] Building 1.8.6 fails on Visual Studio 2010 64bit

When building with cmake 2.8.4 (default configuration switches) I get
errors like:

2>ClCompile:
2> 4
2> H5make_libsettings.c
3>c1 : fatal error C1083: Cannot open source file: '4': No such file
or directory

Did anyone succeeded in building hdf5 in this configuration?

Regards,
Dominik

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

John,
    I'm guessing you have enabled parallel option, I haven't done this yet on a VS2010 machine. Until we get our public CDash server on line, could you send me a snippet of the error output (or suggestion for correcting) offlist. I'll try to get a fix through before the 1.8.7 release.

Allen

···

Dominik

I'm building the cmake_1_8_ branch (which I think is now 1.8.7) on windows 7, 64bit using VS2010 and although I get a few build errors (6), they are only the parallel tests which try to #include "unistd.h" and other non portable tests which have never worked. Everything else builds fine.

I'm not sure how this helps you, but the '4' looks odd. Since it thinks it's a slurce file, did you take a look at the relevant cmakelists file and see if something strange has accidently found it's way in there?

JB

I apologize, the error was with me. Very malicious, so beware of the same!
I define CL variable and amount it to /MP4 to enable parallel
compilation. I have always put it under the "user variables" part
(upper pane), this time I put it in the "system variables" part (lower
pane). Who would have known this makes a difference?

All fine now, magical 4 explained, many thanks and apologies,
Dominik

···

On Tue, Mar 1, 2011 at 8:30 AM, Biddiscombe, John A. <biddisco@cscs.ch> wrote:

Dominik

I'm building the cmake_1_8_ branch (which I think is now 1.8.7) on windows 7, 64bit using VS2010 and although I get a few build errors (6), they are only the parallel tests which try to #include "unistd.h" and other non portable tests which have never worked. Everything else builds fine.

I'm not sure how this helps you, but the '4' looks odd. Since it thinks it's a slurce file, did you take a look at the relevant cmakelists file and see if something strange has accidently found it's way in there?

JB

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Dominik Szczerba
Sent: 28 February 2011 23:34
To: HDF forum
Subject: [Hdf-forum] Building 1.8.6 fails on Visual Studio 2010 64bit

When building with cmake 2.8.4 (default configuration switches) I get
errors like:

2>ClCompile:
2> 4
2> H5make_libsettings.c
3>c1 : fatal error C1083: Cannot open source file: '4': No such file
or directory

Did anyone succeeded in building hdf5 in this configuration?

Regards,
Dominik

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Allen - these are the errors you are looking for.

JB

Error 2 error C1083: Cannot open include file: 'unistd.h': No such file or directory C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_posix_compliant.c 43
Error 3 error C2065: 'PATH_MAX' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 52
Error 4 error C2057: expected constant expression C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 52
Error 5 error C2466: cannot allocate an array of constant size 0 C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 52
Error 6 error C2087: 'filenames' : missing subscript C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 52
Error 11 error C2079: 'tz' uses undefined struct 'timezone' C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 4361

···

From: Allen D Byrne [mailto:byrn@hdfgroup.org]
Sent: 01 March 2011 15:53
To: hdf-forum@hdfgroup.org
Cc: Biddiscombe, John A.
Subject: Re: [Hdf-forum] Building 1.8.6 fails on Visual Studio 2010 64bit

John,

I'm guessing you have enabled parallel option, I haven't done this yet on a VS2010 machine. Until we get our public CDash server on line, could you send me a snippet of the error output (or suggestion for correcting) offlist. I'll try to get a fix through before the 1.8.7 release.

Allen

Dominik

I'm building the cmake_1_8_ branch (which I think is now 1.8.7) on windows 7, 64bit using VS2010 and although I get a few build errors (6), they are only the parallel tests which try to #include "unistd.h" and other non portable tests which have never worked. Everything else builds fine.

I'm not sure how this helps you, but the '4' looks odd. Since it thinks it's a slurce file, did you take a look at the relevant cmakelists file and see if something strange has accidently found it's way in there?

JB

Sorry, here's a more complete list - look long, but actually not many files causing the errors

JB

Error 1 error C1083: Cannot open include file: 'unistd.h': No such file or directory C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_posix_compliant.c 43
Error 2 error C2065: 'PATH_MAX' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 52
Error 3 error C2057: expected constant expression C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 52
Error 4 error C2466: cannot allocate an array of constant size 0 C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 52
Error 5 error C2087: 'filenames' : missing subscript C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 52
Error 10 error C2079: 'tz' uses undefined struct 'timezone' C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_cache.c 4361
Error 13 error C1083: Cannot open include file: 'unistd.h': No such file or directory C:\Code\pv-meshless\Utilities\hdf5-1.8\perform\mpi-perf.c 58
Error 18 error C2065: 'local_express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1763
Error 19 error C2065: 'local_express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1765
Error 20 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1766
Error 21 error C2065: 'mpi_rank' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1772
Error 22 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1781
Error 23 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1781
Error 24 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1783
Error 25 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1784
Error 26 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1787
Error 27 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1796
Error 28 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1804
Error 29 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1804
Error 30 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1806
Error 31 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1807
Error 32 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1810
Error 33 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1819
Error 34 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1829
Error 35 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1829
Error 36 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1831
Error 37 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1832
Error 38 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1835
Error 39 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1844
Error 40 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1852
Error 41 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1852
Error 42 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1854
Error 43 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1855
Error 44 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1858
Error 45 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 1867
Error 50 error C2065: 'local_express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4353
Error 51 error C2065: 'local_express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4355
Error 52 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4356
Error 53 error C2065: 'mpi_rank' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4362
Error 54 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4379
Error 55 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4379
Error 56 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4381
Error 57 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4382
Error 58 error C2065: 'ind_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4385
Error 59 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4396
Error 60 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4405
Error 61 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4405
Error 62 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4407
Error 63 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4408
Error 64 error C2065: 'col_contig_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4411
Error 65 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4422
Error 66 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4433
Error 67 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4433
Error 68 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4435
Error 69 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4436
Error 70 error C2065: 'ind_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4439
Error 71 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4450
Error 72 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4460
Error 73 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4460
Error 74 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4462
Error 75 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4463
Error 76 error C2065: 'col_chunked_idx' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4466
Error 77 error C2065: 'express_test' : undeclared identifier C:\Code\pv-meshless\Utilities\hdf5-1.8\testpar\t_rank_projection.c 4477
Error 78 error C2148: total size of array must not exceed 0x7fffffff bytes c:\code\pv-meshless\utilities\hdf5-1.8\perform\pio_timer.h 65
Error 79 error C2079: 'sys_timer' uses undefined struct 'timeval' c:\code\pv-meshless\utilities\hdf5-1.8\perform\pio_timer.h 65
Error 81 error C2148: total size of array must not exceed 0x7fffffff bytes c:\code\pv-meshless\utilities\hdf5-1.8\perform\pio_timer.h 65
Error 82 error C2079: 'sys_timer' uses undefined struct 'timeval' c:\code\pv-meshless\utilities\hdf5-1.8\perform\pio_timer.h 65
Error 84 error C1083: Cannot open include file: 'unistd.h': No such file or directory C:\Code\pv-meshless\Utilities\hdf5-1.8\perform\pio_engine.c 25
Error 85 error C1083: Cannot open include file: 'unistd.h': No such file or directory C:\Code\pv-meshless\Utilities\hdf5-1.8\perform\benchpar.c 16
                86 IntelliSense: cannot open source file "unistd.h" c:\code\pv-meshless\utilities\hdf5-1.8\perform\pio_engine.c 25