CLFS 7.5: Inetutils-1.4.2 Build error?

Puvvada, Vijay B. VIJAY.B.PUVVADA at saic.com
Tue Nov 22 15:30:45 PST 2005


When I compile a dummy program as such:

#include "foo.h"
#include <stdio.h>
void main()
{
        printf("Hello World!\n");
}


lfs:~$ powerpc-unknown-linux-gnu-gcc -v foo.c 
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.0.2/configure --prefix=/cross-tools
--target=powerpc-unknown-linux-gnu --host=i386-redhat-linux-gnu
--disable-multilib --with-local-prefix=/tools --disable-nls --enable-shared
--enable-languages=c,c++ --enable-__cxa_atexit --enable-c99
--enable-long-long --enable-threads=posix
Thread model: posix
gcc version 4.0.2
/data/lfs_cdk/cross-tools/bin/../libexec/gcc/powerpc-unknown-linux-gnu/4.0.2
/cc1 -quiet -v -iprefix
/data/lfs_cdk/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/
-D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux
-Asystem=linux -Asystem=unix -Asystem=posix foo.c -quiet -dumpbase foo.c
-auxbase foo -version -o /tmp/ccPe3PXv.s
ignoring nonexistent directory
"/data/lfs_cdk/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/..
/../../../powerpc-unknown-linux-gnu/include"
ignoring duplicate directory
"/cross-tools/lib/gcc/powerpc-unknown-linux-gnu/4.0.2/include"
ignoring nonexistent directory
"/cross-tools/lib/gcc/powerpc-unknown-linux-gnu/4.0.2/../../../../powerpc-un
known-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/data/lfs_cdk/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/inc
lude
/tools/include
End of search list.
GNU C version 4.0.2 (powerpc-unknown-linux-gnu)
        compiled by GNU C version 4.0.1 20050727 (Red Hat 4.0.1-5).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129472
foo.c: In function 'main':
foo.c:4: warning: return type of 'main' is not 'int'
/data/lfs_cdk/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/../
../../../powerpc-unknown-linux-gnu/bin/as -mppc -many -V -Qy -o
/tmp/ccEsIxqW.o /tmp/ccPe3PXv.s
GNU assembler version 2.16.1 (powerpc-unknown-linux-gnu) using BFD version
2.16.1
/data/lfs_cdk/cross-tools/bin/../libexec/gcc/powerpc-unknown-linux-gnu/4.0.2
/collect2 --eh-frame-hdr -V -Qy -m elf32ppclinux -dynamic-linker
/tools/lib/ld.so.1 /tools/lib/crt1.o /tools/lib/crti.o
/data/lfs_cdk/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/crt
begin.o
-L/data/lfs_cdk/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2
-L/data/lfs_cdk/cross-tools/bin/../lib/gcc
-L/cross-tools/lib/gcc/powerpc-unknown-linux-gnu/4.0.2
-L/data/lfs_cdk/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/.
./../../../powerpc-unknown-linux-gnu/lib
-L/cross-tools/lib/gcc/powerpc-unknown-linux-gnu/4.0.2/../../../../powerpc-u
nknown-linux-gnu/lib -L/tools/lib /tmp/ccEsIxqW.o -lgcc --as-needed -lgcc_s
--no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
/data/lfs_cdk/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/crt
savres.o
/data/lfs_cdk/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.0.2/crt
end.o /tools/lib/crtn.o
GNU ld version 2.16.1
  Supported emulations:
   elf32ppclinux
   elf32ppc
   elf32ppcsim
   elf64ppc


Does this seem to be what you would expect?

Vij

On Tue, 2005-11-22 at 18:06 -0500, Puvvada, Vijay B. wrote:


Unfortunately...after starting over from the beginning I came to the 
same problem again.  It seems to bark when it gets to talk.c 
As far as I can tell, I didn't miss any steps (it's reproduceable).

The configure command I used is:

