ptkrisada

netbsd-10 build fails 2024.10.13 *** FIXED ***

Oct 13th, 2024 (edited)
183
0
Never
11
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.91 KB | None | 0 0
  1. % uname -a
  2. NetBSD sirius 10.0_STABLE NetBSD 10.0_STABLE (GENERIC) #60: Sat Oct 12 17:22:36 +07 2024 root@sirius:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
  3. % cd /usr/src
  4. % sudo ./build.sh -O ../obj -T ../tools -U -u distribution
  5. [snip...]
  6. dependall ===> tools/host-mkdep
  7. dependall ===> tools/compat
  8. dependall ===> tools/binstall
  9. # link binstall/xinstall
  10. cc -O -I/usr/src/../obj/tools/compat -I/usr/src/../obj/tools/compat/include -I/usr/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/usr/src/tools/binstall/../compat/sys -DTARGET_STRIP=\"/usr/src/../tools/bin/x86_64--netbsd-strip\" -I/usr/src/usr.sbin/mtree -o xinstall xinstall.lo getid.lo -L/usr/src/../obj/tools/compat -lnbcompat -lrt -lz
  11. ld: /usr/src/../obj/tools/compat/libnbcompat.a(sha2.lo): in function `SHA256_Transform':
  12. sha2.c:(.text+0x14b): undefined reference to `be32dec'
  13. ld: /usr/src/../obj/tools/compat/libnbcompat.a(sha2.lo): in function `SHA224_256_Final':
  14. sha2.c:(.text+0x613): undefined reference to `be32enc'
  15. ld: /usr/src/../obj/tools/compat/libnbcompat.a(sha2.lo): in function `SHA512_Transform':
  16. sha2.c:(.text+0xb24): undefined reference to `be64dec'
  17. ld: /usr/src/../obj/tools/compat/libnbcompat.a(sha2.lo): in function `SHA512_Final':
  18. sha2.c:(.text+0x1369): undefined reference to `be64enc'
  19. ld: /usr/src/../obj/tools/compat/libnbcompat.a(sha2.lo): in function `SHA384_Final':
  20. sha2.c:(.text+0x14f2): undefined reference to `be64enc'
  21.  
  22. *** Failed target: xinstall
  23. *** Failed command: cc -O -I/usr/src/../obj/tools/compat -I/usr/src/../obj/tools/compat/include -I/usr/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/usr/src/tools/binstall/../compat/sys -DTARGET_STRIP=\"/usr/src/../tools/bin/x86_64--netbsd-strip\" -I/usr/src/usr.sbin/mtree -o xinstall xinstall.lo getid.lo -L/usr/src/../obj/tools/compat -lnbcompat -lrt -lz
  24. *** Error code 1
  25.  
  26. Stop.
  27. nbmake[6]: stopped in /usr/src/tools/binstall
  28.  
  29. *** Failed target: dependall
  30. *** Failed command: cd "/usr/src/tools/binstall"; /usr/src/../tools/bin/nbmake realall
  31. *** Error code 1
  32.  
  33. Stop.
  34. nbmake[5]: stopped in /usr/src/tools/binstall
  35.  
  36. *** Failed target: dependall-binstall
  37. *** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="tools/"; real="/usr/src/tools" ;; *) this="tools/${dir}/"; real="/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget binstall dependall
  38. *** Error code 1
  39.  
  40. Stop.
  41. nbmake[4]: stopped in /usr/src/tools
  42.  
  43. *** Failed target: build_install
  44. *** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="tools/"; real="/usr/src/tools" ;; *) this="tools/${dir}/"; real="/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall-host-mkdep dependall-compat dependall-binstall dependall-date
  45. *** Error code 1
  46.  
  47. Stop.
  48. nbmake[3]: stopped in /usr/src/tools
  49.  
  50. *** Failed target: do-tools
  51. *** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget tools build_install
  52. *** Error code 1
  53.  
  54. Stop.
  55. nbmake[2]: stopped in /usr/src
  56.  
  57. *** Failed target: build
  58. *** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-tools
  59. *** Error code 1
  60.  
  61. Stop.
  62. nbmake[1]: stopped in /usr/src
  63.  
  64. *** Failed target: distribution
  65. *** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . build NOPOSTINSTALL=1
  66. *** Error code 1
  67.  
  68. Stop.
  69. nbmake: stopped in /usr/src
  70.  
  71. ERROR: Failed to make distribution
  72.  
  73. *** BUILD ABORTED ***
  74. %
  75.  
  76. *******
  77. * fix *
  78. *******
  79. % cd /usr/src/tools/binstall
  80. % sudo /usr/tools/bin/nbmake-amd64 cleandir
  81. % cd /usr/src/tools/compat
  82. % sudo /usr/tools/bin/nbmake-amd64 cleandir
  83. % cd /usr/src
  84. % sudo ./build.sh -O ../obj -T ../tools -U -u distribution
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment