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 ‘readr 1.4.0’ in R 4.3.1 #1547

Open
rongqizhu opened this issue Jul 14, 2024 · 0 comments
Open

ERROR: compilation failed for package ‘readr 1.4.0’ in R 4.3.1 #1547

rongqizhu opened this issue Jul 14, 2024 · 0 comments

Comments

@rongqizhu
Copy link

Due to work requirements, I'm trying to install readr 1.4.0 in R v4.3.1.
But it doesn't work. It seems to be a problem with BH package, but I don't know how to solve it.

would greatly appreciate some help!!!

The version of the R package is as follows:
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22631)

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] devtools_2.2.1 usethis_1.5.1

loaded via a namespace (and not attached):
[1] gtable_0.3.5 dplyr_1.0.10 compiler_4.3.1 tidyselect_1.2.1 scales_1.3.0 yaml_2.3.8 fastmap_1.1.1
[8] ggplot2_3.5.1 R6_2.5.1 generics_0.1.3 knitr_1.45 tibble_3.2.1 munsell_0.5.1 pillar_1.9.0
[15] rlang_1.1.2 utf8_1.2.4 cachem_1.0.8 xfun_0.41 fs_1.6.3 pkgload_1.3.3 memoise_2.0.1
[22] cli_3.6.2 withr_3.0.0 magrittr_2.0.3 digest_0.6.33 grid_4.3.1 rstudioapi_0.16.0 remotes_2.4.2.1
[29] lifecycle_1.0.4 vctrs_0.6.5 evaluate_0.24.0 glue_1.7.0 sessioninfo_1.2.2 pkgbuild_1.4.3 fansi_1.0.6
[36] colorspace_2.1-0 rmarkdown_2.27 tools_4.3.1 pkgconfig_2.0.3 ellipsis_0.3.2 htmltools_0.5.7

