Closed skeydan closed 1 year ago
Yeah, the misspelling won't be a problem when submitting.
THis:
- using C++ compiler: 'Error in system2(cxx, "--version", TRUE, TRUE) : '"$(BINPREF)g++"' not found '
might be a problem, do we know where this comes from?
hm, it does find g++
though, as seen in the install.log
:
* installing *source* package 'torchaudio' ...
** using staged installation
** libs
g++ -std=gnu++11 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.3/Rcpp/include' -I"d:/rtools42/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.3/Rcpp/include' -I"d:/rtools42/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c read_mp3.cpp -o read_mp3.o
g++ -std=gnu++11 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.3/Rcpp/include' -I"d:/rtools42/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c read_wav.cpp -o read_wav.o
In file included from read_wav.cpp:2:
AudioFile.h: In instantiation of 'bool AudioFile<T>::decodeWaveFile(std::vector<unsigned char>&) [with T = float]':
AudioFile.h:486:16: required from 'bool AudioFile<T>::load(std::string) [with T = float; std::string = std::__cxx11::basic_string<char>]'
read_wav.cpp:9:28: required from here
AudioFile.h:617:59: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
617 | sample = (T)reinterpret_cast<float&> (sampleAsInt);
| ^~~~~~~~~~~
AudioFile.h: In instantiation of 'bool AudioFile<T>::decodeAiffFile(std::vector<unsigned char>&) [with T = float]':
AudioFile.h:490:16: required from 'bool AudioFile<T>::load(std::string) [with T = float; std::string = std::__cxx11::basic_string<char>]'
read_wav.cpp:9:28: required from here
AudioFile.h:762:59: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
762 | sample = (T)reinterpret_cast<float&> (sampleAsInt);
| ^~~~~~~~~~~
g++ -std=gnu++11 -shared -s -static-libgcc -o torchaudio.dll tmp.def RcppExports.o read_mp3.o read_wav.o -Ld:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools42/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR
installing to d:/RCompile/CRANguest/R-devel/lib/00LOCK-torchaudio/00new/torchaudio/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* MD5 sums
packaged installation of 'torchaudio' as torchaudio_0.2.1.zip
* DONE (torchaudio)
Maybe $(BINPREF)
is empty, but then g++
is found in a different way?
I found one issue where someone had the same warning, but it didn't prevent the software from working (stan, in this case): https://github.com/stan-dev/rstan/issues/855#issuecomment-698666099
@skeydan Can we merge this PR?
please do :-)))
Will try to fix the workflow tomorrow.
Regarding win-devel, with these changes the warning is gone, but they dislike "pre-processing" just as much as "preprocessing" ;-)) ... c'est la vie.