Subject: Re: Crosscompiling error in i386 linux host
To: John Clark <jclark@metricsystems.com>
From: Roberto Pereyra <pereyra.roberto@gmail.com>
List: netbsd-users
Date: 05/18/2005 09:12:28
My set environment is:

admin@linux:~> set
ACLOCAL_PATH=3D/opt/gnome/share/aclocal
BASH=3D/bin/bash
BASH_VERSINFO=3D([0]=3D"2" [1]=3D"05b" [2]=3D"0" [3]=3D"1" [4]=3D"release"
[5]=3D"x86_64-suse-linux")
BASH_VERSION=3D'2.05b.0(1)-release'
COLORTERM=3D
COLUMNS=3D124
CPU=3Dx86_64
CVS_RSH=3Dssh
DESKTOP_SESSION=3Ddefault
DIRSTACK=3D()
DISPLAY=3D:0.0
EUID=3D1000
GNOME2_PATH=3D/usr/local:/opt/gnome:/usr
GROUPS=3D()
GTK2_RC_FILES=3D/etc/opt/gnome/gtk-2.0/gtkrc:/opt/gnome/share/themes/Gerami=
k/gtk-2.0/gtkrc:/home/admin/.gtkrc-2.0-thinkeramik:/home/admin/.kde/share/c=
onfig/gtkrc
GTK_PATH=3D/usr/local/lib64/gtk-2.0:/opt/gnome/lib64/gtk-2.0:/usr/lib64/gtk=
-2.0
GTK_RC_FILES=3D/etc/opt/gnome/gtk/gtkrc:/opt/gnome/share/themes/Geramik/gtk=
/gtkrc:/home/admin/.gtkrc-thinkeramik:/home/admin/.kde/share/config/gtkrc
G_BROKEN_FILENAMES=3D1
HISTCONTROL=3Dignoreboth
HISTFILE=3D/home/admin/.bash_history
HISTFILESIZE=3D1000
HISTSIZE=3D1000
HOME=3D/home/admin
HOST=3Dlinux
HOSTFILE=3D
HOSTNAME=3Dlinux
HOSTTYPE=3Dx86_64
IFS=3D$' \t\n'
INFODIR=3D/usr/local/info:/usr/share/info:/usr/info
INFOPATH=3D/usr/local/info:/usr/share/info:/usr/info
INPUTRC=3D/etc/inputrc
KDEHOME=3D/home/admin/.kde
KDE_FULL_SESSION=3Dtrue
KDE_MULTIHEAD=3Dfalse
KONSOLE_DCOP=3D'DCOPRef(konsole-5379,konsole)'
KONSOLE_DCOP_SESSION=3D'DCOPRef(konsole-5379,session-2)'
LANG=3Des_ES.UTF-8
LD_HWCAP_MASK=3D0x20000000
LESS=3D'-M -I'
LESSCLOSE=3D'lessclose.sh %s %s'
LESSKEY=3D/etc/lesskey.bin
LESSOPEN=3D'lessopen.sh %s'
LESS_ADVANCED_PREPROCESSOR=3Dno
LINES=3D37
LOGNAME=3Dadmin
LS_COLORS=3D'no=3D00:fi=3D00:di=3D01;34:ln=3D00;36:pi=3D40;33:so=3D01;35:do=
=3D01;35:bd=3D40;33;01:cd=3D40;33;01:or=3D40;31:ex=3D00;32:*.cmd=3D00;32:*.=
exe=3D01;32:*.com=3D01;32:*.bat=3D01;32:*.btm=3D01;32:*.dll=3D01;32:*.tar=
=3D00;31:*.tbz=3D00;31:*.tgz=3D00;31:*.rpm=3D00;31:*.deb=3D00;31:*.arj=3D00=
;31:*.taz=3D00;31:*.lzh=3D00;31:*.zip=3D00;31:*.zoo=3D00;31:*.z=3D00;31:*.Z=
=3D00;31:*.gz=3D00;31:*.bz2=3D00;31:*.tb2=3D00;31:*.tz2=3D00;31:*.tbz2=3D00=
;31:*.avi=3D01;35:*.bmp=3D01;35:*.fli=3D01;35:*.gif=3D01;35:*.jpg=3D01;35:*=
.jpeg=3D01;35:*.mng=3D01;35:*.mov=3D01;35:*.mpg=3D01;35:*.pcx=3D01;35:*.pbm=
=3D01;35:*.pgm=3D01;35:*.png=3D01;35:*.ppm=3D01;35:*.tga=3D01;35:*.tif=3D01=
;35:*.xbm=3D01;35:*.xpm=3D01;35:*.dl=3D01;35:*.gl=3D01;35:*.aiff=3D00;32:*.=
au=3D00;32:*.mid=3D00;32:*.mp3=3D00;32:*.ogg=3D00;32:*.voc=3D00;32:*.wav=3D=
00;32:'
LS_OPTIONS=3D'-N --color=3Dtty -T 0'
MACHTYPE=3Dx86_64-suse-linux
MAIL=3D/var/spool/mail/admin
MAILCHECK=3D60
MANPATH=3D/usr/local/man:/usr/share/man:/usr/X11R6/man:/opt/gnome/share/man
MINICOM=3D'-c on'
NNTPSERVER=3Dnews
OPENWINHOME=3D/usr/openwin
OPTERR=3D1
OPTIND=3D1
OSTYPE=3Dlinux
PAGER=3Dless
PATH=3D/home/admin/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/gam=
es:/opt/gnome/bin:/opt/kde3/bin
PIPESTATUS=3D([0]=3D"0")
PKG_CONFIG_PATH=3D/opt/gnome/lib64/pkgconfig
PPID=3D5379
PROFILEREAD=3Dtrue
PS1=3D'\u@\h:\w> '
PS2=3D'> '
PS4=3D'+ '
PWD=3D/home/admin
QTDIR=3D/usr/lib/qt3
SESSION_MANAGER=3Dlocal/linux:/tmp/.ICE-unix/5311
SHELL=3D/bin/bash
SHELLOPTS=3Dbraceexpand:emacs:hashall:histexpand:history:interactive-commen=
ts:monitor
SHLVL=3D2
SSH_AGENT_PID=3D5227
SSH_ASKPASS=3D/usr/lib64/ssh/x11-ssh-askpass
SSH_AUTH_SOCK=3D/tmp/ssh-pXRVOE5192/agent.5192
STYLE=3Dthinkeramik
TERM=3Dxterm
TEXINPUTS=3D::/home/admin/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX:/home/admi=
n/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
UID=3D1000
USER=3Dadmin
USE_FAM=3D
WINDOWID=3D48234503
WINDOWMANAGER=3D/usr/X11R6/bin/kde
XCURSOR_SIZE=3D
XCURSOR_THEME=3Dcrystalwhite
XDM_MANAGED=3D/var/run/xdmctl/xdmctl-:0,rsvd,method=3Dclassic
XKEYSYMDB=3D/usr/X11R6/lib/X11/XKeysymDB
XMODIFIERS=3D@im=3Dlocal
XNLSPATH=3D/usr/X11R6/lib/X11/nls
XSESSION_IS_UP=3Dyes

