LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sourcecode>./configure>make=failure (https://www.linuxquestions.org/questions/linux-newbie-8/sourcecode-configure-make%3Dfailure-223618/)

rumle8905 08-28-2004 04:01 PM

sourcecode>./configure>make=failure
 
Hi I'm trying to install a microcontroller assembler IDE ( MPLAB ) from microchip
I have untared the relevant (mplabal30...tar.gz) file and cd'ed to the unpaked files directory.
from the unpacked directory i have ( as suggested in the readme file ) typed "./configure" <enter> and then typed "make" <enter>. the last few lines in bash goes:
from app.c:30:
config/tc-i386.h:160: error: parse error before '*' token
config/tc-i386.h:164: error: parse error before "expressionS"
In file included from obj-format.h:1,
from config/te-linux.h:4,
from targ-env.h:1,
from as.h:622,
from app.c:30:
config/obj-elf.h:72: error: parse error before "expressionS"
config/obj-elf.h:72: warning: no semicolon at end of struct or union
config/obj-elf.h:84: error: parse error before '}' token
make[3]: *** [app.o] Fejl 1
make[3]: Leaving directory `/home/john/Download/Mplab/acme/gas'
make[2]: *** [all-recursive] Fejl 1
make[2]: Leaving directory `/home/john/Download/Mplab/acme/gas'
make[1]: *** [all-recursive-am] Fejl 2
make[1]: Leaving directory `/home/john/Download/Mplab/acme/gas'
make: *** [all-gas] Fejl 2
[root@dhcppc0 acme]#

Fejl=Error

this is from Mandrake 10.0 on my big box, i have also tried with the exactly the same result on my notebook with debian. I have only tried Linux for a week so I hope I'm doing something wrong. :-)

John

Tinkster 08-28-2004 05:40 PM

Not quite enough of the output ...

There must have been errors above the
Code:

from app.c:30:
config/tc-i386.h:160: error: parse error before '*' token


Cheers,
Tink

rumle8905 08-29-2004 01:13 AM

Ok, here are more lines from bash: ( I have uploaded the full session "configure+make" at http://users.cybercity.dk/~dsl91020/linux/mplabmake 58kbyte file ). I hope this helps.

bfd/.libs/libbfd.a ../libiberty/libiberty.a
bucomm.o(.text+0x3a2): In function `make_tempname':
/home/john/Download/Mplab/acme/binutils/bucomm.c:246: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/bin/sh ./libtool --mode=link gcc -W -Wall -g -O2 -o bin2hex bin2hex.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a
gcc -W -Wall -g -O2 -o bin2hex bin2hex.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
bucomm.o(.text+0x3a2): In function `make_tempname':
/home/john/Download/Mplab/acme/binutils/bucomm.c:246: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/bin/sh ./libtool --mode=link gcc -W -Wall -g -O2 -o addr2line addr2line.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a
gcc -W -Wall -g -O2 -o addr2line addr2line.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
bucomm.o(.text+0x3a2): In function `make_tempname':
/home/john/Download/Mplab/acme/binutils/bucomm.c:246: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/bin/sh ./libtool --mode=link gcc -W -Wall -g -O2 -o nm-new nm.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a
gcc -W -Wall -g -O2 -o nm-new nm.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
bucomm.o(.text+0x3a2): In function `make_tempname':
/home/john/Download/Mplab/acme/binutils/bucomm.c:246: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/bin/sh ./libtool --mode=link gcc -W -Wall -g -O2 -o strip-new objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a
gcc -W -Wall -g -O2 -o strip-new objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
bucomm.o(.text+0x3a2): In function `make_tempname':
/home/john/Download/Mplab/acme/binutils/bucomm.c:246: warning: the use of `mktemp' is dangerous, better use `mkstemp'
echo '/*WARNING: This file is automatically generated!*/' >underscore.t
echo "int prepends_underscore = 0;" >>underscore.t
/bin/sh ./../move-if-change underscore.t underscore.c
underscore.c is unchanged
touch stamp-under
sed -e 's/@PROGRAM@/c++filt/' < ./cxxfilt.man \
> c++filt.1
make[3]: Leaving directory `/home/john/Download/Mplab/acme/binutils'
make[2]: Leaving directory `/home/john/Download/Mplab/acme/binutils'
make[1]: Leaving directory `/home/john/Download/Mplab/acme/binutils'
make[1]: Entering directory `/home/john/Download/Mplab/acme/etc'
make[1]: Ingenting at gøre for 'all'.
make[1]: Leaving directory `/home/john/Download/Mplab/acme/etc'
make[1]: Entering directory `/home/john/Download/Mplab/acme/gas'
make all-recursive
make[2]: Entering directory `/home/john/Download/Mplab/acme/gas'
Making all in doc
make[3]: Entering directory `/home/john/Download/Mplab/acme/gas/doc'
make[3]: Ingenting at gøre for 'all'.
make[3]: Leaving directory `/home/john/Download/Mplab/acme/gas/doc'
Making all in po
make[3]: Entering directory `/home/john/Download/Mplab/acme/gas/po'
make[3]: Ingenting at gøre for 'all'.
make[3]: Leaving directory `/home/john/Download/Mplab/acme/gas/po'
make[3]: Entering directory `/home/john/Download/Mplab/acme/gas'
gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd -I./../intl -I../intl -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall -g -O2 -c app.c
In file included from targ-cpu.h:1,
from config/obj-elf.h:42,
from obj-format.h:1,
from config/te-linux.h:4,
from targ-env.h:1,
from as.h:622,
from app.c:30:
config/tc-i386.h:160: error: parse error before '*' token
config/tc-i386.h:164: error: parse error before "expressionS"
In file included from obj-format.h:1,
from config/te-linux.h:4,
from targ-env.h:1,
from as.h:622,
from app.c:30:
config/obj-elf.h:72: error: parse error before "expressionS"
config/obj-elf.h:72: warning: no semicolon at end of struct or union
config/obj-elf.h:84: error: parse error before '}' token
make[3]: *** [app.o] Fejl 1
make[3]: Leaving directory `/home/john/Download/Mplab/acme/gas'
make[2]: *** [all-recursive] Fejl 1
make[2]: Leaving directory `/home/john/Download/Mplab/acme/gas'
make[1]: *** [all-recursive-am] Fejl 2
make[1]: Leaving directory `/home/john/Download/Mplab/acme/gas'
make: *** [all-gas] Fejl 2
[root@dhcppc0 acme]#

"ingenting at gøre for"=nothing to do for
"fejl"=Fail, error

John

Tinkster 08-29-2004 03:17 AM

Glad to see you're using emacs ;}

Stabbing in the dark here, but you either have
included the wrong version of the targ-cpu.h
in the ./configure process, or the source is
simply buggy ... If your gcc is from the 3.x
series the code may just be on a level of
ANSI compliance that the new compiler
doesn't like.


Cheers,
Tink

rumle8905 08-29-2004 03:45 AM

Thank you for your reply Tinkster
Well emacs is on the first line among other texteditors, and I'm a little lazy so..
I will post my question on http://forum.microchip.com and return here keep you (all :) ) informed

John


All times are GMT -5. The time now is 11:57 PM.