Hello,
I am trying to build netcdf-c
https://github.com/Unidata/netcdf-c/
https://build.opensuse.org/package/show/home:andythe_great/netcdf-c
But it cause both my PC and OBS to run out of space.
477s] /.build/build-vm: line 427: echo: write error: No space left on device
It seems to be a bug in netcdf that create very big files?
Thanks.
Huhhh, it is fix now, I make change below, maybe I wrongly use -disable-dap flag.
[2](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n2) %build
[3](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n3) %configure
[4](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n4)
[5](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n5)-%cmake -DCMAKE_C_FLAGS:STRING="%{optflags} -disable-dap" \
[6](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n6)- -DCMAKE_CXX_FLAGS:STRING="%{optflags} -disable-dap" \
[7](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n7)- -DCMAKE_INSTALL_PREFIX:PATH=/usr \
[8](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n8)- -DCMAKE_INSTALL_LIBDIR:PATH=lib \
[9](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n9)+%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
**[10](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n10)**+ -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
[11](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n11) -DCMAKE_BUILD_TYPE:STRING=Release \
[12](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n12) -DENABLE_CDF5:BOOL=ON \
[13](https://build.opensuse.org/package/rdiff/home:andythe_great/netcdf-c?linkrev=base&rev=3#n13) -DENABLE_DAP_LONG_TESTS:BOOL=ON \
Hi
Use a _constraints file… eg;
<constraints>
<hardware>
<disk>
<size unit="G">8</size>
</disk>
<memory>
<size unit="G">8</size>
</memory>
</hardware>
</constraints>
Thanks, I fix it somehow.
I tried adding back the flag -disable-dap-remote-tests to see if it will fix failed test.
I increase the _constraints to 25 GiB of disk space, but still not enough, so I make it 35 GiB. This is getting suspicious.
%cmake -DCMAKE_C_FLAGS:STRING="%{optflags} -disable-dap-remote-tests" \
-DCMAKE_CXX_FLAGS:STRING="%{optflags} -disable-dap-remote-tests" \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DENABLE_CDF5:BOOL=ON \
-DENABLE_DAP_LONG_TESTS:BOOL=ON \
-DENABLE_EXAMPLE_TESTS:BOOL=ON \
-DENABLE_EXTRA_TESTS:BOOL=ON \
-DENABLE_FAILING_TESTS:BOOL=ON \
-DENABLE_FILTER_TESTING:BOOL=ON \
-DENABLE_LARGE_FILE_TESTS:BOOL=ON
%cmake_build
35 GiB disk space is not enough, something is wrong.
Never mind, other package exist.