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-8962: [C++] Add explicit implementation for junk values #7286

Closed
wants to merge 1 commit into from

Conversation

xhochy
Copy link
Member

@xhochy xhochy commented May 27, 2020

When linking the tests with clang-4.0, I get

Undefined symbols for architecture x86_64:
  "arrow::internal::(anonymous namespace)::StringToFloatConverterImpl::main_junk_value_", referenced from:
      arrow::internal::StringToFloat(char const*, unsigned long, float*) in libarrow.a(value_parsing.cc.o)
      arrow::internal::StringToFloat(char const*, unsigned long, double*) in libarrow.a(value_parsing.cc.o)
  "arrow::internal::(anonymous namespace)::StringToFloatConverterImpl::fallback_junk_value_", referenced from:
      arrow::internal::StringToFloat(char const*, unsigned long, float*) in libarrow.a(value_parsing.cc.o)
      arrow::internal::StringToFloat(char const*, unsigned long, double*) in libarrow.a(value_parsing.cc.o)
ld: symbol(s) not found for architecture x86_64

These older clang versions need an explicit implementation definition.

@github-actions
Copy link

bkietz pushed a commit to bkietz/arrow that referenced this pull request May 29, 2020
When linking the tests with `clang-4.0`, I get

```
Undefined symbols for architecture x86_64:
  "arrow::internal::(anonymous namespace)::StringToFloatConverterImpl::main_junk_value_", referenced from:
      arrow::internal::StringToFloat(char const*, unsigned long, float*) in libarrow.a(value_parsing.cc.o)
      arrow::internal::StringToFloat(char const*, unsigned long, double*) in libarrow.a(value_parsing.cc.o)
  "arrow::internal::(anonymous namespace)::StringToFloatConverterImpl::fallback_junk_value_", referenced from:
      arrow::internal::StringToFloat(char const*, unsigned long, float*) in libarrow.a(value_parsing.cc.o)
      arrow::internal::StringToFloat(char const*, unsigned long, double*) in libarrow.a(value_parsing.cc.o)
ld: symbol(s) not found for architecture x86_64
```

These older clang versions need an explicit implementation definition.

Closes apache#7286 from xhochy/ARROW-8962

Authored-by: Uwe L. Korn <uwe.korn@quantco.com>
Signed-off-by: François Saint-Jacques <fsaintjacques@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants