Port-sparc64 archive

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

Re: rust on sparc64



On Thu, Jul 2, 2020 at 6:29 AM Martin Husemann <martin%duskware.de@localhost> wrote:
>
> On Wed, Jul 01, 2020 at 11:26:38PM +0200, Riccardo Mottola wrote:
> > I  should be using 2020Q1... I know Q2 is just out, but well, I was still
> > upgrading. Don't have me rebuild everything, I just want a consistent system
> > and it takes time.
>
> There was a bogus checksum in pkgsrc some time ago, maybe that happened to
> go into 2020Q1 (I ususally rebuild from my last local build binary instead
> of the bootstrap kits, but this time used the bootstrap kit as LLVM was
> updated at ~ the same time and that made things tricky).
>
> You could copy the bootsrap kits urls and checksum from newer pkgsrc into
> your version (or just manually replace the checksums with those from the
> downloaded files - probably will work but sounds dangerous in general).
>
> Martin

Maybe someone can help me building rust on sparc64 with pkgsrc-2020Q2:

I first tried to build it just by issuing "bmake install" but it
complained a missing libssl.so.27
In the base system there is only a libssl.so.14.

So I went ahead and compiled openssl (had to disable des on sparc64
which throwed errors for "m4 -B 8192",  but m4 has no option "-B").
openssl install a libssl.so.1.1

When i compile rust now, it complains about a missing libssl.so.12
which i don't understand why the missing library version changed from
so.27 to so.12.

My current libssl files in the system:

bash-5.0# locate libssl.so
/usr/lib/libssl.so
/usr/lib/libssl.so.14
/usr/lib/libssl.so.14.0
/usr/lib/sparc/libssl.so
/usr/lib/sparc/libssl.so.14
/usr/lib/sparc/libssl.so.14.0
/usr/pkg/lib/libssl.so
/usr/pkg/lib/libssl.so.1.1


The rust error during compiling:

===> Building for rust-1.43.1nb1
cd /usr/pkgsrc/lang/rust/work/rustc-1.43.1-src  && ulimit -t `ulimit
-H -t`; ulimit -d `ulimit -H -d`; ulimit -v `ulimit -H -v`;
/usr/bin/env DESTDIR=/usr/pkgsrc/lang/rust/work/.destdir
CARGO_BUILD_JOBS=1 USETOOLS=no LIBRARY_PATH=/usr/pkg/lib
PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS=
PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS=
PYTHON=/usr/pkg/bin/python3.7 CC=cc CFLAGS=-O2\ -D_FORTIFY_SOURCE=2\
-I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.7\
-I/usr/include/krb5 CPPFLAGS=-I/usr/pkg/include\ -I/usr/include\
-I/usr/pkg/include/python3.7\ -I/usr/include/krb5 CXX=c++
CXXFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\
-I/usr/pkg/include/python3.7\ -I/usr/include/krb5
COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_ALL=C
LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C
LC_TIME=C LDFLAGS=-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\
-Wl,-R/usr/lib LINKER_RPATH_FLAG=-R
PATH=/usr/pkgsrc/lang/rust/work/.cwrapper/bin:/usr/pkgsrc/lang/rust/work/.buildlink/bin:/usr/pkgsrc/lang/rust/work/.gcc/bin:/usr/pkgsrc/lang/rust/work/.tools/bin:/usr/pkg/bin:/home/connor/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/X11R7/bin
PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc
HOME=/usr/pkgsrc/lang/rust/work/.home
CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/lang/rust/work/.cwrapper/config
CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man
PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF
USETOOLS=no LIBTOOL="/usr/pkgsrc/lang/rust/work/.cwrapper/bin/libtool
" BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\
-m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\
-m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\
755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\
644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644
BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\
-d\ -o\ root\ -g\ wheel\ -m\ 755
BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\
755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\
755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\
-m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\
-m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\
wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\
-g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\
root\ -g\ wheel\ -m\ 775 INSTALL_INFO=
MAKEINFO=/usr/pkgsrc/lang/rust/work/.tools/bin/makeinfo FLEX= BISON=
PKG_CONFIG=/usr/pkgsrc/lang/rust/work/.tools/bin/pkg-config
PKG_CONFIG_LIBDIR=/usr/pkgsrc/lang/rust/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/lang/rust/work/.buildlink/share/pkgconfig
PKG_CONFIG_LOG=/usr/pkgsrc/lang/rust/work/.pkg-config.log
PKG_CONFIG_PATH= KRB5_CONFIG=/usr/bin/krb5-config
CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/lang/rust/work/.cwrapper/config
/usr/pkg/bin/python3.7 ./x.py -v build -j 1
running: /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build
--manifest-path
/usr/pkgsrc/lang/rust/work/rustc-1.43.1-src/src/bootstrap/Cargo.toml
--frozen
/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo: Shared object
"libssl.so.12" not found
Traceback (most recent call last):
  File "./x.py", line 11, in <module>
    bootstrap.main()
  File "/usr/pkgsrc/lang/rust/work/rustc-1.43.1-src/src/bootstrap/bootstrap.py",
line 957, in main
    bootstrap(help_triggered)
  File "/usr/pkgsrc/lang/rust/work/rustc-1.43.1-src/src/bootstrap/bootstrap.py",
line 926, in bootstrap
    build.build_bootstrap()
  File "/usr/pkgsrc/lang/rust/work/rustc-1.43.1-src/src/bootstrap/bootstrap.py",
line 718, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
  File "/usr/pkgsrc/lang/rust/work/rustc-1.43.1-src/src/bootstrap/bootstrap.py",
line 141, in run
    raise RuntimeError(err)
RuntimeError: failed to run:
/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build
--manifest-path
/usr/pkgsrc/lang/rust/work/rustc-1.43.1-src/src/bootstrap/Cargo.toml
--frozen
*** Error code 1

Regards,
Connor


Home | Main Index | Thread Index | Old Index