OpenCores
no use no use 1/1 no use no use
GNU Assembler problem when trying bld-all.sh
by geri on Apr 12, 2012
geri
Posts: 2
Joined: Oct 10, 2008
Last seen: Jun 18, 2012
Hi All,

I am trying to install the OpenRISC GNU toolchain.

I am proceeding according to the http://opencores.org/openrisc,gnu_toolchain page

However when I come to the bld-all.sh part I got an error message:

>./bld-all.sh --force --prefix /opt/openrisc --or1ksim-dir /opt/or1ksim --uclibc-dir uClibc --linux-dir linux

....

echo "@set BUGURL @uref{http://bugzilla.opencores.org/}" >> gcc-vers.texiT; \
mv -f gcc-vers.texiT gcc-vers.texi
echo timestamp > gcov.pod
perl ../../unisrc/gcc/../contrib/texi2pod.pl -DBUGURL="@uref{http://bugzilla.opencores.org/}" ../../unisrc/gcc/doc/gcov.texi > gcov.pod
echo timestamp > gcc.pod
perl ../../unisrc/gcc/../contrib/texi2pod.pl ../../unisrc/gcc/doc/invoke.texi > gcc.pod
echo timestamp > gpl.pod
perl ../../unisrc/gcc/../contrib/texi2pod.pl ../../unisrc/gcc/doc/include/gpl_v3.texi > gpl.pod
gawk -f ../../unisrc/gcc/opt-functions.awk -f ../../unisrc/gcc/optc-gen.awk \
-v header_name="config.h system.h coretypes.h tm.h" options.c
@table ended by @end quotation at line 14531
make[1]: [gcc.pod] Error 255 (ignored)
gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../unisrc/gcc -I../../unisrc/gcc/build -I../../unisrc/gcc/../include -I../../unisrc/gcc/../libcpp/include -I../../unisrc/gcc/../libdecnumber -I../../unisrc/gcc/../libdecnumber/dpd -I../libdecnumber \
-o build/genchecksum.o ../../unisrc/gcc/genchecksum.c
gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I. -I../../unisrc/gcc -I../../unisrc/gcc/. -I../../unisrc/gcc/../include -I../../unisrc/gcc/../libcpp/include -I../../unisrc/gcc/../libdecnumber -I../../unisrc/gcc/../libdecnumber/dpd -I../libdecnumber ../../unisrc/gcc/errors.c -o errors.o
/home/sg3265/gnu-src/bd-elf/gcc/../gas/as-new: unrecognized option '--32'
/home/sg3265/gnu-src/bd-elf/gcc/../gas/as-new: unrecognized option '--32'
make[1]: *** [build/genchecksum.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [errors.o] Error 1
rm gcc.pod gcov.pod
make[1]: Leaving directory `/home/sg3265/gnu-src/bd-elf/gcc'
make: *** [all-gcc] Error 2
make (all-gcc) failed.

The option "--32" is an option of "as" whereas "as-new" does not have such option. But why does it want to use "as-new" with this option?

Tool versions I am using:
gcc version: 4.6.1, gdb 7.3, binutils 2.21.53


Thanks a lot in advance,
Gergely
RE: GNU Assembler problem when trying bld-all.sh
by jeremybennett on Apr 14, 2012
jeremybennett
Posts: 815
Joined: May 29, 2008
Last seen: Jun 13, 2019

Hi Gergely,

Here is a copy of the reply I posted on the mailing list.

./bld-all.sh --force --prefix /opt/openrisc --or1ksim-dir /opt/or1ksim --uclibc-dir uClibc --linux-dir linux

...


/home/sg3265/gnu-src/bd-elf/gcc/../gas/as-new: unrecognized option '--32'
/home/sg3265/gnu-src/bd-elf/gcc/../gas/as-new: unrecognized option '--32'
make[1]: *** [build/genchecksum.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [errors.o] Error 1
rm gcc.pod gcov.pod
make[1]: Leaving directory `/home/sg3265/gnu-src/bd-elf/gcc'
make: *** [all-gcc] Error 2
make (all-gcc) failed.

The option "--32" is an option of "as" whereas "as-new" does not have such option. But why does it want to use "as-new" with this option?

Tool versions I am using:

    gcc version: 4.6.1, gdb 7.3, binutils 2.21.53

I saw this recently in a completely different target, with a different script, but one, that like the OpenRISC script is based on Mike Frysinger's GCC cross-compiler build flow. It is a feature of the underlying GCC make.

Almost certainly you have "." on your search path. So when the build script tries to use the host assembler, it picks up by mistake the local version of the assembler it has just built. -32 is an option to the Intel version of as, but not to or32-linux-as nor or32-elf-as. So you get this rather bizarre error message.

HTH,

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

RE: GNU Assembler problem when trying bld-all.sh
by geri on Apr 15, 2012
geri
Posts: 2
Joined: Oct 10, 2008
Last seen: Jun 18, 2012
Hi Jeremy,

Thanks a lot this solved the issue!

Cheers,
Gergely
no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.