[M3devel] building m3gdb on AMD64_LINUX

Olaf Wagner wagner at elegosoft.com
Sat Jul 4 19:55:21 CEST 2009


Quoting "Rodney M. Bates" <rodney.m.bates at cox.net>:

> On my AMD64_LINUX machine (Ubuntu 8.04.2), on which m3gdb builds, yacc
> is circuitously symlinked  to a script that executes /usr/bin/bison -y.
>
> In any case, usually, there is no need to execute yacc when building (m3)gdb,
> because its output is already present and newer than yacc's input, in
> this case,
> c-exp.y.  I think this is the way it is in the CVS repository.  Did   
> some dates
> in your source copy get touched?
>
> I have no idea where the c-exp.t file it wants is supposed to come from.
> In a brief look, I didn't find any reference to a *.t file at all,
> either in the script
> m3gdb/gdb/ylwrap, nor in the yacc man page (which actually leads to the
> bison man page on my machine).   Maybe original yacc  does something
> with it. I would have thought ylwrap would have been written to work
> with a number
> of varieties of yacc and equivalents. Do you have a copy of c-exp.y?
>
> I suspect having a newer c-exp.c than c-exp.y will circumvent this
> problem, but
> of course we probably want it set up to work when c-exp.c needs to   
> be rebuilt.

I now removed everything, including the source, and checked out the
package anew. Then the build completed without problems.

Thanks for the help,

Olaf

> Olaf Wagner wrote:
>> building m3gdb on birch ends with
>>
>> gcc -c -g    -I. -I../../gdb/gdb -I../../gdb/gdb/config   
>> -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H   
>> -I../../gdb/gdb/../include/opcode -I../../gdb/gdb/../readline/..   
>> -I../bfd -I../../gdb/gdb/../bfd -I../../gdb/gdb/../include   
>> -I../intl -I../../gdb/gdb/../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit   
>> -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses   
>> -Wpointer-arith -Wformat-nonliteral -Wunused-label   
>> -Wunused-function  ../../gdb/gdb/tui/tui-winsource.c
>> /bin/sh ../../gdb/gdb/../ylwrap ../../gdb/gdb/c-exp.y y.tab.c   
>> c-exp.c.tmp -- yacc
>> Cannot open   
>> "/home/wagner/work/cm3/m3-sys/m3gdb/AMD64_LINUX/gdb/../../gdb/gdb/c-exp.t"   
>> make[2]: *** [c-exp.c] Error 1
>> make[2]: Leaving directory   
>> `/home/wagner/work/cm3/m3-sys/m3gdb/AMD64_LINUX/gdb'
>> make[1]: *** [all-gdb] Error 2
>> make[1]: Leaving directory `/home/wagner/work/cm3/m3-sys/m3gdb/AMD64_LINUX'
>> make: *** [all] Error 2
>> "/home/wagner/work/cm3/m3-sys/m3gdb/src/m3makefile", line 121:   
>> quake runtime error: exit 2: make CC="gcc" CFLAGS="-g" MAKEINFO=echo
>>
>> --procedure--  -line-  -file---
>> exec               --  <builtin>
>> m3gdb_Run         121  /home/wagner/work/cm3/m3-sys/m3gdb/src/m3makefile
>> include_dir       160  /home/wagner/work/cm3/m3-sys/m3gdb/src/m3makefile
>>                    4    
>> /home/wagner/work/cm3/m3-sys/m3gdb/AMD64_LINUX/m3make.args
>>
>> Fatal Error: package build failed
>>
>> Any hints? Wrong yacc?
>>
>> Olaf



-- 
Olaf Wagner -- elego Software Solutions GmbH
                Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
    http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list