Can't compile in alpine linux
- Lenguaje dominante
- C++
- Estrellas
- 30.5k
- Forks
- 5.9k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hi there,
I am trying to compile folly inside a alpine docker container. This is the error that I get.
bash-5.0# make -j8
[ 1%] Building CXX object CMakeFiles/folly_base.dir/folly/experimental/symbolizer/Elf.cpp.o
/root/folly/folly/experimental/symbolizer/Elf.cpp: In member function 'folly::symbolizer::ElfFile::OpenResult folly::symbolizer::ElfFile::init()':
/root/folly/folly/experimental/symbolizer/Elf.cpp:226:27: error: 'ELFCLASSFOLLY_ELF_NATIVE_CLASS' was not declared in this scope
226 | #define EXPECTED_CLASS P1(ELFCLASS, FOLLY_ELF_NATIVE_CLASS)
| ^~~~~~~~
/root/folly/folly/experimental/symbolizer/Elf.cpp:228:18: note: in definition of macro 'P2'
228 | #define P2(a, b) a##b
| ^
/root/folly/folly/experimental/symbolizer/Elf.cpp:226:24: note: in expansion of macro 'P1'
226 | #define EXPECTED_CLASS P1(ELFCLASS, FOLLY_ELF_NATIVE_CLASS)
| ^~
/root/folly/folly/experimental/symbolizer/Elf.cpp:230:38: note: in expansion of macro 'EXPECTED_CLASS'
230 | if (elfHeader.e_ident[EI_CLASS] != EXPECTED_CLASS) {
| ^~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/folly_base.dir/build.make:1421: CMakeFiles/folly_base.dir/folly/experimental/symbolizer/Elf.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:216: CMakeFiles/folly_base.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
I guess it has to do with the fact that alpine uses musl instead of glibc. Any ideas how to fix this?
Cheers,
Asier
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.