I'm making progress ;-). The only remaining problems I still have are:

builduser@userland:/usr/src/myoi-userland/components/developer/rust$ make REQUIRED_PACKAGES

/usr/bin/python3.9 RESOLVE_DEPS= /usr/src/myoi-userland/components/developer/rust/build/.resolved-i386 /usr/bin/python3.9: can't open file '/usr/share/src/myoi-userland/components/developer/rust/RESOLVE_DEPS=': [Errno 2] No such file or directory make: *** [/usr/share/src/myoi-userland/make-rules/ips.mk:516: REQUIRED_PACKAGES] Error 2


builduser@userland:/usr/src/myoi-userland/components/developer/rust$ make publish /usr/bin/pkgdepend resolve -e /usr/src/myoi-userland/components/developer/rust/build/resolve.deps -m /usr/src/myoi-userland/components/developer/rust/build/manifest-i386-rustc.depend /usr/src/myoi-userland/components/developer/rust/build/manifest-i386-rustc.depend has unresolved dependency '
    depend type=require fmri=__TBD pkg.debug.depend.file=libLLVM-13.so \
pkg.debug.depend.reason=usr/lib/librustc_driver-3267f80155f8cead.so \
        pkg.debug.depend.type=elf \
        pkg.debug.depend.path=lib/64 \
        pkg.debug.depend.path=usr/gcc/7/lib/amd64 \
        pkg.debug.depend.path=usr/lib \
        pkg.debug.depend.path=usr/lib/64'.
make: *** [/usr/share/src/myoi-userland/make-rules/ips.mk:503: /usr/src/myoi-userland/components/developer/rust/build/.resolved-i386] Error 1
builduser@userland:/usr/src/myoi-userland/components/developer/rust$

rust is now build against openssl 1.1. What I don't understand is the dependency error above because if I check the runpath of usr/lib/librustc_driver-3267f80155f8cead.so:

builduser@userland:/usr/src/myoi-userland/components/developer/rust$ objdump -p build/prototype/i386/usr/lib/librustc_driver-3267f80155f8cead.so

build/prototype/i386/usr/lib/librustc_driver-3267f80155f8cead.so: file format elf64-x86-64-sol2

Program Header:
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**16
         filesz 0x00000000063da434 memsz 0x00000000063da434 flags r-x
    LOAD off    0x00000000063da438 vaddr 0x00000000063ea438 paddr 0x0000000000000000 align 2**16
         filesz 0x00000000001b72e8 memsz 0x00000000001b7920 flags rw-
 DYNAMIC off    0x0000000000000158 vaddr 0x0000000000000158 paddr 0x0000000000000000 align 2**0
         filesz 0x0000000000000380 memsz 0x0000000000000000 flags rw-
     TLS off    0x0000000006591720 vaddr 0x00000000065a1720 paddr 0x0000000000000000 align 2**3
         filesz 0x0000000000000000 memsz 0x0000000000000008 flags rw-
0x6464e550 off    0x00000000000004d8 vaddr 0x00000000000004d8 paddr 0x0000000000000000 align 2**3
         filesz 0x0000000000118f44 memsz 0x0000000000118f44 flags r--

Dynamic Section:
  NEEDED               libstd-fa3bb391599a6115.so
  NEEDED               libLLVM-13.so
  NEEDED               libstdc++.so.6
  NEEDED               librt.so.1
  NEEDED               libpthread.so.1
  NEEDED               libumem.so.1
  NEEDED               libgcc_s.so.1
  NEEDED               libm.so.2
  NEEDED               libc.so.1
  INIT                 0x0000000005f531c0
  FINI                 0x0000000005f531d0
RUNPATH /usr/clang/13.0/lib:/usr/gcc/7/lib/amd64
  RPATH /usr/clang/13.0/lib:/usr/gcc/7/lib/amd64
  HASH                 0x0000000000715ed0

then there shouldn't be a problem. Again any idea appreciated.

Fritz

Am 18.06.2022 um 15:49 schrieb Friedrich Kink via oi-dev:
Dear all,

I try to prepare new rustc package with current version 1.61.0. So far building and installing is already working. But publishing respectively make REQUIRED_PACKAGES immediately bails out with the following error message:

make REQUIRED_PACKAGES
/usr/bin/python3.9 RESOLVE_DEPS= /usr/src/myoi-userland/components/developer/rust/build/.resolved-i386 /usr/bin/python3.9: can't open file '/usr/share/src/myoi-userland/components/developer/rust/RESOLVE_DEPS=': [Errno 2] No such file or directory make: *** [/usr/share/src/myoi-userland/make-rules/ips.mk:516: REQUIRED_PACKAGES] Error 2

truss shows that make REQUIRED_PACKAGE really tries to open the file /usr/share/src/myoi-userland/components/developer/rust/RESOLVE_DEPS= Any idea what goes wrong here? To simplify things I just used sample manifest p5m file to exclude home made errors.

Any hints are welcome.

kind regards,

  Fritz


_______________________________________________
oi-dev mailing list
[email protected]
https://openindiana.org/mailman/listinfo/oi-dev
_______________________________________________
oi-dev mailing list
[email protected]
https://openindiana.org/mailman/listinfo/oi-dev

Reply via email to