NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/43219: Use MKCROSSGDB to cross-build gdb on linux host



The following reply was made to PR toolchain/43219; it has been noted by GNATS.

From: Bernd Ernesti <netbsd%lists.veego.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: toolchain/43219: Use MKCROSSGDB to cross-build gdb on linux host
Date: Fri, 7 May 2010 14:16:12 +0200

 On Wed, Apr 28, 2010 at 08:20:00AM +0000, eng1%koblersystems.de@localhost 
wrote:
 [..]
 
 > 1. When I try to cross-build gdb with:
 > 
 > MKCROSSGDB=yes
 > build.sh tools
 > 
 > I got the error message:
 > 
 > /bin/sh: 
 > /home/jan/netbsd/system/usr/src/tools/gdb/../../gnu/dist/gdb6/gdb/observer.sh:
 >  Permission denied                                         
 > 
 > *** Failed target:  observer.h
 > *** Failed command: 
 > /home/jan/netbsd/system/usr/src/tools/gdb/../../gnu/dist/gdb6/gdb/observer.sh
 >  h 
 > /home/jan/netbsd/system/usr/src/tools/gdb/../../gnu/dist/gdb6/gdb/doc/observer.texi
 >  observer.h                                                                  
 >                                 
 > *** Error code 126                                                           
 >                                                                              
 >                      
 > 
 > Stop.
 > nbmake: stopped in /home/jan/netbsd/obj/evbppc/tools/gdb/build/gdb
 > 
 > *** Failed target:  all-gdb
 [..]
 
 > >How-To-Repeat:
 [..]
 
 > # put source sets into  ${MY_NETBSD}/download
 > 
 > # extract source sets into ${MY_NETBSD}/system
 
 [..]
 
 > >Fix:
 > 1. In order to build a cross debugger e.g. powerpc--netbsd-gdb on a linux 
 > host, 
 > the file usr/src/gnu/dist/gdb6/gdb/observer.sh needs to be made executable.
 > 
 > ls -l usr/src/gnu/dist/gdb6/gdb/observer.sh
 > -rw-r--r-- 1 jan jan 4020  2. Jul 2006  usr/src/gnu/dist/gdb6/gdb/observer.sh
 
 Hmm, it looks like there is a problem with the gnusrc.tgz archive.
 Because a cvs checkout has the execute bit set:
 
 ls -la src/gnu/dist/gdb6/gdb/observer.sh 
 -rwxr-xr-x  1 root  wheel  4020 Jul  2  2006 src/gnu/dist/gdb6/gdb/observer.sh
 
 But checking the gnusrc.tgz from 
ftp.netbsd.org/pub/NetBSD/NetBSD-5.0.2/source/sets/
 has this:
 
 -rw-rw-r--  1 root     wsrc        4020 Jul  2  2006 
usr/src/gnu/dist/gdb6/gdb/observer.sh
 
 The the 5.0 and 5.0.1 gnusrc.tgz archives are also missing the executeable bit.
 
 Bernd
 


Home | Main Index | Thread Index | Old Index