When installing on OSX Sierra via gcc-6, hold "FATAL: / opt / local / bin /../ libexec / as / x86_64 / as: I do not understand the flag" m "! Error

Environmental information

Operating System: macOS 10.12.2 (16C68)

Compiler: GCC-6

Playback Steps

I installed gcc-6 and modified config.mk as required, export CC = gcc-6 export CXX = g++-6 but continue with this error: g++-6 -c -std=c++0x -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/learner.cc -o build/learner.o FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!

What have you tried?

  • Reinstall XCode
  • Reinstall gcc
  • Run make clean_all && make -4j

But everything went wrong. Any idea?

+4
source share
2 answers

macports - gnu-. as, Xcode, /opt/local/bin .

+2

MacPorts:

sudo port -f uninstall installed
+1

Source: https://habr.com/ru/post/1666218/


All Articles