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

Arrow: Program exited with code -11 #255

Open
andre2007 opened this issue May 5, 2020 · 2 comments
Open

Arrow: Program exited with code -11 #255

andre2007 opened this issue May 5, 2020 · 2 comments
Labels
bug C++ C++ translation

Comments

@andre2007
Copy link

I have this dockerfile

FROM dlang2/ldc-ubuntu:1.20.0 as ldc

RUN apt-get update && apt-get install -y -V lsb-release wget \
    && wget https://apache.bintray.com/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-archive-keyring-latest-$(lsb_release --codename --short).deb \
    && apt install -y -V ./apache-arrow-archive-keyring-latest-$(lsb_release --codename --short).deb \
    && apt update && apt install -y -V libarrow-dev libparquet-dev

RUN apt-get install -y clang-9 libclang-9-dev
RUN ln -s /usr/bin/clang-9 /usr/bin/clang
RUN dub fetch dpp && DFLAGS="-L=-L/usr/lib/llvm-9/lib/" dub build dpp
COPY parquet.dpp /tmp/

RUN DFLAGS="-L=-L/usr/lib/llvm-9/lib/" dub run dpp -- /tmp/parquet.dpp \
    --parse-as-cpp \
    --include-path /usr/include/arrow \
    --include-path /usr/include/parquet \
    --preprocess-only

File parquet.dpp looks like this

#include <arrow/api.h>
#include <arrow/io/api.h>

Dpp ends with:

Running ./root/.dub/packages/dpp-0.4.1/dpp/bin/d++ /tmp/parquet.dpp --parse-as-cpp --include-path /usr/include/arrow --include-path /usr/include/parquet --preprocess-only
Program exited with code -11
The command '/bin/sh -c DFLAGS="-L=-L/usr/lib/llvm-9/lib/" dub run dpp -- /tmp/parquet.dpp --parse-as-cpp --include-path /usr/include/arrow --include-path /usr/include/parquet --preprocess-only' returned a non-zero code: 2

@atilaneves atilaneves added the bug label May 5, 2020
@atilaneves atilaneves added the C++ C++ translation label Jun 17, 2020
@atilaneves
Copy link
Owner

The original issue (the crash) is fixed by this:

atilaneves/libclang#20

But then the translation fails anyway because C++ is hard.

@atilaneves
Copy link
Owner

C++ support is just experimental at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug C++ C++ translation
Projects
None yet
Development

No branches or pull requests

2 participants