Bug 75

Summary: arm buildroot "unrecognized option" error
Product: buildroot Reporter: Craig Dry <craigdry>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: critical CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: pc Target: arm
Build: Jan 26, 2009 daily buildroot
Attachments: .config for buildroot-2010.05-rc2 for AT91SAM9G20EK

Description Craig Dry 2009-01-26 22:05:16 UTC
I am having the following problem:
 
    1. I downloaded the latest buildroot to my Fedora Core 10 PC as follows:
        svn co svn://uclibc.org/trunk/buildroot
     2. Configure it by:
        make menuconfig (I changed the target Architecture to "arm".  Then I exited and save the configuration file.  No other changes.)
    3. do a build by entering:
        make > make.log

Unfortunately I get an "unrecognized option" error:

TARGET_CPU_DEFAULT="" \
 HEADERS="auto-host.h ansidecl.h" DEFINES="" \
 /bin/sh /home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2/gcc/mkconfig.sh bconfig.h
/usr/lib/ccache/gcc  -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2/gcc -I/home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2/gcc/build -I/home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2/gcc/../include -I/home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2/gcc/../libcpp/include -I/home/cdry/buildroot/toolchain_build_arm/gmp/include -I/home/cdry/buildroot/toolchain_build_arm/mpfr/include -I/home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2/gcc/../libdecnumber -I/home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2/gcc/../libdecnumber/dpd -I../libdecnumber    -o build/genmodes.o /home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2/gcc/genmodes.c
/home/cdry/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-as: unrecognized option `-Qy'
make[2]: *** [build/genmodes.o] Error 1
make[2]: Leaving directory `/home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2-initial/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2-initial'
make: *** [/home/cdry/buildroot/toolchain_build_arm/gcc-4.3.2-initial/.compiled] Error 2

For the purpose of comparison, I tried the following:
    1. got a fresh new buildroot from svn
    2. make menuconfig (this time, I leave the architecture selection at i386.  I exit and save the config file.)
    3. make > make.log
    4. Runs to completion without error.

So I see the problem for the "arm" architecture, but not for the "i386" architecture.
Comment 1 Peter Korsgaard 2009-03-04 11:17:48 UTC
Strange, I cannot reproduce it here. Could you please attach your .config and the entire make.log (remember to do make 2>&1 >make.log to also get errors)
Comment 2 Thomas Petazzoni 2009-07-17 09:00:49 UTC
No news since March from the submitter. Closing.
Comment 3 buildroot 2010-05-14 20:46:19 UTC
Created attachment 1729 [details]
.config for buildroot-2010.05-rc2 for AT91SAM9G20EK

Supplying .config per Peter Korsgaard's request.
Comment 4 Thomas Petazzoni 2010-05-21 22:28:09 UTC
Do you still have this issue ? If so, can you do echo $PATH in the shell you ran Buildroot make ?

See http://wiki.openembedded.net/index.php/Unrecognized_option_-Qy_on_x86_64 for some details.
Comment 5 Thomas Petazzoni 2010-05-21 22:57:03 UTC
I have been able to reproduce by adding '.' to the PATH. I will send in a few minutes a pull request for a commit that adds a check at the beginning of Buildroot execution: if PATH contains '.', then we error out and tell the user about the issue.
Comment 6 Peter Korsgaard 2010-05-26 22:48:06 UTC
PATH check fixed by Thomas in git.