Subject: Crosscompile Netbsd 2 in a Linux-Suse host (Xeon SMP 64 bits)
To: None <netbsd-users@netbsd.org>
From: Roberto Pereyra <pereyra.roberto@gmail.com>
List: netbsd-users
Date: 04/27/2005 08:34:06
Hi, I have two questions:


1) I can't crosscompile NetBSD 2 i386 in a Linux Suse host:

2) How I can optimize all for have a NetBSD 2 for my Xeon SMP 64 bits ?

Thanks in advance.

roberto

Linux linux 2.6.5-7.97-smp #1 SMP Fri Jul 2 14:21:59 UTC 2004 x86_64
x86_64 x86_64 GNU/Linux

The error is:


cc  -O   -o ginfo  dir.o display.o dribble.o  echo-area.o filesys.o
footnotes.o  gc.o indices.o info-utils.o  info.o infodoc.o infomap.o=20
m-x.o man.o nodemenu.o nodes.o  search.o session.o signals.o=20
terminal.o tilde.o variables.o  window.o doc.o key.o  ../lib/libtxi.a
terminal.o(.text+0x37): In function `terminal_begin_using_terminal':
: undefined reference to `tputs'
terminal.o(.text+0x88): In function `terminal_begin_using_terminal':
: undefined reference to `tputs'
terminal.o(.text+0xf3): In function `terminal_end_using_terminal':
: undefined reference to `tputs'
terminal.o(.text+0x144): In function `terminal_end_using_terminal':
: undefined reference to `tputs'
terminal.o(.text+0x1c1): In function `terminal_goto_xy':
: undefined reference to `tgoto'
terminal.o(.text+0x1d8): In function `terminal_goto_xy':
: undefined reference to `tputs'
terminal.o(.text+0x287): In function `terminal_clear_to_eol':
: undefined reference to `tputs'
terminal.o(.text+0x2cc): In function `terminal_clear_screen':
: undefined reference to `tputs'
terminal.o(.text+0x311): In function `terminal_up_line':
: undefined reference to `tputs'
terminal.o(.text+0x356): In function `terminal_down_line':
: undefined reference to `tputs'
terminal.o(.text+0x39b): more undefined references to `tputs' follow
terminal.o(.text+0x4a8): In function `terminal_delete_lines':
: undefined reference to `tgoto'
terminal.o(.text+0x4bc): In function `terminal_delete_lines':
: undefined reference to `tputs'
terminal.o(.text+0x4dd): In function `terminal_delete_lines':
: undefined reference to `tputs'
terminal.o(.text+0x546): In function `terminal_insert_lines':
: undefined reference to `tgoto'
terminal.o(.text+0x55a): In function `terminal_insert_lines':
: undefined reference to `tputs'
terminal.o(.text+0x57b): In function `terminal_insert_lines':
: undefined reference to `tputs'
terminal.o(.text+0x710): In function `terminal_get_screen_size':
: undefined reference to `tgetnum'
terminal.o(.text+0x763): In function `terminal_get_screen_size':
: undefined reference to `tgetnum'
terminal.o(.text+0x87e): In function `terminal_initialize_terminal':
: undefined reference to `tgetent'
terminal.o(.text+0x957): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0x9bf): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0x9da): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0x9f5): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0xa10): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0xa2b): more undefined references to `tgetstr' follow
terminal.o(.text+0xc3b): In function `terminal_initialize_terminal':
: undefined reference to `tgetflag'
terminal.o(.text+0xc4e): In function `terminal_initialize_terminal':
: undefined reference to `tgetflag'
terminal.o(.text+0xc75): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0xc90): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0xcc3): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0xcde): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0xcf9): In function `terminal_initialize_terminal':
: undefined reference to `tgetstr'
terminal.o(.text+0xd14): more undefined references to `tgetstr' follow
collect2: ld returned 1 exit status

*** Failed target:  ginfo
*** Failed command: cc -O -o ginfo dir.o display.o dribble.o
echo-area.o filesys.o footnotes.o gc.o indices.o info-utils.o info.o
infodoc.o infomap.o m-x.o man.o nodemenu.o nodes.o search.o session.o
signals.o terminal.o tilde.o variables.o window.o doc.o key.o
../lib/libtxi.a
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src/tools/texinfo/obj/build/info

*** Failed target:  all
*** Failed command:
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
-f /home/admin/netbsd2/src/tools/texinfo/../Makefile.gnuwrap all-am
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src/tools/texinfo/obj/build/info

*** Failed target:  all-recursive
*** Failed command: set fnord $MAKEFLAGS; amf=3D$2; dot_seen=3Dno;
target=3D`echo all-recursive | sed s/-recursive//`; list=3D'intl m4 lib
info makeinfo po util doc'; for subdir in $list; do echo "Making
$target in $subdir"; if test "$subdir" =3D "."; then dot_seen=3Dyes;
local_target=3D"$target-am"; else local_target=3D"$target"; fi; (cd
$subdir && /home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/=
bin/nbmake
-f /home/admin/netbsd2/src/tools/texinfo/../Makefile.gnuwrap
$local_target) || case "$amf" in *=3D*) exit 1;; *k*) fail=3Dyes;; *) exit
1;; esac; done; if test "$dot_seen" =3D "no"; then
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
-f /home/admin/netbsd2/src/tools/texinfo/../Makefile.gnuwrap
"$target-am" || exit 1; fi; test -z "$fail"
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src/tools/texinfo/obj/build

*** Failed target:  all
*** Failed command:
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
-f /home/admin/netbsd2/src/tools/texinfo/../Makefile.gnuwrap
all-recursive
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src/tools/texinfo/obj/build

*** Failed target:  .build_done
*** Failed command: (cd build &&
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
-f /home/admin/netbsd2/src/tools/texinfo/../Makefile.gnuwrap
BISON=3Dtrue DESTDIR=3D
INSTALL=3D/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/b=
in/nbinstall\
-c\ \ -r all)
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src/tools/texinfo

*** Failed target:  dependall
*** Failed command: cd /home/admin/netbsd2/src/tools/texinfo;
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
realall
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src/tools/texinfo

*** Failed target:  dependall-texinfo
*** Failed command: targ=3Ddependall;dir=3Dtexinfo; case "$dir" in /*)
echo "$targ =3D=3D=3D> $dir"; cd "$dir";
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
"_THISDIR_=3D$dir/" $targ; ;; *) echo "$targ =3D=3D=3D> $dir"; cd
"/home/admin/netbsd2/src/tools/$dir";
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
"_THISDIR_=3D$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src/tools

*** Failed target:  do-tools
*** Failed command: (cd /home/admin/netbsd2/src/tools &&
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
dependall)
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src

*** Failed target:  build
*** Failed command: (cd /home/admin/netbsd2/src &&
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
do-tools)
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src

*** Failed target:  release
*** Failed command: (cd /home/admin/netbsd2/src &&
/home/admin/netbsd2/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bin/nbmake
NOPOSTINSTALL=3D1 build)
*** Error code 1

Stop.
nbmake: stopped in /home/admin/netbsd2/src

ERROR: Failed to make release
*** BUILD ABORTED ***