Discussion:
[Buildroot] as: unrecognized option '--64'
Alejandro Blasco
2016-01-19 16:26:53 UTC
Permalink
Hi, thank you for your work.

I'm having this problem after configuring and running make, and nobody talk
about it in forums, stackoverflow, ....

btw I'm using Fedora 23
* Attached .config file





make[2]: Leaving directory
'/home/alejandro/Desktop/linux/buildroot/output/build/host-gcc-initial-5.2.0/build/fixincludes'
make[2]: Entering directory
'/home/alejandro/Desktop/linux/buildroot/output/build/host-gcc-initial-5.2.0/build/gcc'
/home/alejandro/Desktop/linux/buildroot/output/host/usr/bin/ccache
/usr/bin/g++ -c -O2
-I/home/alejandro/Desktop/linux/buildroot/output/host/usr/include
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild
-I../../gcc -I../../gcc/build
-I../../gcc/../include -I../../gcc/../libcpp/include \
-DBASEVER="\"5.2.0\"" -DDATESTAMP="\"\"" \
-DREVISION="\"\"" \
-DDEVPHASE="\"\"" -DPKGVERSION="\"(Buildroot 2015.11.1) \"" \
-DBUGURL="\"<http://bugs.buildroot.net/>\"" -o build/version.o
../../gcc/version.c <http://bugs.buildroot.net/%3E%5C>
/bin/sh ../../gcc/../move-if-change tmp-gi.list gtyp-input.list
echo timestamp > s-gtyp-input
/home/alejandro/Desktop/linux/buildroot/output/host/usr/bin/ccache
/usr/bin/g++ -c -O2
-I/home/alejandro/Desktop/linux/buildroot/output/host/usr/include
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild
-I../../gcc -I../../gcc/build
-I../../gcc/../include -I../../gcc/../libcpp/include \
-o build/genconstants.o ../../gcc/genconstants.c
/home/alejandro/Desktop/linux/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/bin/as:
unrecognized option '--64'
Makefile:2436: recipe for target 'build/version.o' failed
make[2]: *** [build/version.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/alejandro/Desktop/linux/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/bin/as:
unrecognized option '--64'
Makefile:2429: recipe for target 'build/genconstants.o' failed
make[2]: *** [build/genconstants.o] Error 1
make[2]: Leaving directory
'/home/alejandro/Desktop/linux/buildroot/output/build/host-gcc-initial-5.2.0/build/gcc'
Makefile:4099: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory
'/home/alejandro/Desktop/linux/buildroot/output/build/host-gcc-initial-5.2.0/build'
package/pkg-generic.mk:196: recipe for target
'/home/alejandro/Desktop/linux/buildroot/output/build/host-gcc-initial-5.2.0/.stamp_built'
failed
make: ***
[/home/alejandro/Desktop/linux/buildroot/output/build/host-gcc-initial-5.2.0/.stamp_built]
Error 2




Could you say me what am I doing wrong?
Thank you in advance
Thomas Petazzoni
2016-01-19 16:37:49 UTC
Permalink
Hello,
Post by Alejandro Blasco
/home/alejandro/Desktop/linux/buildroot/output/host/usr/bin/ccache
/usr/bin/g++ -c -O2
-I/home/alejandro/Desktop/linux/buildroot/output/host/usr/include
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild
-I../../gcc -I../../gcc/build
-I../../gcc/../include -I../../gcc/../libcpp/include \
-o build/genconstants.o ../../gcc/genconstants.c
unrecognized option '--64'
Makefile:2436: recipe for target 'build/version.o' failed
Thanks for the report. Could you:

*) Disable ccache support

*) Use uClibc-ng instead of uClibc snapshot, since we actually test
uClibc-ng support, but not uClibc snapshot support

*) Make sure you don't have anything weird in your PATH.

(Those are just basic sanity checks since I don't know specifically
where this error is coming from).

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Arnout Vandecappelle
2016-01-19 22:09:39 UTC
Permalink
Post by Alejandro Blasco
Hi, thank you for your work.
I'm having this problem after configuring and running make, and nobody talk
about it in forums, stackoverflow, ....
btw I'm using Fedora 23
* Attached .config file
make[2]: Leaving directory
'/home/alejandro/Desktop/linux/buildroot/output/build/host-gcc-initial-5.2.0/build/fixincludes'
make[2]: Entering directory
'/home/alejandro/Desktop/linux/buildroot/output/build/host-gcc-initial-5.2.0/build/gcc'
/home/alejandro/Desktop/linux/buildroot/output/host/usr/bin/ccache /usr/bin/g++
-c -O2 -I/home/alejandro/Desktop/linux/buildroot/output/host/usr/include
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE
-I. -Ibuild -I../../gcc -I../../gcc/build
-I../../gcc/../include -I../../gcc/../libcpp/include \
-DBASEVER="\"5.2.0\"" -DDATESTAMP="\"\"" \
-DREVISION="\"\"" \
-DDEVPHASE="\"\"" -DPKGVERSION="\"(Buildroot 2015.11.1) \"" \
-DBUGURL="\"<http://bugs.buildroot.net/>\"" -o build/version.o
../../gcc/version.c
[snip]
Post by Alejandro Blasco
unrecognized option '--64'
This is _extremely_ strange. There is no reason at all why the system's g++
should call the cross-as...

Do you have something particular in your environment?

Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Continue reading on narkive:
Loading...