pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkgsrc bootstrap fails on Tribblix
Bootstrapping without --abi 64 like this:
./bootstrap --unprivileged --make-jobs 8
also suceed.
But when actually building packages, it failed with this linker error:
ld: fatal: relocation error: R_AMD64_32: file /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o): section: [6].text.startup: offset: 0xe2ee: relocation requires reference symbol
Text relocation remains referenced
against symbol offset in file
.rodata.str1.1 (merged string section) 0x16 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
.rodata.str1.1 (merged string section) 0x5f /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
.rodata.str1.1 (merged string section) 0xd9 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
.rodata.str1.1 (merged string section) 0x12 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
.rodata.str1.8 (section) 0xf2 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
.rodata.str1.8 (section) 0xfc /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
.rodata.str1.8 (section) 0x112 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
.rodata.str1.8 (section) 0x11c /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
open 0x27 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
open 0x1d /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
write 0x7a /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
close 0x8f /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
close 0x3f /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
_exit 0xd1 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
syslog 0xe5 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
read 0x35 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
collect2: error: ld returned 1 exit status
*** [libpkgconf.la] Error code 1
bmake: stopped in /jack/pkgsrc/devel/pkgconf/work/pkgconf-1.7.3
1 error
bmake: stopped in /jack/pkgsrc/devel/pkgconf/work/pkgconf-1.7.3
*** Error code 2
Stop.
bmake[3]: stopped in /jack/pkgsrc/devel/pkgconf
*** Error code 1
Stop.
bmake[2]: stopped in /jack/pkgsrc/devel/pkgconf
*** Error code 1
Stop.
bmake[1]: stopped in /jack/pkgsrc/devel/ncurses
*** Error code 1
Stop.
bmake: stopped in /jack/pkgsrc/editors/joe
---- On Sat, 23 Jan 2021 20:39:56 +0700 Hung Nguyen Gia <gh_origin%zohomail.com@localhost> wrote ----
> After forcing the PATH environment variable value with /usr/bin before /usr/gnu/bin with this:
>
> export PATH=/jack/pkg/sbin:/jack/pkg/bin:/usr/bin:/usr/gnu/bin:/usr/sbin:/sbin
>
> The output of which ld is /usr/bin/ld and ld --version also showed the correct ld.
>
> Bootstrapping with this succeed:
>
> ./bootstrap --abi 64 --unprivileged --make-jobs 8
>
> But when actually building packages, it failed with this linker error:
>
> ld: fatal: relocation error: R_AMD64_32: file /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o): section: [6].text.startup: offset: 0xe2ee: relocation requires reference symbol
> Text relocation remains referenced
> against symbol offset in file
> .rodata.str1.1 (merged string section) 0x16 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> .rodata.str1.1 (merged string section) 0x5f /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> .rodata.str1.1 (merged string section) 0xd9 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> .rodata.str1.1 (merged string section) 0x12 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> .rodata.str1.8 (section) 0xf2 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> .rodata.str1.8 (section) 0xfc /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> .rodata.str1.8 (section) 0x112 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> .rodata.str1.8 (section) 0x11c /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> open 0x27 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> open 0x1d /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> write 0x7a /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> close 0x8f /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> close 0x3f /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> _exit 0xd1 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> syslog 0xe5 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> read 0x35 /usr/versions/gcc-7/lib/gcc/i386-pc-solaris2.11/7.3.0/../../../amd64/libssp.a(ssp.o)
> collect2: error: ld returned 1 exit status
> *** [libpkgconf.la] Error code 1
>
> bmake: stopped in /jack/pkgsrc/devel/pkgconf/work/pkgconf-1.7.3
> 1 error
>
> bmake: stopped in /jack/pkgsrc/devel/pkgconf/work/pkgconf-1.7.3
> *** Error code 2
>
> Stop.
> bmake[3]: stopped in /jack/pkgsrc/devel/pkgconf
> *** Error code 1
>
> Stop.
> bmake[2]: stopped in /jack/pkgsrc/devel/pkgconf
> *** Error code 1
>
> Stop.
> bmake[1]: stopped in /jack/pkgsrc/devel/ncurses
> *** Error code 1
>
> Stop.
> bmake: stopped in /jack/pkgsrc/editors/joe
>
> I will try bootstrap without --abi 64 and with --abi 32 and report back.
>
>
>
>
> ---- On Sat, 23 Jan 2021 20:22:33 +0700 Hung Nguyen Gia <gh_origin%zohomail.com@localhost> wrote ----
>
> > I discovered something: the output of ld --version is:
> >
> > GNU ld (GNU Binutils) 2.25.1
> > Copyright (C) 2014 Free Software Foundation, Inc.
> > This program is free software; you may redistribute it under the terms of
> > the GNU General Public License version 3 or (at your option) a later version.
> > This program has absolutely no warranty.
> >
> > which ld output is /usr/gnu/bin/ld
> >
> > The default PATH environment variable on Tribblix:
> >
> > /usr/gnu/bin:/usr/bin:/usr/sbin:/sbin
> >
> > /usr/bin/ld --version
> >
> > ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1763 (illumos)
> >
> > It seemed the wrong linker was picked.
> >
> > I will try adjusting the PATH.
> >
> >
> >
> >
> > ---- On Sat, 23 Jan 2021 20:18:07 +0700 Hung Nguyen Gia <gh_origin%zohomail.com@localhost> wrote ----
> >
> > > Forcing --abi 32 resulted in the target being i486-sun-solaris2.11.
> > >
> > > What? I think it should be i386-sun-solaris2.11?
> > >
> > > On Illumos, there are only two target: i386-sun-solaris2.11 and x86_64-sun-solaris2.11
> > >
> > > What is i486-sun-solaris2.11?
> > >
> > > I tried to build editors/joe and it failed with this linker error:
> > >
> > > configure: creating ./config.status
> > > config.status: creating Makefile
> > > config.status: creating Kyuafile
> > > config.status: creating libpkgconf.pc
> > > config.status: creating tests/Kyuafile
> > > config.status: creating tests/test_env.sh
> > > config.status: creating libpkgconf/config.h
> > > config.status: executing depfiles commands
> > > config.status: executing libtool commands
> > > rm: libtoolT: No such file or directory
> > > => Modifying libtool scripts to use pkgsrc libtool
> > > => Modifying libtool scripts to use pkgsrc depcomp
> > > ===> Building for pkgconf-1.7.3
> > > --- cli/.dirstamp ---
> > > --- cli/.deps/.dirstamp ---
> > > --- libpkgconf/.dirstamp ---
> > > --- libpkgconf/.deps/.dirstamp ---
> > > --- cli/pkgconf-main.o ---
> > > --- cli/pkgconf-getopt_long.o ---
> > > --- cli/pkgconf-renderer-msvc.o ---
> > > --- libpkgconf/audit.lo ---
> > > --- cli/pkgconf-renderer-msvc.o ---
> > > CC cli/pkgconf-renderer-msvc.o
> > > --- cli/pkgconf-main.o ---
> > > CC cli/pkgconf-main.o
> > > --- cli/pkgconf-getopt_long.o ---
> > > CC cli/pkgconf-getopt_long.o
> > > --- libpkgconf/audit.lo ---
> > > CC libpkgconf/audit.lo
> > > --- libpkgconf/cache.lo ---
> > > CC libpkgconf/cache.lo
> > > --- libpkgconf/client.lo ---
> > > CC libpkgconf/client.lo
> > > --- libpkgconf/pkg.lo ---
> > > CC libpkgconf/pkg.lo
> > > --- libpkgconf/bsdstubs.lo ---
> > > CC libpkgconf/bsdstubs.lo
> > > --- libpkgconf/fragment.lo ---
> > > CC libpkgconf/fragment.lo
> > > --- libpkgconf/argvsplit.lo ---
> > > CC libpkgconf/argvsplit.lo
> > > --- libpkgconf/fileio.lo ---
> > > --- libpkgconf/tuple.lo ---
> > > --- libpkgconf/fileio.lo ---
> > > CC libpkgconf/fileio.lo
> > > --- libpkgconf/tuple.lo ---
> > > CC libpkgconf/tuple.lo
> > > --- libpkgconf/dependency.lo ---
> > > CC libpkgconf/dependency.lo
> > > --- libpkgconf/queue.lo ---
> > > CC libpkgconf/queue.lo
> > > --- libpkgconf/path.lo ---
> > > CC libpkgconf/path.lo
> > > --- libpkgconf/personality.lo ---
> > > CC libpkgconf/personality.lo
> > > --- libpkgconf/parser.lo ---
> > > CC libpkgconf/parser.lo
> > > --- libpkgconf.la ---
> > > CCLD libpkgconf.la
> > > ld: fatal: file .libs/libpkgconf.exp: unknown file type
> > > ld: fatal: file processing errors. No output written to .libs/libpkgconf.so.3.0.0
> > > collect2: error: ld returned 1 exit status
> > > *** [libpkgconf.la] Error code 1
> > >
> > > bmake: stopped in /jack/pkgsrc/devel/pkgconf/work/pkgconf-1.7.3
> > > 1 error
> > >
> > > bmake: stopped in /jack/pkgsrc/devel/pkgconf/work/pkgconf-1.7.3
> > > *** Error code 2
> > >
> > > Stop.
> > > bmake[3]: stopped in /jack/pkgsrc/devel/pkgconf
> > > *** Error code 1
> > >
> > > Stop.
> > > bmake[2]: stopped in /jack/pkgsrc/devel/pkgconf
> > > *** Error code 1
> > >
> > > Stop.
> > > bmake[1]: stopped in /jack/pkgsrc/devel/ncurses
> > > *** Error code 1
> > >
> > > Stop.
> > > bmake: stopped in /jack/pkgsrc/editors/joe
> > >
> > >
> > >
> > >
> > > ---- On Sat, 23 Jan 2021 20:07:15 +0700 Hung Nguyen Gia <gh_origin%zohomail.com@localhost> wrote ----
> > >
> > > > Explicitly state --abi 32 could let the bootstrap done:
> > > >
> > > > ./bootstrap --abi 32 --unprivileged --make-jobs 8
> > > >
> > > > I will try to build a package to see if it actually works.
> > > >
> > > >
> > > >
> > > >
> > > > ---- On Sat, 23 Jan 2021 19:57:56 +0700 Hung Nguyen Gia <gh_origin%zohomail.com@localhost> wrote ----
> > > >
> > > > > This time I bootstrap without --abi 64, which should be implied 32 bit, since 32 bit is the default target on Illumos:
> > > > >
> > > > > ./bootstrap --unprivileged --make-jobs 8
> > > > >
> > > > > The bootstrap failed with exactly the same error.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ---- On Sat, 23 Jan 2021 19:46:37 +0700 Hung Nguyen Gia <gh_origin%zohomail.com@localhost> wrote ----
> > > > >
> > > > > > The bootstrap command I used:
> > > > > >
> > > > > > ./bootstrap --abi 64 --unprivileged --make-jobs 8
> > > > > >
> > > > > > It seemed bootstrap doesn't obey --abi 64, as I still see something like this in the beginning of the bootstrap:
> > > > > >
> > > > > > checking build system type... i386-pc-solaris2.11
> > > > > > checking host system type... i386-sun-solaris2.11
> > > > > >
> > > > > > But in the later steps of bootstrap, I see something like this:
> > > > > >
> > > > > > checking build system type... x86_64-pc-solaris2.11
> > > > > > checking host system type... x86_64-sun-solaris2.11
> > > > > >
> > > > > > So some parts of bootstrap obeys --abi 64, some parts don't.
> > > > > >
> > > > > > This caused inconsistent and finally failed with:
> > > > > >
> > > > > > ld: Relocatable linking with relocations from format elf64-x86-64-sol2 (common.o.o) to format elf32-i386-sol2 (common.o) is not supported
> > > > > > *** Error code 1
> > > > > >
> > > > >
> > > >
> > >
> >
>
Home |
Main Index |
Thread Index |
Old Index