Homebrew GCC may not work properly on Apple M1 devices

Правка en1, от Xiaohuba, 2023-05-14 06:12:13

These days I'm trying to compile the following c++ code: ```cpp

include

const int MAXN=1e5+5; std::vector factor[MAXN];

signed main() {return 0;} This code works while I'm using g++ 11.3.0. However, if I use g++ 13.1.0 or 12.1.0, I'll receive a **compile error**: /var/folders/v7/yk8tz4j54cl2lhp1f80nyz700000gn/T//cc2HpyzP.s:371:29: error: unexpected token in '.section' directive .section .data.rel.ro.local ``` Reinstalling the compiler doesn't works. What should I do?

Note I use Apple M1 with MacOS 13.2.1 (22D68).

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Xiaohuba 2023-05-14 06:13:02 45
en1 Английский Xiaohuba 2023-05-14 06:12:13 621 Initial revision (published)