2005/5/18, Roberto Pereyra <pereyra.roberto@gmail.com>:
> Again I have the same error with current, in the same linux host.
>=20
> Roberto
>=20
> #      link  pax/pax
> cc -O -I/home/admin/netbsd-current/src/tools/compat/obj
> -I/home/admin/netbsd-current/src/tools/compat/obj/include
> -I/home/admin/netbsd-current/src/tools/pax/../compat
> -DHAVE_NBTOOL_CONFIG_H=3D1  -D_FILE_OFFSET_BITS=3D64
> -I/home/admin/netbsd-current/src/usr.sbin/mtree
> -I/home/admin/netbsd-current/src/sbin/mknod
> -I/home/admin/netbsd-current/src/bin/ls -DHAVE_MTIO_H -DHOSTPROG   -o
> pax ar_io.lo ar_subs.lo buf_subs.lo cpio.lo file_subs.lo ftree.lo
> gen_subs.lo getoldopt.lo options.lo pat_rep.lo pax.lo sel_subs.lo
> tables.lo tar.lo tty_subs.lo getid.lo spec.lo misc.lo stat_flags.lo
> pack_dev.lo -L/home/admin/netbsd-current/src/tools/compat/obj
> -lnbcompat -lz
> ar_subs.lo(.text+0xd5): In function `fdochroot':
> : undefined reference to `fchroot'
> collect2: ld returned 1 exit status
>=20
> *** Failed target:  pax
> *** Failed command: cc -O
> -I/home/admin/netbsd-current/src/tools/compat/obj
> -I/home/admin/netbsd-current/src/tools/compat/obj/include
> -I/home/admin/netbsd-current/src/tools/pax/../compat
> -DHAVE_NBTOOL_CONFIG_H=3D1 -D_FILE_OFFSET_BITS=3D64
> -I/home/admin/netbsd-current/src/usr.sbin/mtree
> -I/home/admin/netbsd-current/src/sbin/mknod
> -I/home/admin/netbsd-current/src/bin/ls -DHAVE_MTIO_H -DHOSTPROG -o
> pax ar_io.lo ar_subs.lo buf_subs.lo cpio.lo file_subs.lo ftree.lo
> gen_subs.lo getoldopt.lo options.lo pat_rep.lo pax.lo sel_subs.lo
> tables.lo tar.lo tty_subs.lo getid.lo spec.lo misc.lo stat_flags.lo
> pack_dev.lo -L/home/admin/netbsd-current/src/tools/compat/obj
> -lnbcompat -lz
> *** Error code 1
>=20
> Stop.
> nbmake: stopped in /home/admin/netbsd-current/src/tools/pax
>=20
> *** Failed target:  dependall
> *** Failed command: cd /home/admin/netbsd-current/src/tools/pax;
> /home/admin/netbsd-current/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bi=
n/nbmake
> realall
> *** Error code 1
>=20
> Stop.
> nbmake: stopped in /home/admin/netbsd-current/src/tools/pax
>=20
> *** Failed target:  dependall-pax
> *** Failed command: _makedirtarget() { dir=3D"$1"; shift; target=3D"$1";
> shift; case "${dir}" in /*) this=3D"${dir}/"; real=3D"${dir}" ;; .)
> this=3D"tools/"; real=3D"/home/admin/netbsd-current/src/tools" ;; *)
> this=3D"tools/${dir}/";
> real=3D"/home/admin/netbsd-current/src/tools/${dir}" ;; esac;
> show=3D${this:-.}; echo "${target} =3D=3D=3D> ${show%/}${1:+ (with: $@)}"=
; cd
> "${real}" && /home/admin/netbsd-current/src/obj/tooldir.Linux-2.6.5-7.97-=
smp-x86_64/bin/nbmake
> _THISDIR_=3D"${this}" "$@" ${target}; }; _makedirtarget pax dependall
> *** Error code 1
>=20
> Stop.
> nbmake: stopped in /home/admin/netbsd-current/src/tools
>=20
> *** Failed target:  do-tools
> *** Failed command: _makedirtarget() { dir=3D"$1"; shift; target=3D"$1";
> shift; case "${dir}" in /*) this=3D"${dir}/"; real=3D"${dir}" ;; .)
> this=3D""; real=3D"/home/admin/netbsd-current/src" ;; *) this=3D"${dir}/"=
;
> real=3D"/home/admin/netbsd-current/src/${dir}" ;; esac; show=3D${this:-.}=
;
> echo "${target} =3D=3D=3D> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
> /home/admin/netbsd-current/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bi=
n/nbmake
> _THISDIR_=3D"${this}" "$@" ${target}; }; _makedirtarget tools dependall
> *** Error code 1
>=20
> Stop.
> nbmake: stopped in /home/admin/netbsd-current/src
>=20
> *** Failed target:  build
> *** Failed command: _makedirtarget() { dir=3D"$1"; shift; target=3D"$1";
> shift; case "${dir}" in /*) this=3D"${dir}/"; real=3D"${dir}" ;; .)
> this=3D""; real=3D"/home/admin/netbsd-current/src" ;; *) this=3D"${dir}/"=
;
> real=3D"/home/admin/netbsd-current/src/${dir}" ;; esac; show=3D${this:-.}=
;
> echo "${target} =3D=3D=3D> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
> /home/admin/netbsd-current/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bi=
n/nbmake
> _THISDIR_=3D"${this}" "$@" ${target}; }; _makedirtarget . do-tools
> *** Error code 1
>=20
> Stop.
> nbmake: stopped in /home/admin/netbsd-current/src
>=20
> *** Failed target:  release
> *** Failed command: _makedirtarget() { dir=3D"$1"; shift; target=3D"$1";
> shift; case "${dir}" in /*) this=3D"${dir}/"; real=3D"${dir}" ;; .)
> this=3D""; real=3D"/home/admin/netbsd-current/src" ;; *) this=3D"${dir}/"=
;
> real=3D"/home/admin/netbsd-current/src/${dir}" ;; esac; show=3D${this:-.}=
;
> echo "${target} =3D=3D=3D> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
> /home/admin/netbsd-current/src/obj/tooldir.Linux-2.6.5-7.97-smp-x86_64/bi=
n/nbmake
> _THISDIR_=3D"${this}" "$@" ${target}; }; _makedirtarget . build
> NOPOSTINSTALL=3D1
> *** Error code 1
>=20
> Stop.
> nbmake: stopped in /home/admin/netbsd-current/src
>=20
> ERROR: Failed to make release
> *** BUILD ABORTED ***
> admin@linux:~/netbsd-current/src>
>