Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: compilation failed for package ‘hdf5r’ within rsconnect::deployApp to shinyapps.io #374

Open
malcook opened this issue Apr 3, 2024 · 0 comments

Comments

@malcook
Copy link

malcook commented Apr 3, 2024

I have an shiny app that works on linux localhost however I am unsure how to proceed its deployment to shinyapp.io

While trying to rsconnect::deployApp() I get this error:

[2024-04-03T19:41:59.757536239+0000] Building R package: hdf5r (1.0.0)
/mnt/packages/build /mnt
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... no
checking for mawk... mawk
checking for grep that handles long lines and -e... /usr/bin/grep
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for h5cc... /usr/bin/h5cc
checking for HDF5 libraries... yes (version 1.10.7)
checking hdf5.h usability... yes
checking hdf5.h presence... yes
checking for hdf5.h... yes
checking for H5Fcreate in -lhdf5... yes
checking for hdf5_hl.h... yes
checking for H5LTpath_valid in -lhdf5_hl... yes
checking for main in -lhdf5_hl... yes
checking for matching HDF5 Fortran wrapper... /usr/bin/h5fc
Found hdf5 with version: 1.10.7
checking for ggrep... /usr/bin/grep
checking whether /usr/bin/grep accepts -o... yes
checking for ggrep... (cached) /usr/bin/grep
checking whether /usr/bin/grep accepts -o... yes
configure: creating ./config.status
config.status: creating src/Makevars
cp 1_10_0/*.c 1_10_0/*.h .
gcc -I/opt/R/3.4.3/lib/R/include -DNDEBUG -I/usr/include/hdf5/serial   -I/usr/local/include  -D_DEFINE_H5FREE_MEMORY_=0 -D__USE_MINGW_ANSI_STDIO -fpic  -g -O2 -fcommon  -c const_export.c -o const_export.o
gcc -I/opt/R/3.4.3/lib/R/include -DNDEBUG -I/usr/include/hdf5/serial   -I/usr/local/include  -D_DEFINE_H5FREE_MEMORY_=0 -D__USE_MINGW_ANSI_STDIO -fpic  -g -O2 -fcommon  -c datatype_export.c -o datatype_export.o
* installing to library ‘/usr/lib/R’
* installing *source* package ‘hdf5r’ ...
** package ‘hdf5r’ successfully unpacked and MD5 sums checked
** libs
datatype_export.c: In function ‘create_DT_H5D_mpio_no_collective_cause_t’:
datatype_export.c:1496:12: error: ‘H5D_MPIO_FILTERS’ undeclared (first use in this function); did you mean ‘H5Z_MAX_NFILTERS’?
 1496 |   myenum = H5D_MPIO_FILTERS;
      |            ^~~~~~~~~~~~~~~~
      |            H5Z_MAX_NFILTERS
datatype_export.c:1496:12: note: each undeclared identifier is reported only once for each function it appears in
make: *** [/opt/R/3.4.3/lib/R/etc/Makeconf:159: datatype_export.o] Error 1
ERROR: compilation failed for package ‘hdf5r’
* removing ‘/usr/lib/R/hdf5r’################################# End Task Log ################################# 
Error: Unhandled Exception: child_task=1401442512 child_task_status=failed: Error building image: Error building hdf5r (1.0.0). Build exited with non-zero status: 1
> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant