Port-evbmips archive

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

Re: Other interesting mips breakage...



On Sat, 1 Feb 2014, John D. Baker wrote:

On Sat, 1 Feb 2014, Manuel Bouyer wrote:
gcc -O2 core dump, but removing -O2 makes it work. I don't know why

This sounds pretty tedious unless such transformations can be automated.

OK, I found "mk/wrappers/transform-gcc" and haxxored it to move "-O[23s]"
to a "tranform_discard" section.  Then "pkgtools/digest" built, but
the "real-package-install" target failed as follows:

[...]
=> Becoming ``root'' to make su-real-package-install (/usr/bin/su)
===> Install binary package of digest-20121220
pkg_add: Warning: package `digest-20121220' was built for a platform:
pkg_add: NetBSD/mipsel 6.99.30 (pkg) vs. NetBSD/mips64el 6.99.30 (this host)
pkg_add: 1 package addition failed
*** Error code 1

Stop.
make: stopped in /d0/nbsd/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
make[2]: stopped in /d0/nbsd/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
make[1]: stopped in /d0/nbsd/pkgsrc/pkgtools/digest


I'm guessing the host architecture is a fixed string in 'pkg_add' evaluated
when 'pkg_add' was compiled.  'uname -p' reports "mipsel".  Now to find
where to pass additional arguments to 'pkg_add' via mk.conf...


'amd' (am-utils) fails, claiming "Invalid argument" on all automount
points.  The config file and maps are the same ones I use on all my

Could be a compat-netbsd32 issue. ktrace would show what syscall or ioctl
returns the einval.

I'll see about getting a current picture soon.

Seems to be the same as before.  Excerpts from ktruss run:

[...]
   723      1 amd      netbsd32___socket30(0x2, 0x2, 0) = 4, -48
   723      1 amd      netbsd32_bind(0x4, 0x7fff6a50, 0x10) Err#48 EADDRINUSE
   723      1 amd      netbsd32_bind(0x4, 0x7fff6a50, 0x10) Err#48 EADDRINUSE
   723      1 amd      netbsd32_bind(0x4, 0x7fff6a50, 0x10) = 0, 64768
   723      1 amd      netbsd32_open("/etc/netconfig", 0x400000, 0x1b6) = 6
   723      1 amd      netbsd32___fstat50(0x6, 0x7fff6820) = 0, 2020430096
   723      1 amd      netbsd32_read(0x6, 0x7815c000, 0x4000) = 774, 1
       "# $NetBSD: netconfig,v 1.1 2000/06/02 22:54:10 fvdl Exp $\n#\n# The 
networ"
   723      1 amd      netbsd32_read(0x6, 0x7815c000, 0x4000) = 0, 2020430096
       ""
   723      1 amd      netbsd32_close(0x6)         = 0
   723      1 amd      netbsd32_open("/etc/netconfig", 0, 0x1b6) = 6
   723      1 amd      netbsd32___fstat50(0x6, 0x7fff6810) = 0, 2020430096
   723      1 amd      netbsd32_read(0x6, 0x7815c000, 0x4000) = 774, 1
       "# $NetBSD: netconfig,v 1.1 2000/06/02 22:54:10 fvdl Exp $\n#\n# The 
networ"
   723      1 amd      netbsd32_close(0x6)         = 0
   723      1 amd      netbsd32_getsockopt(0x4, 0, 0x13, 0x7fff6970, 
0x7fff697c) = 0, 24
   723      1 amd      netbsd32_setsockopt(0x4, 0, 0x13, 0x7fff6974, 0x4) = 0, 
24
   723      1 amd      netbsd32_bind(0x4, 0x7fff6a40, 0x10) Err#22 EINVAL
   723      1 amd      netbsd32_setsockopt(0x4, 0, 0x13, 0x7fff6970, 0x4) = 0
   723      1 amd      netbsd32_listen(0x4, 0x80)  Err#45 EOPNOTSUPP
   723      1 amd      netbsd32_getsockname(0x4, 0x7fff68a8, 0x7fff68a0) = 0, -1
   723      1 amd      netbsd32_getsockopt(0x4, 0xffff, 0x1008, 0x7fff68a4, 
0x7fff68a0) = 0, -1
   723      1 amd      netbsd32_getsockname(0x4, 0x7fff68b8, 0x7fff68b0) = 0, 2
   723      1 amd      netbsd32_getsockname(0x4, 0x7fff67b8, 0x7fff67b0) = 0, 1
   723      1 amd      netbsd32_getsockopt(0x4, 0xffff, 0x1008, 0x7fff67b4, 
0x7fff67b0) = 0, 1
   723      1 amd      netbsd32_getsockname(0x4, 0x7fff6888, 0x7fff6870) = 0, 
2020437872
[...]
   723      1 amd      fork()                      = 603
   603      1 amd      fork                        = 0
   603      1 amd      emul(netbsd32)
   603      1 amd      getpid()                    = 603, 1
   603      1 amd      netbsd32___stat50("/home", 0x7fff6668) = 0, 8
   603      1 amd      getppid()                   = 723, -48
   603      1 amd      netbsd32___gettimeofday50(0x78729708, 0) = 0
   603      1 amd      netbsd32_write(0x2, 0x7fff5108, 0x26) = 38, 2
       "Feb  3 18:47:12 chalk amd[603]/info:  "
   603      1 amd      netbsd32_write(0x2, 0x7fff5700, 0x27) = 39, 2
       "/home: disabling nfs congestion window\n"
   603      1 amd      netbsd32___mount50(0x10027358, 0x781241f8, 0x100000, 
0x7fff6050, 0) Err#22 EINVAL
[...]
   723      1 amd      fork()                      = 1049
  1049      1 amd      fork                        = 0
  1049      1 amd      emul(netbsd32)
  1049      1 amd      getpid()                    = 1049, 1
  1049      1 amd      netbsd32___stat50("/m", 0x7fff6668) = 0, 8
  1049      1 amd      getppid()                   = 723, -48
  1049      1 amd      netbsd32___gettimeofday50(0x78729708, 0) = 0
  1049      1 amd      netbsd32_write(0x2, 0x7fff5108, 0x27) = 39, 2
       "Feb  3 18:47:12 chalk amd[1049]/info:  "
  1049      1 amd      netbsd32_write(0x2, 0x7fff5700, 0x24) = 36, 2
       "/m: disabling nfs congestion window\n"
  1049      1 amd      netbsd32___mount50(0x10027358, 0x78118274, 0x100000, 
0x7fff6050, 0) Err#22 EINVAL
[...]
   723      1 amd      fork()                      = 1302
  1302      1 amd      fork                        = 0
  1302      1 amd      emul(netbsd32)
  1302      1 amd      getpid()                    = 1302, 1
  1302      1 amd      netbsd32___stat50("/net", 0x7fff6668) = 0, 8
  1302      1 amd      getppid()                   = 723, -48
  1302      1 amd      netbsd32___gettimeofday50(0x78729708, 0) = 0
  1302      1 amd      netbsd32_write(0x2, 0x7fff5108, 0x27) = 39, 2
       "Feb  3 18:47:13 chalk amd[1302]/info:  "
  1302      1 amd      netbsd32_write(0x2, 0x7fff5700, 0x26) = 38, 2
       "/net: disabling nfs congestion window\n"
  1302      1 amd      netbsd32___mount50(0x10027358, 0x78124238, 0x100000, 
0x7fff6050, 0) Err#22 EINVAL
[...]
   603      1 amd      netbsd32___nanosleep50      = 0, -48
   603      1 amd      netbsd32___mount50(0x10027358, 0x781241f8, 0x100000, 
0x7fff6050, 0) Err#22 EINVAL
[...]
  1049      1 amd      netbsd32___nanosleep50      = 0, -48
  1049      1 amd      netbsd32___mount50(0x10027358, 0x78118274, 0x100000, 
0x7fff6050, 0) Err#22 EINVAL
[...]
1302      1 amd      netbsd32___mount50(0x10027358, 0x78124238, 0x100000, 
0x7fff6050, 0) Err#22 EINVAL
[...]

If more context is needed, let me know.

--
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index