Issues while building (pio_nc.c)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- c, cmake
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start with src/clib/pio_nc.c at PIOc_def_var_fill and PIOc_inq_var_fill, then inspect the configured include paths and the CMake build output for v2.6.2. Reproduce the compilation failure and determine why _FillValue is unavailable in this configuration; done means the project builds successfully with the reported compiler and dependency setup.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello,
I'm trying to compile v2.6.2 but building generates the error:
/home/ubuntu/pio2/src/clib/pio_nc.c: In function ‘PIOc_def_var_fill’:
/home/ubuntu/pio2/src/clib/pio_nc.c:2433:56: error: ‘_FillValue’ undeclared (first use in this function); did you mean ‘NC_FillValue’?
2433 | ierr = nc_put_att(file->fh, varid, _FillValue, xtype, 1, fill_valuep);
| ^~~~~~~~~~
| NC_FillValue
/home/ubuntu/pio2/src/clib/pio_nc.c:2433:56: note: each undeclared identifier is reported only once for each function it appears in
/home/ubuntu/pio2/src/clib/pio_nc.c: In function ‘PIOc_inq_var_fill’:
/home/ubuntu/pio2/src/clib/pio_nc.c:2577:52: error: ‘_FillValue’ undeclared (first use in this function); did you mean ‘NC_FillValue’?
2577 | ierr = nc_get_att(file->fh, varid, _FillValue, fill_valuep);
| ^~~~~~~~~~
| NC_FillValue
make[2]: *** [src/clib/CMakeFiles/pioc.dir/build.make:216: src/clib/CMakeFiles/pioc.dir/pio_nc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1259: src/clib/CMakeFiles/pioc.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
I saw https://github.com/NCAR/ParallelIO/pull/1994 and though that maybe using the branch version might fix the issue, but the error still appears. My only potential explanation (or fix) would be the netCDF version, but I would definitely prefer to not have more than one netCDFs in the system.
Thanks.
P.S.
CC=mpicc FC=mpif90 cmake -DPIO_ENABLE_TIMING=OFF -DNetCDF_C_PATH=/opt/atrium/netcdf -DNetCDF_Fortran_PATH=/opt/atrium/netcdf -DPnetCDF_PATH=/opt/atrium/netcdf /home/ubuntu/pio2
-- # PIO Configuration Summary
==============================
# General
-------
PIO Version: 2.6.2
Configured On: Mon Feb 10 15:02:41 UTC 2025
Host System: aarch64-Linux-6.8.0-1021-aws
Build Directory: /home/ubuntu/pio2
Install Prefix: /usr/local
# Compiling Options
-----------------
C Compiler: GNU 11.4.0
CFLAGS: -std=gnu99
CPPFLAGS: -DLINUX -DCPRGNU -I/home/ubuntu/pio2 -I/home/ubuntu/pio2/src/clib -I/home/ubuntu/pio2/src/clib -I/home/ubuntu/pio2/src/clib -I/home/ubuntu/pio2/src/clib/../ncint -I/opt/atrium/netcdf/include -I/opt/atrium/netcdf/include
LDFLAGS:
Shared Library: no
Static Library: yes
Extra libraries:
Fortran Compiler: GNU 11.4.0
FFLAGS: -fallow-argument-mismatch
FCFLAGS:
More Fortran Flags: -DLINUX -DCPRGNU -I/home/ubuntu/pio2 -I/home/ubuntu/pio2/src/flib -I/home/ubuntu/pio2/src/flib -I/opt/atrium/netcdf/include -I/opt/atrium/netcdf/include
# Features
--------
PnetCDF Support: yes
SZIP Write Support: no
Parallel Filters: yes
NetCDF/HDF5 Support: no
NetCDF/HDF5 Par I/O: yes
NetCDF Integration: no
PIO Logging: no
MPIEXEC: mpiexec
Fortran: yes
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/pio2
- Ngôn ngữ chính
- C
- Star
- 161
- Fork
- 60
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NCAR/ParallelIO
-
Bad NetCDF4 compatibility checkĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
NCAR/ParallelIO#2026 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
NCAR/ParallelIO#2029 · 5 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
NCAR/ParallelIO#2009 · 1 bình luận ·
-
Some tests failedĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
NCAR/ParallelIO#1996 ·
-
5120 task large dof shows error lCó thể làm lại được @jedwards4b đã nhận 901 ngày trước và không có pull request nào đang mở. Đang mởbug
NCAR/ParallelIO#1991 · 1 người được giao ·
Tất cả issue của NCAR/ParallelIO
Issue tương tự
-
mewencode: base256[] and base128[] are indexed out of bounds by a non-ASCII octetCó thể đã có người làm @kazu-yamamoto đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kazu-yamamoto/Mew#276 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
FujiNetWIFI/fujinet-firmware#2045 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:gates area:gfx found-by:critic kind:gate-defect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
InauguralSystems/EigenScript#1825 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
gbdev/homebrewhub-submit#20 ·