Discussion:
[OpenRISC] New Install on Ubuntu 14.10
Ouabache Designworks
2014-10-29 02:43:52 UTC
Permalink
So I am now trying the install from here

https://github.com/juliusbaxter/mor1kx-dev-env/wiki/OpenRISC-tool-chain-installation-guide


using these repos:


git clone git://github.com/openrisc/or1k-src.git
git clone git://github.com/openrisc/or1k-gcc.git


And it errors out with this:

John Eaton




gcc -DHAVE_CONFIG_H -I. -I../../or1k-src/gas -I. -I../../or1k-src/gas
-I../bfd -I../../or1k-src/gas/config -I../../or1k-src/gas/../include
-I../../or1k-src/gas/.. -I../../or1k-src/gas/../bfd
-DLOCALEDIR="\"/opt/or1k-toolchain/share/locale\"" -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT
subsegs.o -MD -MP -MF .deps/subsegs.Tpo -c -o subsegs.o
../../or1k-src/gas/subsegs.c
In file included from ../../or1k-src/gas/as.h:95:0,
from ../../or1k-src/gas/subsegs.c:25:
../../or1k-src/gas/subsegs.c: In function ‘subseg_change’:
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata =
(val)),TRUE)
^
../../or1k-src/gas/subsegs.c:70:7: note: in expansion of macro
‘bfd_set_section_userdata’
bfd_set_section_userdata (stdoutput, seg, seginfo);
^
../../or1k-src/gas/subsegs.c: In function ‘subseg_get’:
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata =
(val)),TRUE)
^
../../or1k-src/gas/subsegs.c:172:7: note: in expansion of macro
‘bfd_set_section_userdata’
bfd_set_section_userdata (stdoutput, secptr, seginfo);
^
cc1: all warnings being treated as errors
Makefile:888: recipe for target 'subsegs.o' failed
make[4]: *** [subsegs.o] Error 1
make[4]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src/gas'
Makefile:2148: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src/gas'
Makefile:680: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src/gas'
Makefile:5043: recipe for target 'all-gas' failed
make[1]: *** [all-gas] Error 2
make[1]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src'
Makefile:829: recipe for target 'all' failed
make: *** [all] Error 2
Stefan Kristiansson
2014-10-29 06:58:02 UTC
Permalink
On Wed, Oct 29, 2014 at 4:43 AM, Ouabache Designworks
Post by Ouabache Designworks
So I am now trying the install from here
https://github.com/juliusbaxter/mor1kx-dev-env/wiki/OpenRISC-tool-chain-installation-guide
git clone git://github.com/openrisc/or1k-src.git
git clone git://github.com/openrisc/or1k-gcc.git
John Eaton
gcc -DHAVE_CONFIG_H -I. -I../../or1k-src/gas -I. -I../../or1k-src/gas
-I../bfd -I../../or1k-src/gas/config -I../../or1k-src/gas/../include
-I../../or1k-src/gas/.. -I../../or1k-src/gas/../bfd
-DLOCALEDIR="\"/opt/or1k-toolchain/share/locale\"" -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT
subsegs.o -MD -MP -MF .deps/subsegs.Tpo -c -o subsegs.o
../../or1k-src/gas/subsegs.c
In file included from ../../or1k-src/gas/as.h:95:0,
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata =
(val)),TRUE)
^
../../or1k-src/gas/subsegs.c:70:7: note: in expansion of macro
‘bfd_set_section_userdata’
bfd_set_section_userdata (stdoutput, seg, seginfo);
^
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata =
(val)),TRUE)
^
../../or1k-src/gas/subsegs.c:172:7: note: in expansion of macro
‘bfd_set_section_userdata’
bfd_set_section_userdata (stdoutput, secptr, seginfo);
^
cc1: all warnings being treated as errors
Makefile:888: recipe for target 'subsegs.o' failed
make[4]: *** [subsegs.o] Error 1
make[4]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src/gas'
Makefile:2148: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src/gas'
Makefile:680: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src/gas'
Makefile:5043: recipe for target 'all-gas' failed
make[1]: *** [all-gas] Error 2
make[1]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src'
Makefile:829: recipe for target 'all' failed
make: *** [all] Error 2
This is due to that your gcc version is producing a warning that is
then threated as an error.
It's fixed in upstream binutils, so you can either use that, or just
configure with --disable-werror

The fix for the issue seems to be this:
https://sourceware.org/ml/binutils/2014-01/msg00334.html

Stefan
Julius Baxter
2014-10-29 12:59:39 UTC
Permalink
On Wed, Oct 29, 2014 at 6:58 AM, Stefan Kristiansson <
Post by Stefan Kristiansson
On Wed, Oct 29, 2014 at 4:43 AM, Ouabache Designworks
Post by Ouabache Designworks
So I am now trying the install from here
https://github.com/juliusbaxter/mor1kx-dev-env/wiki/OpenRISC-tool-chain-installation-guide
Post by Ouabache Designworks
git clone git://github.com/openrisc/or1k-src.git
git clone git://github.com/openrisc/or1k-gcc.git
John Eaton
gcc -DHAVE_CONFIG_H -I. -I../../or1k-src/gas -I. -I../../or1k-src/gas
-I../bfd -I../../or1k-src/gas/config -I../../or1k-src/gas/../include
-I../../or1k-src/gas/.. -I../../or1k-src/gas/../bfd
-DLOCALEDIR="\"/opt/or1k-toolchain/share/locale\"" -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT
subsegs.o -MD -MP -MF .deps/subsegs.Tpo -c -o subsegs.o
../../or1k-src/gas/subsegs.c
In file included from ../../or1k-src/gas/as.h:95:0,
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata =
(val)),TRUE)
^
Post by Ouabache Designworks
../../or1k-src/gas/subsegs.c:70:7: note: in expansion of macro
‘bfd_set_section_userdata’
bfd_set_section_userdata (stdoutput, seg, seginfo);
^
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata =
(val)),TRUE)
^
Post by Ouabache Designworks
../../or1k-src/gas/subsegs.c:172:7: note: in expansion of macro
‘bfd_set_section_userdata’
bfd_set_section_userdata (stdoutput, secptr, seginfo);
^
cc1: all warnings being treated as errors
Makefile:888: recipe for target 'subsegs.o' failed
make[4]: *** [subsegs.o] Error 1
make[4]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src/gas'
Makefile:2148: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src/gas'
Makefile:680: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src/gas'
Makefile:5043: recipe for target 'all-gas' failed
make[1]: *** [all-gas] Error 2
make[1]: Leaving directory
'/home/johne/Desktop/socgen/tools/or1k/bld-or1k-src'
Makefile:829: recipe for target 'all' failed
make: *** [all] Error 2
This is due to that your gcc version is producing a warning that is
then threated as an error.
It's fixed in upstream binutils, so you can either use that, or just
configure with --disable-werror
https://sourceware.org/ml/binutils/2014-01/msg00334.html
I'm not sure why people are drawn to that set of instructions to build the
tool chain lately, but either way I've added the missing --disable-werror
to them (I presume it's when we go to do the newlib-enabled or1k-src
configure).

Cheers

Julius
Post by Stefan Kristiansson
Stefan
_______________________________________________
OpenRISC mailing list
http://lists.openrisc.net/listinfo/openrisc
Loading...