grimbough / rhdf5

Package providing an interface between HDF5 and R
http://bioconductor.org/packages/rhdf5
59 stars 22 forks source link

Compilation fails when the folder containing the renv has a space in its name #128

Closed albert180 closed 10 months ago

albert180 commented 1 year ago

The compilation of the rhdf5-package fails when the folder containing the renv has a space in it's name. If you replace the space with underscores it compiles without errors.

grimbough commented 1 year ago

I'm afraid I don't use renv. Can you give am example of your setup? It'd also be great if you could include the installation log and error you see here.

albert180 commented 1 year ago

Sure. Here it is: `R version 4.3.0 (2023-04-21) -- "Already Tomorrow" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-redhat-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

General Information:

               HDF5 Version: 1.10.7
              Configured on: Tue May 16 20:26:03 CEST 2023
              Configured by: pius@fedora
                Host system: x86_64-unknown-linux-gnu
          Uname information: Linux fedora 6.2.14-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May  1 00:55:28 UTC 2023 x86_64 GNU/Linux
                   Byte sex: little-endian
         Installation point: /tmp/RtmpFGs5uc/R.INSTALL8419c4179a44e/Rhdf5lib/src/hdf5/hdf5

Compiling Options:

                 Build Mode: production
          Debugging Symbols: no
                    Asserts: no
                  Profiling: no
         Optimization Level: high

Linking Options:

                  Libraries: static

Statically Linked Executables: LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 H5_LDFLAGS: AM_LDFLAGS: Extra libraries: -lcrypto -lcurl -lsz -laec -lz -ldl -lm Archiver: ar AR_FLAGS: cr Ranlib: ranlib

Languages:

                          C: yes
                 C Compiler: /usr/bin/gcc ( gcc (GCC) 13.1.1 20230511 )
                   CPPFLAGS: -I/usr/local/include
                H5_CPPFLAGS: -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L   -DNDEBUG -UH5_DEBUG_API
                AM_CPPFLAGS: 
                    C Flags: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto -w -fpic
                 H5 C Flags:  -std=c99  -Wno-c++-compat -Wno-format-nonliteral -Wshadow -Wundef -Wwrite-strings -Wlarger-than=2560 -Wlogical-op -Wframe-larger-than=16384 -Wpacked-bitfield-compat -Wsync-nand -Wdouble-promotion -Wtrampolines -Wstack-usage=8192 -Wmaybe-uninitialized -Wdate-time -Warray-bounds=2 -Wc99-c11-compat -Wduplicated-cond -Whsa -Wnormalized -Wunused-const-variable -Walloca -Walloc-zero -Wduplicated-branches -Wimplicit-fallthrough=5 -Wrestrict -Wattribute-alias -Wshift-overflow=2 -Wattribute-alias=2 -Wmissing-profile -fstdarg-opt -s -Wno-aggregate-return -Wno-inline -Wno-missing-format-attribute -Wno-missing-noreturn -Wno-overlength-strings -Wno-jump-misses-init -Wno-suggest-attribute=const -Wno-suggest-attribute=noreturn -Wno-suggest-attribute=pure -Wno-suggest-attribute=format -Wno-suggest-attribute=cold -Wno-suggest-attribute=malloc -O3  -Werror=bad-function-cast -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=missing-prototypes -Werror=nested-externs -Werror=old-style-definition -Werror=packed -Werror=pointer-sign -Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=strict-prototypes -Werror=switch -Wunused-function -Wformat -Werror=incompatible-pointer-types -Werror=shadow -Wcast-function-type -Wmaybe-uninitialized
                 AM C Flags: 
           Shared C Library: no
           Static C Library: yes

                    Fortran: no

                        C++: yes
               C++ Compiler: /usr/bin/g++ -std=gnu++17 ( g++ (GCC) 13.1.1 20230511 )
                  C++ Flags: -w -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto -fpic
               H5 C++ Flags:   -Wall -Wconversion -Wctor-dtor-privacy -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-include-dirs -Wno-format-nonliteral -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wshadow -Wsign-promo -Wundef -Wwrite-strings -pedantic -Wlarger-than=2560 -Wlogical-op -Wframe-larger-than=16384 -Wpacked-bitfield-compat -Wsync-nand -Wdouble-promotion -Wtrampolines -Wstack-usage=8192 -Wmaybe-uninitialized -Wdate-time -Wopenmp-simd -Warray-bounds=2 -Wduplicated-cond -Whsa -Wnormalized -Wunused-const-variable -Walloca -Walloc-zero -Wduplicated-branches -Wimplicit-fallthrough=5 -Wrestrict -Wattribute-alias -Wshift-overflow=2 -Wattribute-alias=2 -Wmissing-profile -fstdarg-opt -s -O3  -Wcast-align -Wmissing-declarations -Werror=packed -Werror=redundant-decls -Werror=switch -Wunused-but-set-variable -Werror=unused-function -Werror=unused-variable -Wunused-parameter -Werror=shadow
               AM C++ Flags: 
         Shared C++ Library: no
         Static C++ Library: yes

                       Java: no

Features:

               Parallel HDF5: no

Parallel Filtered Dataset Writes: no Large Parallel I/O: no High-level library: yes Build HDF5 Tests: no Build HDF5 Tools: no Threadsafety: no Default API mapping: v110 With deprecated public symbols: yes I/O filters (external): deflate(zlib),szip(encoder) MPE: no Direct VFD: no Mirror VFD: no (Read-Only) S3 VFD: yes (Read-Only) HDFS VFD: no dmalloc: no Packages w/ extra debug output: none API tracing: no Using memory checker: no Memory allocation sanity checks: no Function stack tracing: no Use file locking: best-effort Strict file format checks: no Optimization instrumentation: no make[1]: Entering directory '/tmp/RtmpFGs5uc/R.INSTALL8419c4179a44e/Rhdf5lib/src/hdf5' for d in src . c++ hl; do \ if test $d != .; then \ (cd $d && make lib) || exit 1; \ fi; \ done make[2]: Entering directory '/tmp/RtmpFGs5uc/R.INSTALL8419c4179a44e/Rhdf5lib/src/hdf5/src' make[3]: Entering directory '/tmp/RtmpFGs5uc/R.INSTALL8419c4179a44e/Rhdf5lib/src/hdf5/src' CC H5.lo CC H5checksum.lo CC H5dbg.lo CC H5system.lo CC H5timer.lo CC H5trace.lo CC H5A.lo CC H5Abtree2.lo CC H5Adense.lo CC H5Adeprec.lo CC H5Aint.lo CC H5Atest.lo CC H5AC.lo CC H5ACdbg.lo CC H5ACproxy_entry.lo CC H5B.lo CC H5Bcache.lo CC H5Bdbg.lo CC H5B2.lo CC H5B2cache.lo CC H5B2dbg.lo CC H5B2hdr.lo CC H5B2int.lo CC H5B2internal.lo CC H5B2leaf.lo CC H5B2stat.lo CC H5B2test.lo CC H5C.lo CC H5Cdbg.lo CC H5Cepoch.lo CC H5Cimage.lo CC H5Clog.lo CC H5Clog_json.lo CC H5Clog_trace.lo CC H5Cprefetched.lo CC H5Cquery.lo CC H5Ctag.lo CC H5Ctest.lo CC H5CS.lo CC H5CX.lo CC H5D.lo CC H5Dbtree.lo CC H5Dbtree2.lo CC H5Dchunk.lo CC H5Dcompact.lo CC H5Dcontig.lo CC H5Ddbg.lo CC H5Ddeprec.lo CC H5Dearray.lo CC H5Defl.lo CC H5Dfarray.lo CC H5Dfill.lo CC H5Dint.lo CC H5Dio.lo CC H5Dlayout.lo CC H5Dnone.lo CC H5Doh.lo CC H5Dscatgath.lo CC H5Dselect.lo CC H5Dsingle.lo CC H5Dtest.lo CC H5Dvirtual.lo CC H5E.lo CC H5Edeprec.lo CC H5Eint.lo CC H5EA.lo CC H5EAcache.lo CC H5EAdbg.lo CC H5EAdblkpage.lo CC H5EAdblock.lo CC H5EAhdr.lo CC H5EAiblock.lo CC H5EAint.lo CC H5EAsblock.lo CC H5EAstat.lo CC H5EAtest.lo CC H5F.lo CC H5Faccum.lo CC H5Fcwfs.lo CC H5Fdbg.lo CC H5Fdeprec.lo CC H5Fefc.lo CC H5Ffake.lo CC H5Fint.lo CC H5Fio.lo CC H5Fmount.lo CC H5Fquery.lo CC H5Fsfile.lo CC H5Fspace.lo CC H5Fsuper.lo CC H5Fsuper_cache.lo CC H5Ftest.lo CC H5FA.lo CC H5FAcache.lo CC H5FAdbg.lo CC H5FAdblock.lo CC H5FAdblkpage.lo CC H5FAhdr.lo CC H5FAint.lo CC H5FAstat.lo CC H5FAtest.lo CC H5FD.lo CC H5FDcore.lo CC H5FDfamily.lo CC H5FDhdfs.lo CC H5FDint.lo CC H5FDlog.lo CC H5FDmulti.lo CC H5FDsec2.lo CC H5FDspace.lo CC H5FDsplitter.lo CC H5FDstdio.lo CC H5FDtest.lo CC H5FL.lo CC H5FO.lo CC H5FS.lo CC H5FScache.lo CC H5FSdbg.lo CC H5FSint.lo CC H5FSsection.lo CC H5FSstat.lo CC H5FStest.lo CC H5G.lo CC H5Gbtree2.lo CC H5Gcache.lo CC H5Gcompact.lo CC H5Gdense.lo CC H5Gdeprec.lo CC H5Gent.lo CC H5Gint.lo CC H5Glink.lo CC H5Gloc.lo CC H5Gname.lo CC H5Gnode.lo CC H5Gobj.lo CC H5Goh.lo CC H5Groot.lo CC H5Gstab.lo CC H5Gtest.lo CC H5Gtraverse.lo CC H5HF.lo CC H5HFbtree2.lo CC H5HFcache.lo CC H5HFdbg.lo CC H5HFdblock.lo CC H5HFdtable.lo CC H5HFhdr.lo CC H5HFhuge.lo CC H5HFiblock.lo CC H5HFiter.lo CC H5HFman.lo CC H5HFsection.lo CC H5HFspace.lo CC H5HFstat.lo CC H5HFtest.lo CC H5HFtiny.lo CC H5HG.lo CC H5HGcache.lo CC H5HGdbg.lo CC H5HGquery.lo CC H5HL.lo CC H5HLcache.lo CC H5HLdbg.lo CC H5HLint.lo CC H5HLprfx.lo CC H5HLdblk.lo CC H5HP.lo CC H5I.lo CC H5Itest.lo CC H5L.lo CC H5Lexternal.lo CC H5make_libsettings.o CCLD H5make_libsettings LD_LIBRARY_PATH="$LD_LIBRARY_PATHecho -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 | \ sed -e 's/-L/:/g' -e 's/ //g'" \ ./H5make_libsettings > H5lib_settings.c || \ (test $HDF5_Make_Ignore && echo " Error ignored") || \ (rm -f H5lib_settings.c ; exit 1) CC H5lib_settings.lo CC H5MF.lo CC H5MFaggr.lo CC H5MFdbg.lo CC H5MFsection.lo CC H5MM.lo CC H5MP.lo CC H5MPtest.lo CC H5O.lo CC H5Odeprec.lo CC H5Oainfo.lo CC H5Oalloc.lo CC H5Oattr.lo CC H5Oattribute.lo CC H5Obogus.lo CC H5Obtreek.lo CC H5Ocache.lo CC H5Ocache_image.lo CC H5Ochunk.lo CC H5Ocont.lo CC H5Ocopy.lo CC H5Odbg.lo CC H5Odrvinfo.lo CC H5Odtype.lo CC H5Oefl.lo CC H5Ofill.lo CC H5Oflush.lo CC H5Ofsinfo.lo CC H5Oginfo.lo CC H5Oint.lo CC H5Olayout.lo CC H5Olinfo.lo CC H5Olink.lo CC H5Omessage.lo CC H5Omtime.lo CC H5Oname.lo CC H5Onull.lo CC H5Opline.lo CC H5Orefcount.lo CC H5Osdspace.lo CC H5Oshared.lo CC H5Oshmesg.lo CC H5Ostab.lo CC H5Otest.lo CC H5Ounknown.lo CC H5P.lo CC H5Pacpl.lo CC H5Pdapl.lo CC H5Pdcpl.lo CC H5Pdeprec.lo CC H5Pdxpl.lo CC H5Pencdec.lo CC H5Pfapl.lo CC H5Pfcpl.lo CC H5Pfmpl.lo CC H5Pgcpl.lo CC H5Pint.lo CC H5Plapl.lo CC H5Plcpl.lo CC H5Pocpl.lo CC H5Pocpypl.lo CC H5Pstrcpl.lo CC H5Ptest.lo CC H5PB.lo CC H5PL.lo CC H5PLint.lo CC H5PLpath.lo CC H5PLplugin_cache.lo CC H5R.lo CC H5Rint.lo CC H5Rdeprec.lo CC H5UC.lo CC H5RS.lo CC H5S.lo CC H5Sall.lo CC H5Sdbg.lo CC H5Shyper.lo CC H5Snone.lo CC H5Spoint.lo CC H5Sselect.lo CC H5Stest.lo CC H5SL.lo CC H5SM.lo CC H5SMbtree2.lo CC H5SMcache.lo CC H5SMmessage.lo CC H5SMtest.lo CC H5ST.lo CC H5T.lo CC H5Tarray.lo CC H5Tbit.lo CC H5Tcommit.lo CC H5Tcompound.lo CC H5Tconv.lo CC H5Tcset.lo CC H5Tdbg.lo CC H5Tdeprec.lo CC H5Tenum.lo CC H5Tfields.lo CC H5Tfixed.lo CC H5Tfloat.lo CC H5detect.o CCLD H5detect LD_LIBRARY_PATH="$LD_LIBRARY_PATHecho -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 | \ sed -e 's/-L/:/g' -e 's/ //g'" \ ./H5detect > H5Tinit.c || \ (test $HDF5_Make_Ignore && echo " Error ignored") || \ (rm -f H5Tinit.c ; exit 1) CC H5Tinit.lo CC H5Tnative.lo CC H5Toffset.lo CC H5Toh.lo CC H5Topaque.lo CC H5Torder.lo CC H5Tpad.lo CC H5Tprecis.lo CC H5Tstrpad.lo CC H5Tvisit.lo CC H5Tvlen.lo CC H5TS.lo CC H5VM.lo CC H5WB.lo CC H5Z.lo CC H5Zdeflate.lo CC H5Zfletcher32.lo CC H5Znbit.lo CC H5Zshuffle.lo CC H5Zscaleoffset.lo CC H5Zszip.lo CC H5Ztrans.lo CC H5FDros3.lo CC H5FDs3comms.lo CCLD libhdf5.la make[3]: Leaving directory '/tmp/RtmpFGs5uc/R.INSTALL8419c4179a44e/Rhdf5lib/src/hdf5/src' make[2]: Leaving directory '/tmp/RtmpFGs5uc/R.INSTALL8419c4179a44e/Rhdf5lib/src/hdf5/src' make[2]: Entering directory '/tmp/RtmpFGs5uc/R.INSTALL8419c4179a44e/Rhdf5lib/src/hdf5/c++' make[3]: Entering directory '/tmp/RtmpFGs5uc/R.INSTALL8419c4179a44e/Rhdf5lib/src/hdf5/c++' make[3]: Nothing to be done for 'build-lib'. make[3]: Leaving directory '/tmp/RtmpFGs5uc/R.INSTALL8419c4179a44e/Rhdf5lib/src/hdf5/c++'

It compiles without issues, if you remove the space from the folder name

grimbough commented 1 year ago

Thanks for the extra information. I think there's a path that I need to enclose in quotes to stop the path breaking around the space.

Can you try installing the latest version of Rhdf5lib via renv::install("grimbough/Rhdf5lib") and let me know if it works any better for you.

albert180 commented 1 year ago

Yes I will do it tomorrow

Am Mi., 17. Mai 2023 um 15:58 Uhr schrieb Mike Smith < @.***>:

Thanks for the extra information. I think there's a path that I need to enclose in quotes to stop the path breaking around the space.

Can you try installing the latest version of Rhdf5lib via renv::install("grimbough/Rhdf5lib") and let me know if it works any better for you.

— Reply to this email directly, view it on GitHub https://github.com/grimbough/rhdf5/issues/128#issuecomment-1551450559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4ODFUF7W754X3GYWRCHTDXGTKRJANCNFSM6AAAAAAYDZ7SCA . You are receiving this because you authored the thread.Message ID: @.***>

grimbough commented 10 months ago

I'm closing this and assuming it worked. Please reopen if that's not the case