./configure --prefix=/usr --libexecdir=/usr/sbin \ 
    --host=${LFS_TARGET} --sysconfdir=/etc --disable-logger \ 
    --disable-syslogd --disable-whois --disable-servers

Below is an excerpt of the error.

make[2]: Entering directory `/home/lfs/tmp/inetutils-1.4.2/talk' 
if powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I/usr/include/ncurses -I../include    -g -O2 -MT ctl.o -MD -MP -MF 
".deps/ctl.Tpo" \ 
  -c -o ctl.o `test -f 'ctl.c' || echo './'`ctl.c; \ 
then mv ".deps/ctl.Tpo" ".deps/ctl.Po"; \ 
else rm -f ".deps/ctl.Tpo"; exit 1; \ 
fi 
In file included from talk.h:32, 
                 from ctl.c:51: 
/usr/include/ncurses/curses.h:58:33: error: ncurses/ncurses_dll.h: No 
such file or directory 
/usr/include/ncurses/curses.h:109:28: error: ncurses/unctrl.h: No such 
file or directory 
In file included from talk.h:32, 
                 from ctl.c:51: 
/usr/include/ncurses/curses.h:181: error: syntax error before 'COLORS' 
/usr/include/ncurses/curses.h:181: warning: data definition has no type 
or storage class 
... 
... 
/usr/include/ncurses/curses.h:1211: error: syntax error before 'trace' 
/usr/include/ncurses/curses.h:1211: warning: data definition has no type 
or storage class 
ctl.c: In function 'open_sockt': 
ctl.c:89: warning: pointer targets in passing argument 3 of 
'getsockname' differ in signedness 
ctl.c: In function 'open_ctl': 
ctl.c:109: warning: pointer targets in passing argument 3 of 
'getsockname' differ in signedness 
make[2]: *** [ctl.o] Error 1 
make[2]: Leaving directory `/home/lfs/tmp/inetutils-1.4.2/talk' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/lfs/tmp/inetutils-1.4.2' 
make: *** [all] Error 2




On Mon, 2005-11-21 at 23:08 -0500, Ryan Oliver wrote: 
> On Mon, 2005-11-21 at 21:16 -0500, Puvvada, Vijay B. wrote: 
> > I went back to recompile/install my cross tools and tools again.  
> > After applying the patches, etc to gcc...I noticed the following. 
> > The patches went in smoothly and I applied the sed commands and got 
> the 
> > following: 
> >  
> > lfs:~/junk/gcc-4.0.2$ diff gcc/Makefile.in gcc/Makefile.in.orig  
> > 378c378 
> > < CROSS_SYSTEM_HEADER_DIR = /tools/include 
> > --- 
> > > CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@ 
> > lfs:~/junk/gcc-4.0.2$ diff configure configure.orig  
> > 3474c3474 
> > <   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ 
> -isystem 
> > $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' 
> > --- 
> > >   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ 
> > -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem 
> > $(build_tooldir)/sys-include' 
> >  
> > My question is:  There still seems to be one -B for 
> $(build_toolsdir)/bin/. 
> > Was this intended?   
> > 
> 
> Yup, we only wanted to remove -B$(build_tooldir)/lib 
> 
> -B$(build_tooldir)/bin is fine, it will point to the installed 
> cross-binutils binaries 
> 
> -B is used to specify binary search paths for toolchain components, 
> but 
> it also affects the library search paths used _without_ being altered 
> by 
> the multilib spec (ie will not have ../lib64 or ../lib appended), 
> hence 
> why -B$(build_tooldir)/lib is removed 
> 
> Best Regards 
> Ryan 
> 
> 
> 
> 
-- 
http://linuxfromscratch.org/mailman/listinfo/cross-lfs
<http://linuxfromscratch.org/mailman/listinfo/cross-lfs>  
FAQ: http://www.linuxfromscratch.org/faq/
<http://www.linuxfromscratch.org/faq/>  
Unsubscribe: See the above information page






More information about the cross-lfs mailing list