Opened 8 months ago

Last modified 5 months ago

#61416 assigned defect

hdf5 @1.10.7_0+cxx+hl: error: initializing 'H5A_t *' (aka 'struct H5A_t *') with an expression of type 'const H5A_t *' (aka 'const struct H5A_t *') discards qualifiers

Reported by: kencu (Ken) Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version:
Keywords: lion Cc:
Port: hdf5

Description

:info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I../fortran/src -DNDEBUG -UH5_DEBUG_API -I/opt/local/include -std=c99 -Wall -Warray-bounds -Wcast-qual -Wconversion -Wdouble-promotion -Wextra -Wformat=2 -Wframe-larger-than=16384 -Wimplicit-fallthrough -Wno-c++-compat -Wno-format-nonliteral -Wnull-dereference -Wunused-const-variable -Wwrite-strings -Wpedantic -Wvolatile-register-var -Wno-missing-noreturn -O3 -Werror=bad-function-cast -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=missing-declarations -Werror=packed -Werror=shadow -Werror=switch -Wno-error=incompatible-pointer-types-discards-qualifiers -Wunused-function -Wunused-variable -Wunused-parameter -Wcast-align -Wformat -pipe -Os -arch x86_64 -MT H5Adense.lo -MD -MP -MF .deps/H5Adense.Tpo -c H5Adense.c  -fno-common -DPIC -o .libs/H5Adense.o
:info:build clang: warning: unknown warning option '-Wdouble-promotion'; did you mean '-Wdocumentation'?
:info:build clang: warning: unknown warning option '-Wunused-const-variable'; did you mean '-Wunused-variable'?
:info:build clang: warning: unknown warning option '-Werror=incompatible-pointer-types-discards-qualifiers'; did you mean '-Werror=incompatible-pointer-types'?
:info:build warning: unknown warning option '-Wdouble-promotion'; did you mean '-Wdocumentation'? [-Wunknown-warning-option]
:info:build warning: unknown warning option '-Wunused-const-variable'; did you mean '-Wunused-variable'? [-Wunknown-warning-option]
:info:build warning: unknown warning option '-Werror=incompatible-pointer-types-discards-qualifiers'; did you mean '-Werror=incompatible-pointer-types'? [-Wunknown-warning-option]
:info:build H5Adense.c:314:16: error: initializing 'H5A_t *' (aka 'struct H5A_t *') with an expression of type 'const H5A_t *' (aka 'const struct H5A_t *') discards qualifiers [-Werror,-Wincompatible-pointer-types]
:info:build         H5A_t *old_attr = *user_attr;
:info:build                ^          ~~~~~~~~~~
:info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I../fortran/src -DNDEBUG -UH5_DEBUG_API -I/opt/local/include -std=c99 -Wall -Warray-bounds -Wcast-qual -Wconversion -Wdouble-promotion -Wextra -Wformat=2 -Wframe-larger-than=16384 -Wimplicit-fallthrough -Wno-c++-compat -Wno-format-nonliteral -Wnull-dereference -Wunused-const-variable -Wwrite-strings -Wpedantic -Wvolatile-register-var -Wno-missing-noreturn -O3 -Werror=bad-function-cast -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=missing-declarations -Werror=packed -Werror=shadow -Werror=switch -Wno-error=incompatible-pointer-types-discards-qualifiers -Wunused-function -Wunused-variable -Wunused-parameter -Wcast-align -Wformat -pipe -Os -arch x86_64 -MT H5Adeprec.lo -MD -MP -MF .deps/H5Adeprec.Tpo -c H5Adeprec.c  -fno-common -DPIC -o .libs/H5Adeprec.o
:info:build clang: warning: unknown warning option '-Wdouble-promotion'; did you mean '-Wdocumentation'?
:info:build clang: warning: unknown warning option '-Wunused-const-variable'; did you mean '-Wunused-variable'?
:info:build 3 warnings and 1 error generated.
:info:build clang: warning: unknown warning option '-Werror=incompatible-pointer-types-discards-qualifiers'; did you mean '-Werror=incompatible-pointer-types'?
:info:build warning: unknown warning option '-Wdouble-promotion'; did you mean '-Wdocumentation'? [-Wunknown-warning-option]
:info:build warning: unknown warning option '-Wunused-const-variable'; did you mean '-Wunused-variable'? [-Wunknown-warning-option]
:info:build make[2]: *** [H5Adense.lo] Error 1

forcing the build to macports-clang-9.0 worked

Attachments (1)

hdf5-fail-lion.log (84.6 KB) - added by kencu (Ken) 8 months ago.

Download all attachments as: .zip

Change History (2)

Changed 8 months ago by kencu (Ken)

Attachment: hdf5-fail-lion.log added

comment:1 Changed 5 months ago by eborisch (Eric A. Borisch)

Can you create a pull request to set the compiler on lion?

Note: See TracTickets for help on using tickets.