Post

Replies

Boosts

Views

Activity

GCC 9.2.0 and /usr/include
Greetings, All. I wish to build gcc-9.2.0 on my M1 Mini. Note that I am not really interested in gcc, as Apple's clang compiler is fantastic, but actually in gm2, which is written as a front end to gcc. Now, I understand that the gcc folk do not support M1, so I tried to build a cross-compiler to run under Rosetta-2, namely set both host and build to x86_64-darwin. The build trundles along (well, it flies -- this h/w is fast!) until it reaches "fixing" the header files. The path /usr/include is hard-coded throughout the build tools and it comes to a screeching halt. So how to fool the gcc build tools? The system will not let me create a symlink in /usr. I tried prepending an appropriate path from xcrun to the hard-code path but there are a *lot* of them. This is not a priority so I can just await M1 support. Thank you. jog
1
0
1.4k
Dec ’21
GCC 9.2.0 and /usr/include
Greetings, All. I wish to build gcc-9.2.0 on my M1 Mini. Note that I am not really interested in gcc, as Apple's clang compiler is fantastic, but actually in gm2, which is written as a front end to gcc. Now, I understand that the gcc folk do not support M1, so I tried to build a cross-compiler to run under Rosetta-2, namely set both host and build to x86_64-darwin. The build trundles along (well, it flies -- this h/w is fast!) until it reaches "fixing" the header files. The path /usr/include is hard-coded throughout the build tools and it comes to a screeching halt. So how to fool the gcc build tools? The system will not let me create a symlink in /usr. I tried prepending an appropriate path from xcrun to the hard-code path but there are a *lot* of them. This is not a priority so I can just await M1 support. Thank you. jog
Replies
1
Boosts
0
Views
1.4k
Activity
Dec ’21