Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Issues while building (pio_nc.c)

Đang mở
#2,001 14 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NCAR/ParallelIO

Tất cả issue của NCAR/ParallelIO

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.