Error Info:
install.packages("C:/Users/Rocky/Downloads/readr_1.4.0.tar.gz", repos = NULL, type = "source")

  • installing source package 'readr' ...
    ** package 'readr' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    using C compiler: 'gcc.exe (GCC) 12.3.0'
    using C++ compiler: 'g++.exe (GCC) 12.3.0'
    using C++11
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c Collector.cpp -o Collector.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c CollectorGuess.cpp -o CollectorGuess.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c Iconv.cpp -o Iconv.o
    In file included from Iconv.cpp:2:
    D:/APP/R/r-4.3.1/library/cpp11/include/cpp11/protect.hpp:326:3: warning: 'cpp11::preserved' defined but not used [-Wunused-variable]
    326 | } preserved;
    | ^~~~~~~~~
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c LocaleInfo.cpp -o LocaleInfo.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c Reader.cpp -o Reader.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c Source.cpp -o Source.o
    In file included from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/aux_/na_assert.hpp:23,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/arg.hpp:25,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/placeholders.hpp:24,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iterator/iterator_categories.hpp:16,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iterator/iterator_concepts.hpp:10,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/range/concepts.hpp:20,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/range/algorithm/equal.hpp:14,
    from utils.h:6,
    from Source.h:5,
    from Source.cpp:4:
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:194:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
    194 | failed ************ (Pred::************
    | ^~~~~~~~~~~~~~~~~~~
    195 | assert_arg( void ()(Pred), typename assert_arg_pred::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    196 | );
    | ~
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:194:21: note: remove parentheses
    194 | failed ************ (Pred::
    ***********
    | ^~~~~~~~~~~~~~~~~~~
    | -
    195 | assert_arg( void ()(Pred), typename assert_arg_pred::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    196 | );
    | ~
    | -
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:199:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
    199 | failed ************ (boost::mpl::not_::
    ***********
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    200 | assert_not_arg( void ()(Pred), typename assert_arg_pred_not::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    201 | );
    | ~
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:199:21: note: remove parentheses
    199 | failed ************ (boost::mpl::not_::
    ***********
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    | -
    200 | assert_not_arg( void ()(Pred), typename assert_arg_pred_not::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    201 | );
    | ~
    | -
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c Tokenizer.cpp -o Tokenizer.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c TokenizerDelim.cpp -o TokenizerDelim.o
    In file included from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/aux_/na_assert.hpp:23,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/arg.hpp:25,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/placeholders.hpp:24,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iterator/iterator_categories.hpp:16,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iterator/iterator_concepts.hpp:10,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/range/concepts.hpp:20,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/range/algorithm/equal.hpp:14,
    from utils.h:6,
    from Source.h:5,
    from Token.h:7,
    from TokenizerDelim.h:5,
    from TokenizerDelim.cpp:1:
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:194:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
    194 | failed ************ (Pred::
    ***********
    | ^~~~~~~~~~~~~~~~~~~
    195 | assert_arg( void ()(Pred), typename assert_arg_pred::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    196 | );
    | ~
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:194:21: note: remove parentheses
    194 | failed ************ (Pred::
    ***********
    | ^~~~~~~~~~~~~~~~~~~
    | -
    195 | assert_arg( void ()(Pred), typename assert_arg_pred::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    196 | );
    | ~
    | -
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:199:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
    199 | failed ************ (boost::mpl::not_::
    ***********
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    200 | assert_not_arg( void ()(Pred), typename assert_arg_pred_not::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    201 | );
    | ~
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:199:21: note: remove parentheses
    199 | failed ************ (boost::mpl::not_::
    ***********
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    | -
    200 | assert_not_arg( void ()(Pred), typename assert_arg_pred_not::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    201 | );
    | ~
    | -
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c TokenizerFwf.cpp -o TokenizerFwf.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c TokenizerWs.cpp -o TokenizerWs.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c connection.cpp -o connection.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c cpp11.cpp -o cpp11.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c datetime.cpp -o datetime.o
    gcc -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c grisu3.c -o grisu3.o
    grisu3.c: In function 'double2diy_fp':
    grisu3.c:57:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    57 | #define CAST_U64(d) (
    (uint64_t*)&d)
    | ^
    grisu3.c:209:24: note: in expansion of macro 'CAST_U64'
    209 | uint64_t u64 = CAST_U64(d);
    | ^~~~~~~~
    grisu3.c: In function 'grisu3':
    grisu3.c:57:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    57 | #define CAST_U64(d) ((uint64_t)&d)
    | ^
    grisu3.c:296:24: note: in expansion of macro 'CAST_U64'
    296 | uint64_t u64 = CAST_U64(v);
    | ^~~~~~~~
    grisu3.c: In function 'dtoa_grisu3':
    grisu3.c:57:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    57 | #define CAST_U64(d) ((uint64_t)&d)
    | ^
    grisu3.c:346:24: note: in expansion of macro 'CAST_U64'
    346 | uint64_t u64 = CAST_U64(v);
    | ^~~~~~~~
    gcc -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c init.c -o init.o
    gcc -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c localtime.c -o localtime.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c parse.cpp -o parse.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c read.cpp -o read.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c type_convert.cpp -o type_convert.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c write.cpp -o write.o
    In file included from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/aux_/na_assert.hpp:23,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/arg.hpp:25,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/placeholders.hpp:24,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iterator/iterator_categories.hpp:16,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iterator/iterator_facade.hpp:13,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/range/iterator_range_core.hpp:27,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/range/iterator_range.hpp:13,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/traits.hpp:38,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/detail/dispatch.hpp:17,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/flush.hpp:17,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/close.hpp:18,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/detail/functional.hpp:24,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/detail/streambuf/direct_streambuf.hpp:24,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/stream_buffer.hpp:21,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/stream.hpp:21,
    from write.cpp:6:
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:194:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
    194 | failed ************ (Pred::************
    | ^~~~~~~~~~~~~~~~~~~
    195 | assert_arg( void ()(Pred), typename assert_arg_pred::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    196 | );
    | ~
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:194:21: note: remove parentheses
    194 | failed ************ (Pred::
    ***********
    | ^~~~~~~~~~~~~~~~~~~
    | -
    195 | assert_arg( void ()(Pred), typename assert_arg_pred::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    196 | );
    | ~
    | -
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:199:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
    199 | failed ************ (boost::mpl::not_::
    ***********
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    200 | assert_not_arg( void ()(Pred), typename assert_arg_pred_not::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    201 | );
    | ~
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:199:21: note: remove parentheses
    199 | failed ************ (boost::mpl::not_::
    ***********
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    | -
    200 | assert_not_arg( void ()(Pred), typename assert_arg_pred_not::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    201 | );
    | ~
    | -
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c write_connection.cpp -o write_connection.o
    g++ -std=gnu++11 -I"D:/APP/R/r-4.3.1/include" -DNDEBUG -I'D:/APP/R/r-4.3.1/library/BH/include' -I'D:/APP/R/r-4.3.1/library/cpp11/include' -I"D:/APP/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c write_delim.cpp -o write_delim.o
    In file included from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/aux_/na_assert.hpp:23,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/arg.hpp:25,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/placeholders.hpp:24,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iterator/iterator_categories.hpp:16,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iterator/iterator_facade.hpp:13,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/range/iterator_range_core.hpp:27,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/range/iterator_range.hpp:13,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/traits.hpp:38,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/detail/dispatch.hpp:17,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/flush.hpp:17,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/close.hpp:18,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/detail/functional.hpp:24,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/detail/streambuf/direct_streambuf.hpp:24,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/stream_buffer.hpp:21,
    from D:/APP/R/r-4.3.1/library/BH/include/boost/iostreams/stream.hpp:21,
    from write_delim.cpp:7:
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:194:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
    194 | failed ************ (Pred::
    ***********
    | ^~~~~~~~~~~~~~~~~~~
    195 | assert_arg( void ()(Pred), typename assert_arg_pred::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    196 | );
    | ~
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:194:21: note: remove parentheses
    194 | failed ************ (Pred::
    ***********
    | ^~~~~~~~~~~~~~~~~~~
    | -
    195 | assert_arg( void ()(Pred), typename assert_arg_pred::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    196 | );
    | ~
    | -
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:199:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
    199 | failed ************ (boost::mpl::not_::
    ***********
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    200 | assert_not_arg( void ()(Pred), typename assert_arg_pred_not::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    201 | );
    | ~
    D:/APP/R/r-4.3.1/library/BH/include/boost/mpl/assert.hpp:199:21: note: remove parentheses
    199 | failed ************ (boost::mpl::not_::
    ***********
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    | -
    200 | assert_not_arg( void (*)(Pred), typename assert_arg_pred_not::type )
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    201 | );
    | ~
    | -
    g++ -shared -s -static-libgcc -o readr.dll tmp.def Collector.o CollectorGuess.o Iconv.o LocaleInfo.o Reader.o Source.o Tokenizer.o TokenizerDelim.o TokenizerFwf.o TokenizerWs.o connection.o cpp11.o datetime.o grisu3.o init.o localtime.o parse.o read.o type_convert.o write.o write_connection.o write_delim.o -LD:/APP/rtools43/x86_64-w64-mingw32.static.posix/lib/x64 -LD:/APP/rtools43/x86_64-w64-mingw32.static.posix/lib -LD:/APP/R/r-4.3.1/bin/x64 -lR
    D:\APP\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: D:/APP/rtools43/x86_64-w64-mingw32.static.posix/lib/libmsvcrt.a(lib64_libucrt_extra_a-ucrtbase_compat.o): in function tzset': /root/mxe/tmp-gcc-x86_64-w64-mingw32.static.posix/gcc-12.3.0.build_.crt/../gcc-12.3.0.build_/mingw-w64-v10.0.0/mingw-w64-crt/crt/ucrtbase_compat.c:143: multiple definition of tzset'; localtime.o:localtime.c:(.text+0x3310): first defined here
    collect2.exe: error: ld returned 1 exit status
    no DLL was created
    ERROR: compilation failed for package 'readr'
  • removing 'D:/APP/R/r-4.3.1/library/readr'
  • restoring previous 'D:/APP/R/r-4.3.1/library/readr'
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