From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23548 invoked by alias); 27 May 2012 18:49:50 -0000 Received: (qmail 23540 invoked by uid 22791); 27 May 2012 18:49:49 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_PM X-Spam-Check-By: sourceware.org Received: from mail-ee0-f47.google.com (HELO mail-ee0-f47.google.com) (74.125.83.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 May 2012 18:49:36 +0000 Received: by eekd49 with SMTP id d49so545002eek.20 for ; Sun, 27 May 2012 11:49:35 -0700 (PDT) Received: by 10.14.37.206 with SMTP id y54mr1079324eea.218.1338144574771; Sun, 27 May 2012 11:49:34 -0700 (PDT) Received: from localhost.localdomain (host-89-243-216-251.as13285.net. [89.243.216.251]) by mx.google.com with ESMTPS id s8sm28888969ees.16.2012.05.27.11.49.32 (version=SSLv3 cipher=OTHER); Sun, 27 May 2012 11:49:33 -0700 (PDT) Message-ID: <4FC2773C.7080509@googlemail.com> Date: Sun, 27 May 2012 18:49:00 -0000 From: David Fernandez User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Gene Smith CC: insight@sources.redhat.com Subject: Re: Re: Error while "make all": "make[2]: *** No rule to make target `/libreadline.a', needed by `gdb'. Stop." References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00039.txt.bz2 On 27/05/12 07:19, Gene Smith wrote: > David Fernandez wrote, On 05/25/2012 06:10 PM: >> Hi Keith, >> >> On Fri, May 25, 2012 at 12:10 AM, Keith Seitz wrote: >>> On 05/24/2012 03:45 PM, David Fernandez wrote: >>> >>>> I get the sources by doing: >>>> yumdownloader --source insight >>>> rpm -i insight-7.4.50-1.20120403cvs.fc16.src.rpm >>>> cd ~/rpmbuild/SPECS; rpmbuild -bp insight.spec >>>> cd ~/rpmbuild/BUILDROOT/arm-eabi/insight-7.4.50 > > Actually cd ~/rpmbuild/BUILDROOT > mkdir -p arm-eabi/insight-7.4.50 > cd arm-eabi/insight-7.4.50 > Yes, right, I pretend that I had created the folder early on... >>>> ~/rpmbuild/BUILD/insight-7.4.50/configure --target=arm-eabi -v 2>&1 | >>>> tee configure.out > > I see the same error. Doing this instead allows it to build as is: > ~/rpmbuild/BUILD/insight-7.4.50/configure --with-system-readline > --target=arm-eabi -v 2>&1 | tee configure.out > Excellent, it builds! > The problem is that one of the patches to gdb/Makefile takes out the > path to readline. > If I put it back in it also works w/o the --with-system-readline: > Remove last patch from > rpmbuild/SOURCES/insight-7.4.50-readline-system.patch. > I'll go with the first solution, unless the system readline gives any problem... unless you are sure that something is wrong with it. > Are you trying to build an RPM for arm-eabi? I've never built an RPM > (or maybe once long ago) > so what is the next step? "make install" ?? I use insight with > embedded arm-eabi constantly but > have made my own custom version that works well from a CVS snapshot > and codesourery's gdb source. > I was just building a toochain, that will require su -c 'make install' (or sudo make install if you have sudo configured, like in Ubuntu). For a rpm, we would need to modify the SPEC file to build insight for arm-eabi, using --with-system-readline. Then doing rpmbuild --rebuild, and hopefully we will end with a binary rpm in RPMS folder. The difficult thing is to compile gcc, that requires some more switches when configuring, and pehaps a stripped version of the C runtime library, more appropriate for embedded systems, like newlib. There is a good guide, other than these hitches for that in ecos.sourceware.org Just one more thing that you guys might now by heart, but I forgot long ago... When running the installed arm-eabi-insight, I get the following: ide_initialize_paths failed: Can't find the GUI Tcl library in the following directories: /usr/local/usr/share/insight/gui /usr/local/share/insight/gui /usr/share/insight/gui /usr/libgui/library /usr/src/libgui/library /usr/local/usr/share/insight/ide /usr/local/share/insight/ide /usr/share/insight/ide /usr/local/libide/library Surely there is a funny TCL environment variable, or a funny tcl command to make sure that the programs find those things... Could you tell me which one is it that I'm missing? Cheers