awslabs / awslabs/aws-lambda-cpp
Unable to build S3 example using provided instructions
- Linguagem predominante
- C++
- Estrelas
- 465
- Forks
- 98
- Merge médio
- 12h 47min
- PRs com merge (30d)
- 3
Descrição
The instructions say to use the provided Dockerfile to build the S3 example. However, it looks like something has changed as the build now fails:
```
# make
Scanning dependencies of target encoder
[ 50%] Building CXX object CMakeFiles/encoder.dir/main.cpp.o
[100%] Linking CXX executable encoder
/usr/include/c++/9.3.0/ext/string_conversions.h: In function '__to_xstring.constprop':
/usr/include/fortify/stdio.h:70:28: error: inlining failed in call to always_inline 'vsnprintf': function body can be overwritten at link time
70 | _FORTIFY_FN(vsnprintf) int vsnprintf(char *__s, size_t __n, const char *__f,
| ^
/usr/include/c++/9.3.0/ext/string_conversions.h:111:32: note: called from here
111 | const int __len = __convf(__s, __n, __fmt, __args);
| ^
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/encoder.dir/build.make:116: encoder] Error 1
make[1]: *** [CMakeFiles/Makefile2:97: CMakeFiles/encoder.dir/all] Error 2
make: *** [Makefile:104: all] Error 2
```
Please provide updated instructions for building the S3 example.
Guia de contribuição
Direção de pesquisa
Comece com o Dockerfile fornecido e as instruções de build do exemplo S3, depois reproduza a falha com `make` e inspecione a configuração de build do CMake envolvida. Atualize as instruções para refletir um processo de build funcional e verifique se o exemplo S3 é compilado com sucesso seguindo as etapas documentadas.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- aws, cmake, cpp, docker
- Domínio
- build-system, cloud, documentation
- Tipo de issue
- Documentação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100