jlhonora / mspgcc-install

Script to install mspgcc (open-source compiler for msp430) in ubuntu
31 stars 12 forks source link

install error on ubuntu 16 #8

Closed shyandsy closed 7 years ago

shyandsy commented 7 years ago

suffer error on ubuntu 16

could you help for identify what problem it is?

W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c ../../../binutils-2.21.1/bfd/opncls.c -o opncls.o
In file included from ../../../binutils-2.21.1/bfd/opncls.c:26:0:
../../../binutils-2.21.1/bfd/opncls.c: In function ‘bfd_fopen’:
./bfd.h:524:65: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
 #define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
                                                                 ^
../../../binutils-2.21.1/bfd/opncls.c:249:5: note: in expansion of macro ‘bfd_set_cacheable’
     bfd_set_cacheable (nbfd, TRUE);
     ^
cc1: all warnings being treated as errors
Makefile:1513: recipe for target 'opncls.lo' failed
make[4]: *** [opncls.lo] Error 1
make[4]: Leaving directory '/home/genomote/workspace/mspgcc-install/mspgcc-20120406/BUILD/binutils/bfd'
Makefile:1555: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/home/genomote/workspace/mspgcc-install/mspgcc-20120406/BUILD/binutils/bfd'
Makefile:1692: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/home/genomote/workspace/mspgcc-install/mspgcc-20120406/BUILD/binutils/bfd'
Makefile:3397: recipe for target 'install-bfd' failed
make[1]: *** [install-bfd] Error 2
make[1]: Leaving directory '/home/genomote/workspace/mspgcc-install/mspgcc-20120406/BUILD/binutils'
Makefile:2642: recipe for target 'install' failed
make: *** [install] Error 2
Done with binutils
make[4]: *** [opncls.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-bfd] Error 2
make: *** [all] Error 2
make[4]: *** [opncls.lo] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-bfd] Error 2
make: *** [install] Error 2
There seems to be errors, exiting
jlhonora commented 7 years ago

Might be too late already, but in case you still need this please check updated readme.

rhr407 commented 7 years ago

I am also facing the very same problem. I have tried other methods on google to build the packages for 20 bit support to run the code in contiki but with no success. Whenever I try to build the packages they come up with errors. This is the problem with all the methods. I have installed ubuntu from scratch twice but am unable to figure out why this problem comes up. Please help.

ghost commented 5 years ago

@rhr407 Hi Rizwan, kindly please how did solve this issue I have the same problem

rhr407 commented 5 years ago

Are you trying 20 bit compilation support for contiki? Here is the solution https://github.com/pksec/msp430-gcc-4.7.3

ghost commented 5 years ago

Thank you very much really appreciate it.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Rizwan Hamid Randhawa notifications@github.com Sent: Saturday, February 23, 2019 10:09 AM To: jlhonora/mspgcc-install Cc: Zahraa Zakariya Saleh; Comment Subject: Re: [jlhonora/mspgcc-install] install error on ubuntu 16 (#8)

Are you trying 20 bit compilation support for contiki? Here is the solution https://github.com/pksec/msp430-gcc-4.7.3

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/jlhonora/mspgcc-install/issues/8#issuecomment-466624261, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkntIb6-c5gDEVgTRED3FBm6AOG0Wuvoks5vQOkYgaJpZM4LTpqJ.