Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

libbacktrace could not find executable to open #34

@ms609

Description

@ms609

I'm running R4.1.2 with RBuildTools 4.0.

When I run

install.packages("Rcpp, type="source")

with a Makevars file containing
PKG_CXXFLAGS += -gdwarf-2 -g3 -fno-omit-frame-pointer

I see

* installing *source* package 'Rcpp' ...
** package 'Rcpp' successfully unpacked and MD5 sums checked
** using staged installation
** libs
"C:/RBuildTools/4.0/mingw64/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-41~1.2/include" -DNDEBUG -I../inst/include/       -gdwarf-2 -g3 -fno-omit-frame-pointer   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c api.cpp -o api.o
"C:/RBuildTools/4.0/mingw64/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-41~1.2/include" -DNDEBUG -I../inst/include/       -gdwarf-2 -g3 -fno-omit-frame-pointer   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c attributes.cpp -o attributes.o
"C:/RBuildTools/4.0/mingw64/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-41~1.2/include" -DNDEBUG -I../inst/include/       -gdwarf-2 -g3 -fno-omit-frame-pointer   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c barrier.cpp -o barrier.o
"C:/RBuildTools/4.0/mingw64/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-41~1.2/include" -DNDEBUG -I../inst/include/       -gdwarf-2 -g3 -fno-omit-frame-pointer   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c date.cpp -o date.o
"C:/RBuildTools/4.0/mingw64/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-41~1.2/include" -DNDEBUG -I../inst/include/       -gdwarf-2 -g3 -fno-omit-frame-pointer   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c module.cpp -o module.o
during RTL pass: final
In file included from ../inst/include/Rcpp/Module.h:92,
                 from ../inst/include/Rcpp.h:69,
                 from module.cpp:24:
../inst/include/Rcpp/module/class_Base.h: In member function 'virtual SEXPREC* Rcpp::class_Base::invoke(SEXP, SEXP, SEXPREC**, int)':
../inst/include/Rcpp/module/class_Base.h:52:5: internal compiler error: in based_loc_descr, at dwarf2out.c:14318
     }
     ^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/r-windows> for instructions.
make: *** [C:/PROGRA~1/R/R-41~1.2/etc/x64/Makeconf:245: module.o] Error 1
ERROR: compilation failed for package 'Rcpp'

Compilation is successful if I remove the -fno-omit-frame-pointer option.

I didn't see clear instructions for how to report this bug at https://github.com/r-windows, so apologies if this is the wrong place to report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions