[ 
https://issues.apache.org/jira/browse/ARROW-16478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532113#comment-17532113
 ] 

Antoine Pitrou commented on ARROW-16478:
----------------------------------------

Long term, {{cpu_info.cc}} would benefit from a cleanup. We could perhaps even 
base ourselves on a vendored library for CPU detection, assuming we find a 
lightweight one.

> [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)

Reply via email to