Project

General

Profile

Actions

Bug #14462

open

get pkgfmt internal error while building(commit c8f4a9f75f12adb1f76391a838d75f2b427becb6)

Added by jeff wong almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

here is the log
pkgfmt: error: This is an internal error in pkg(5) version da4493e2. Please log a
Service Request about this issue including the information above and this
message.
dmake: Warning: Command failed for target `packages.i386/driver-serial-usbsacm.mog'
Current working directory /root/illumos-gate/usr/src/pkg
openindiana --> Job errors
Traceback (most recent call last):
File "/usr/bin/pkgfmt", line 742, in <module>
__ret = main_func()
File "/usr/bin/pkgfmt", line 640, in main_func
rcode, formatted = difference(f)
File "/usr/bin/pkgfmt", line 578, in difference
fmt_file(cStringIO("".join(whole_f1)), f2)
File "/usr/bin/pkgfmt", line 724, in fmt_file
write_line(l, out_file)
File "/usr/bin/pkgfmt", line 509, in write_line
first_attr_count, rem_attr_count, output = astr(out)
File "/usr/bin/pkgfmt", line 487, in astr
for lmt in sorted(nv, key=cmp_attrs):
TypeError: unorderable types: NotImplementedType() < int()

pkgfmt: error: This is an internal error in pkg(5) version da4493e2. Please log a
Service Request about this issue including the information above and this
message.
dmake: Warning: Command failed for target `packages.i386/driver-serial-usbser_edge.mog'
Current working directory /root/illumos-gate/usr/src/pkg

I have retried many times, but it alway happens.
This error is throwed from the function astr in the pkgfmt .

To solve the problem, I event print the parameter of the function while buiding.But I still don't see anything.

Here is
root@openindiana:~/illumos-gate/usr/src/pkg# make
Processing manifest driver-network-usbecm.p5m
astr params: set
astr params: set
astr params: set
astr params: set
astr params: set
astr params: dir
astr params: dir
astr params: dir
astr params: file
astr params: driver
Traceback (most recent call last):
File "/usr/bin/pkgfmt", line 743, in <module>
__ret = main_func()
File "/usr/bin/pkgfmt", line 641, in main_func
rcode, formatted = difference(f)
File "/usr/bin/pkgfmt", line 579, in difference
fmt_file(cStringIO("".join(whole_f1)), f2)
File "/usr/bin/pkgfmt", line 725, in fmt_file
write_line(l, out_file)
File "/usr/bin/pkgfmt", line 510, in write_line
first_attr_count, rem_attr_count, output = astr(out)
File "/usr/bin/pkgfmt", line 488, in astr
for lmt in sorted(nv, key=cmp_attrs):
TypeError: unorderable types: NotImplementedType() < int()


Files

log.txt (1.36 KB) log.txt jeff wong, 2022-01-31 04:32 AM
pkgfmt (30.4 KB) pkgfmt jeff wong, 2022-01-31 04:32 AM
Actions #1

Updated by Rich Lowe almost 2 years ago

This is because you're running an old version of pkg. If you're on OI the update to package/pkg was fairly recent. On Omnios longer ago. I don't know other systems

Actions #2

Updated by jeff wong almost 2 years ago

Rich Lowe wrote in #note-1:

This is because you're running an old version of pkg. If you're on OI the update to package/pkg was fairly recent. On Omnios longer ago. I don't know other systems

Thanks for your answer, Rich Lowe.

Here is my os version, illumos-79a6379db8 is in Wed Oct 20
root@openindiana:~/illumos-gate/usr/src/pkg# uname -a
SunOS openindiana 5.11 illumos-79a6379db8 i86pc i386 i86pc
root@openindiana:~/illumos-gate/usr/src/pkg#

Could you please tell me in detail how I can solve this problem?

Actions

Also available in: Atom PDF