-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While installing on OSX Sierra via gcc-6, keep having "FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!" error #1945
Comments
I had the same problem and I tried with 'g++-mp-5' and it worked. It seems to be related to an unknown option passed to 'as'. Anybody knows how to examine command line option passed to assembler, so I could compare the options. |
@yuntai Hi, do you mean setting |
same problem here. $ make g++-6 -c -std=c++11 -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! make: *** [build/learner.o] Error 1 |
Same problem here. |
@Marswang92 @jialinzou @mcneale And I think the correct
The reason is the system use a different path of My solution is |
Hey guys, actually I've solved my problem by reinitializing my laptop. The cause might be multiple version of gcc on my laptop. Not quite sure. |
@mcneale great suggestion.thanks. |
@fcbruce Same problem was solved by adding the path. Thank you. |
Hello everyone! œ˙Ì˛�������Ä��������‡���Ö� ���������H���__PAGEZERO����������������������������������������������������������(���__TEXT����������������������������������������������������������__text����������__TEXT����������&�������∞�������&������������������Ä������������__stubs���������__TEXT����������÷���������������÷������������������Ä������������__stub_helper���__TEXT����������Ù�������B�������Ù������������������Ä������������__cstring�������__TEXT����������6������� I am freaking out i want to compile a code and it already takes me weeks to run a simple gfortran compiler on my mac. the problem is also that the export PATH=/usr/bin:$PATH is not permanently. So if I restart the terminal or the pc or if i open a new tab as is again in /opt/local/bin/as and not in /usr/bin/as Can anyone help me ...I am dying |
If you edit your .config file to add export PATH=/usr/bin:$PATH and restart the terminal, the compiler should find the right path. If you are using /opt/local/bin, then you modify .profile to put it there, e.g. |
I found that MacPorts was putting /opt/local/bin ahead of /usr/bin in the $PATH chain via these lines in .profile: [hash] MacPorts Installer addition on 2018-03-01_at_16:21:35: adding an appropriate PATH variable for use with MacPorts. So "as" was being found in /opt/local/bin/../libexec/as/x86_64/as before the preferred (working) version in /usr/bin Took these lines out of .profile and restarted terminal. My test file hello world.f is now compiling |
@netjjordan thanks a lot! I managed to get it compiling by putting /usr/bin at the start of PATH="..." |
Thanks @netjjordan it worked for me as well |
Late coming to the party... but... The following worked for me. This solution is independent of system path gyrations. $ cd /opt/local/bin Here's a test that shows that it works: $ mkdir ~/gcctest |
This works for me. Thanks very much |
Environment info
Operating System:
macOS 10.12.2 (16C68)
Compiler:
gcc-6
Steps to reproduce
I've installed gcc-6 and modified config.mk as required into
But keep having this error:
What have you tried?
XCode
gcc
make clean_all && make -4j
But still went wrong. Any idea?
The text was updated successfully, but these errors were encountered: