Jump to content
Sign in to follow this  
websterling

Problem Installing Uniarch MSPGCC - Solved

Recommended Posts

The problem was that msp430-gcc 3.2.3 was installed, by rpm rather than yum.

 

Uninstalling it and recompiling and installing the chain solved the problem.

 

Thanks for all the replies,

George

 

 

 

 

I'm trying to install Uniarch MSPGCC using the guide by sergiocampama

 

I've managed to get through the process to the last section- compiling libc. Running make fails with the following errors-

In file included from libm/fdlibm.h:16,
                from libm/ef_acos.c:16:
../include/math.h:73:1: directives may not be used inside a macro argument
../include/math.h:72:26: unterminated argument list invoking macro "_PARAMS"
In file included from libm/fdlibm.h:16,
                from libm/ef_acos.c:16:
../include/math.h:73: syntax error before "_PARAMS"
../include/math.h:78: syntax error before ')' token
../include/math.h:163:1: directives may not be used inside a macro argument
../include/math.h:162:26: unterminated argument list invoking macro "_PARAMS"
../include/math.h:163: syntax error before "_PARAMS"
../include/math.h:168: syntax error before ')' token
make[1]: *** [build/msp2/ef_acos.o] Error 1
make[1]: Leaving directory `/root/TexasInstruments/msp430/mspgcc-20110612/sources/msp430-libc-20110130/src'
make: *** [build-multilib] Error 2

 

I would appreciate any ideas on how to get around this problem.

 

Thanks,

George

Share this post


Link to post
Share on other sites

I am using the guide at github sergiocampama/Launchpad/blob/master/README.md (The system won't let me post a proper URL)

 

I am trying to install on a Fedora12 system, and all of the other programs compiled and installed without error. The last step in the guide is compiling and installing msp430-libc-20110612 There would seem to be problems with the file ../include/math.h

 

This is the entire output from running make-

 

for i in `msp430-gcc --print-multi-lib 2>/dev/null`; do \
         dir=`echo $i | sed -e 's/;.*$//'` ; \
         options=`echo $i | sed -e 's/[^@]*//' -e 's/@/ -/g'`; \
         make  "MULTILIB_DIR=$dir" "LIB_OPTIONS=$options" build-libc build-libm ; \
       done;
make[1]: Entering directory `/root/TexasInstruments/msp430/mspgcc-20110612/sources/msp430-libc-20110612/src'
mkdir -p ./Build/.
msp430-gcc -c  -I./../include -I. -Wall -Os -gdwarf-2 ./libm/ef_acos.c -o Build/./ef_acos.o
In file included from libm/fdlibm.h:16,
                from libm/ef_acos.c:16:
../include/math.h:73:1: directives may not be used inside a macro argument
../include/math.h:72:26: unterminated argument list invoking macro "_PARAMS"
In file included from libm/fdlibm.h:16,
                from libm/ef_acos.c:16:
../include/math.h:73: syntax error before "_PARAMS"
../include/math.h:78: syntax error before ')' token
../include/math.h:163:1: directives may not be used inside a macro argument
../include/math.h:162:26: unterminated argument list invoking macro "_PARAMS"
../include/math.h:163: syntax error before "_PARAMS"
../include/math.h:168: syntax error before ')' token
make[1]: *** [build/./ef_acos.o] Error 1
make[1]: Leaving directory `/root/TexasInstruments/msp430/mspgcc-20110612/sources/msp430-libc-20110612/src'
make[1]: Entering directory `/root/TexasInstruments/msp430/mspgcc-20110612/sources/msp430-libc-20110612/src'
mkdir -p ./Build/msp1
msp430-gcc -c -mmcu=msp1 -I./../include -I. -Wall -Os -gdwarf-2 ./libm/ef_acos.c -o Build/msp1/ef_acos.o
In file included from libm/fdlibm.h:16,
                from libm/ef_acos.c:16:
../include/math.h:73:1: directives may not be used inside a macro argument
../include/math.h:72:26: unterminated argument list invoking macro "_PARAMS"
In file included from libm/fdlibm.h:16,
                from libm/ef_acos.c:16:
../include/math.h:73: syntax error before "_PARAMS"
../include/math.h:78: syntax error before ')' token
../include/math.h:163:1: directives may not be used inside a macro argument
../include/math.h:162:26: unterminated argument list invoking macro "_PARAMS"
../include/math.h:163: syntax error before "_PARAMS"
../include/math.h:168: syntax error before ')' token
make[1]: *** [build/msp1/ef_acos.o] Error 1
make[1]: Leaving directory `/root/TexasInstruments/msp430/mspgcc-20110612/sources/msp430-libc-20110612/src'
make[1]: Entering directory `/root/TexasInstruments/msp430/mspgcc-20110612/sources/msp430-libc-20110612/src'
mkdir -p ./Build/msp2
msp430-gcc -c -mmcu=msp2 -I./../include -I. -Wall -Os -gdwarf-2 ./libm/ef_acos.c -o Build/msp2/ef_acos.o
In file included from libm/fdlibm.h:16,
                from libm/ef_acos.c:16:
../include/math.h:73:1: directives may not be used inside a macro argument
../include/math.h:72:26: unterminated argument list invoking macro "_PARAMS"
In file included from libm/fdlibm.h:16,
                from libm/ef_acos.c:16:
../include/math.h:73: syntax error before "_PARAMS"
../include/math.h:78: syntax error before ')' token
../include/math.h:163:1: directives may not be used inside a macro argument
../include/math.h:162:26: unterminated argument list invoking macro "_PARAMS"
../include/math.h:163: syntax error before "_PARAMS"
../include/math.h:168: syntax error before ')' token
make[1]: *** [build/msp2/ef_acos.o] Error 1
make[1]: Leaving directory `/root/TexasInstruments/msp430/mspgcc-20110612/sources/msp430-libc-20110612/src'
make: *** [build-multilib] Error 2

 

Any ideas appreciated.

 

Thanks,

George

Share this post


Link to post
Share on other sites
Does that help?

 

Thanks for the reply, but no.

 

I have seen this already. The original poster in that thread had this same problem with make and the reply was that he uninstall any yum installed mpsgcc packages (I don't have any) and start fresh with mspgcc4. The original poster also later replie that he solved the problem by successful installing mspgcc-4.4.5

 

Since I've gotten to the end using sergiocampama's guide to installing Uniarch MSPGCC and only have this problem, I'd like to make Uniarch work, rather than trying to uninstall what I've done and start again.

 

George

Share this post


Link to post
Share on other sites
---- but I have to correct you on one thing ----Yum is a RPM package manager and is used to install .rpm package files, I occasionally use yum to install .rpm on my ubuntu system

 

True, but .rpm's can be installed with rpm, rather than yum. If they are installed with rpm, then they can't be uninstalled by yum.

Share this post


Link to post
Share on other sites
True, but .rpm's can be installed with rpm, rather than yum. If they are installed with rpm, then they can't be uninstalled by yum.

 

This is so absolutely and utterly untrue I don't even know where to point you at to get you on the right track wrt. Red Hat-style package management.

 

Also not a topic of this board.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...