Current-Users archive

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

Re: More build.sh ctf fallout on a linux host



Hello,

I am also seeing this same error when cross-compiling the tools on a Linux Debian Jessie amd64 (oldstable) build host for a netbsd-current amd64/x86_64 target. I started with a completely empty object tree and a cvs checkout of current as of Mon Jun  4 18:00:00 UTC 2018. The last commit that was included in my source is this one on Mon Jun  4 16:46:46 UTC 2018: http://mail-index.netbsd.org/source-changes/2018/06/04/msg095742.html. That was the commit that noted the import of a new version of dhcpcd in src/doc. I will test the same source tree on a NetBSD-7.1 amd64 build host and see if it can build the tools on that host.

Here is a snippet form my log of the build failure:

#   compile  libctf/ctf_create.lo
...
In file included from /home/chuckz/netbsd-current/src/tools/libctf/../compat/compat_defs.h:75:0,                  from /home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/include/compat/nbtool_config.h:882,                  from /home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_create.c:23: /home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/uts/common/rpc/types.h:57:9: error: unknown type name 'u_longlong_t'
 typedef u_longlong_t ulonglong_t;
         ^

*** Failed target:  ctf_create.lo
*** Failed command: cc -O -DCTF_OLD_VERSIONS -I/home/chuckz/netbsd-current/src/tools/libctf/../compat -I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/sys -I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/include -I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/head -I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf -I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/lib/libctf/common -I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/uts/common -I/home/chuckz/netbsd-current/src/tools/libctf/../../external/bsd/elftoolchain/dist/libelf -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/include/compat -I/home/chuckz/netbsd-current/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/include -I/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/include/nbinclude -c -o ctf_create.lo.o /home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_create.c
*** Error code 1

Stop.
nbmake[3]: stopped in /home/chuckz/netbsd-current/src/tools/libctf

*** Failed target:  dependall
*** Failed command: cd "/home/chuckz/netbsd-current/src/tools/libctf"; /home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/bin/nbmake realall
*** Error code 1

Stop.
nbmake[2]: stopped in /home/chuckz/netbsd-current/src/tools/libctf

*** Failed target:  dependall-libctf
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/chuckz/netbsd-current/src/tools" ;; *) this="${dir}/"; real="/home/chuckz/netbsd-current/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget libctf dependall
*** Error code 1

Stop.
nbmake[1]: stopped in /home/chuckz/netbsd-current/src/tools

*** Failed target:  build_install
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/chuckz/netbsd-current/src/tools" ;; *) this="${dir}/"; real="/home/chuckz/netbsd-current/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall-libctf
*** Error code 1

Stop.
nbmake: stopped in /home/chuckz/netbsd-current/src/tools

ERROR: Failed to make build_install in "tools"
*** BUILD ABORTED ***

Chuck
On 06/04/2018 03:52 AM, Valery Ushakov wrote:
On Sun, Jun 03, 2018 at 18:16:47 -0700, Chuck Silvers wrote:

/home/uwe/work/netbsd/ro/src/tools/libctf/../../external/cddl/osnet/dist/uts/common/rpc/types.h:57:9: error: unknown type name 'u_longlong_t'
  typedef u_longlong_t ulonglong_t;
          ^
I was afraid that might happen...
which distribution and version of linux was that on?
the one I did my fix for linux on was fedora 26.
Sorry, I should have been specific.  It's on Ubuntu 16.04 LTS.

-uwe



Home | Main Index | Thread Index | Old Index