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

Osama Neiroukh commented on FLINK-23230:
----------------------------------------

Thank you both for quick responses.

 

So far I've run into the following errors.

1)

runtime-web stage fails due to absence of
[{color:#000000}https://nodejs.org/dist/v10.9.0/node-v10.9.0-darwin-arm64.tar.gz{color}]
Node version 16.0.0 and later have such a file
but this causes potential harmful side-effects when upgraded, such as:
{color:#000000}[{color}*{color:#ca3323}ERROR{color}*] (node:78328) [DEP0111] 
DeprecationWarning: Access to process.binding('http_parser') is deprecated.
 
2)
Stage{color:#000000}Flink : Formats : Parquet{color}
{color:#000000}fails due to absence of{color}
[{color:#000000}https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/3.5.1/protoc-3.5.1-osx-aarch_64.exe{color}]
In version {color:#000000}3.17.3, osx-aarch_64 exists, but attempting to 
upgrade protobuf became messy very quickly. 
{color}
 
A few other stages fail when I force compilation maven to never fail, but I 
haven't dug into whether they are related or not. I suspect attempting to 
modify protobuf versions caused domino failures. These are the other stages 
that fail:
 
{color:#000000}[{color}*{color:#5620f4}INFO{color}*] Flink : Connectors : Hive 
.......................... *{color:#ca3323}FAILURE{color}* [ 36.684 s]
 
{color:#000000}[{color}*{color:#5620f4}INFO{color}*] Flink : Formats : SQL 
Parquet ...................... *{color:#ca3323}FAILURE{color}* [  0.054 s]
 
{color:#000000}[{color}*{color:#5620f4}INFO{color}*] Flink : Python 
..................................... *{color:#ca3323}FAILURE{color}* [ 20.272 
s]
 
{color:#000000}[{color}*{color:#5620f4}INFO{color}*] Flink : Dist 
....................................... *{color:#ca3323}FAILURE{color}* [ 
15.850 s]
 
 
I wasn't sure if any of this is of interest or not, hence I filed the issue. If 
of interest, I can attempt to narrow down the failures and provide more details 
on signature and causes.
 
Thanks
 
Osama

> Cannot compile Flink on MacOS with M1 chip
> ------------------------------------------
>
>                 Key: FLINK-23230
>                 URL: https://issues.apache.org/jira/browse/FLINK-23230
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: 1.13.1
>            Reporter: Osama Neiroukh
>            Priority: Minor
>
> Flink doesn't currently compile on MacOS with M1 silicon.
> This is true for all recent versions (1.13.X) as well as master.
> Some of the problems have potentially easy fixes, such as installing node 
> separately or updating the relevant pom.xml to use a newer version of node. I 
> am getting some errors about deprecated features being used which are not 
> supported by newer node, but on the surface they seem easy to resolve. 
> I've had less success with complex dependencies such as protobuf.
> My long term objective is to use and contribute to Flink. If I can get some 
> help with the above issues, I am willing to make the modifications, submit 
> the changes as a pull request, and shepherd them to release. If compilation 
> on MacOS/M1 is not a priority, I can look for a virtual machine solution 
> instead. Feedback appreciated. 
>  
> Thanks
>  
> Osama



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to