Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 299600

Summary: sys-devel/gdb-7.0 fails to build with USE=multitarget
Product: Gentoo Linux Reporter: Knut St. Osmundsen <bird-gentoo>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 216368    
Bug Blocks: 296389    
Attachments: New version of 20_all_gdb-tdep-opcode-include-workaround.patch

Description Knut St. Osmundsen 2010-01-04 13:05:11 UTC
Another file with #including "opcodes/xxx.h" in gdb/, see #216368.

Reproducible: Always

Actual Results:  
x86_64-pc-linux-gnu-gcc -O2 -pipe -fno-omit-frame-pointer -ggdb   -I. -I. -I./common -I./config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode  -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber  -I./gnulib -Ignulib  -DMI_OUT=1 -DTUI=1   -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts  -c -o lm32-tdep.o -MT lm32-tdep.o -MMD -MP -MF .deps/lm32-tdep.Tpo lm32-tdep.c
lm32-tdep.c:38:31: error: opcodes/lm32-desc.h: No such file or directory
lm32-tdep.c: In function 'lm32_analyze_prologue':
lm32-tdep.c:144: error: 'OP_SW' undeclared (first use in this function)
lm32-tdep.c:144: error: (Each undeclared identifier is reported only once
lm32-tdep.c:144: error: for each function it appears in.)
lm32-tdep.c:153: error: 'OP_ADDI' undeclared (first use in this function)
lm32-tdep.c:161: error: 'OP_ADD' undeclared (first use in this function)
lm32-tdep.c: In function 'lm32_breakpoint_from_pc':
lm32-tdep.c:225: error: 'OP_RAISE' undeclared (first use in this function)
make[2]: *** [lm32-tdep.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gdb-7.0/work/gdb-7.0/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gdb-7.0/work/gdb-7.0'
make: *** [all] Error 2
 * 
 * ERROR: sys-devel/gdb-7.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2651:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gdb-7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gdb-7.0/temp/environment'.
 *
Comment 1 Knut St. Osmundsen 2010-01-04 13:06:13 UTC
Created attachment 215165 [details, diff]
New version of 20_all_gdb-tdep-opcode-include-workaround.patch