[
https://issues.apache.org/jira/browse/ARROW-16478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532112#comment-17532112
]
Yibo Cai commented on ARROW-16478:
----------------------------------
The code only runs on Arm.
https://github.com/apache/arrow/blob/master/cpp/src/arrow/util/cpu_info.cc#L124
> [C++] cpu_info.cc fails clang-12 debug build on Arm
> ---------------------------------------------------
>
> Key: ARROW-16478
> URL: https://issues.apache.org/jira/browse/ARROW-16478
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Yibo Cai
> Assignee: Yibo Cai
> Priority: Major
> Fix For: 9.0.0
>
>
> {code:bash}
> ../src/arrow/util/cpu_info.cc:124:13: error: implicit conversion loses
> integer precision: '__ssize_t' (aka 'long') to 'int'
> [-Werror,-Wshorten-64-to-32]
> int res = getline(&content, &file_len, cache_file);
> ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> {code}
> Not a blocking issue IMO.
> Looks there are more code needs refine in cpu_info.cc.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)