Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
On 17-05-2017 14:07:59 +0100, John Helliwell wrote: > Hi Fabian, > > This reports > > # ldd /lib/libelf.so.1 > libz.so.1 => /lib/libz.so.1 > libc.so.1 => /lib/libc.so.1 Oops, that guarantees a world class of major headaches. I'll have to check later if we can work around this in any way. Thanks, Fabian -- Fabian Groffen Gentoo on a different level signature.asc Description: Digital signature
RE: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
Hi Fabian, This reports # ldd /lib/libelf.so.1 libz.so.1 => /lib/libz.so.1 libc.so.1 => /lib/libc.so.1 Thanks John Helliwell -Original Message- From: Fabian Groffen [mailto:grob...@gentoo.org] Sent: 17 May 2017 13:36 To: gentoo-alt@lists.gentoo.org Subject: Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 On 17-05-2017 13:26:56 +0100, John Helliwell wrote: > Phew, that went badly. > > I guess the error messages about /proc/mounts missing, and “Your > kernel is broken” mean glibc on Solaris is a no go. Yup. It was adventurous, but sticking to the SunOS/Solaris libc is probably the best choice to get something working. > So I’m back to my original problem of pkgconfig with internal-glib > failing so it appears libelf.so is somehow added into the dependencies, this one needs the deflate symbols if I read your error correctly. The libelf.so I have depends on libc and libm (according to ldd), what does ldd on your libelf.so report? Thanks, Fabian > > Cheers > > John Helliwell > > From: John Helliwell [mailto:john.helliw...@gmail.com] > Sent: 16 May 2017 21:51 > To: gentoo-alt@lists.gentoo.org > Subject: Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 > > Hi, > > You gave me an idea. You posted the Solaris man page for libresolv, > and I wondered if the GNU man page for resolver would be more > appropriate, since we are using a GNU toolchain. Of course on Linux > those resolver functions are provided by glibc. > > I'm going to try bootstrapping Prefix / glibc (RAP) > > Will let you know how that goes > > On Tue, May 16, 2017 at 8:33 PM +0100, "Fabian Groffen" > <[1]grob...@gentoo.org> > wrote: > > > Hi! > > > > > > [2]https://forums.gentoo.org/viewtopic-p-8065614.html?sid=95636da82f > > 97a16259d38eeecbdbab5e > > > > > > Is this the same problem? > > > > > > Does -lresolv -lsocket -lnsl work by chance? > > > ([3]https://docs.oracle.com/cd/E23824_01/html/821-1464/libresolv-3li > > b.html) > > > > > > Thanks, > > > Fabian > > > > > > On 16-05-2017 15:30:16 +0100, John Helliwell wrote: > > > > Hi, > > > > > > > > I'm having trouble with bootstrap-prefix.sh on the Intel version > > > of Solaris > > > > 11.3 - This doesn't come with a C compiler pre-installed, and so I > > > installed > > > > one as such :- > > > > > > > > pkg install pkg://solaris/developer/build/gnu-make \ > > > > pkg://solaris/developer/build/make \ > > > > pkg://solaris/developer/gcc \ > > > > pkg://solaris/system/header \ > > > > pkg://solaris/developer/build/autoconf \ > > > > pkg://solaris/developer/build/automake > > > > > > > > This results in a gcc 4.8.2 at /usr/bin/gcc, and a GNU linker > > > /usr/bin/gld > > > > 2.23.1. The original Solaris linker is intact at /usr/bin/ld > > > > > > > > Oracle Corporation SunOS 5.11 11.3September 2015 > > > > root@sprawl:~# type gcc > > > > gcc is /usr/bin/gcc > > > > root@sprawl:~# gcc -v > > > > Using built-in specs. > > > > COLLECT_GCC=gcc > > > > COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2 > > > /lto-wrapp > > > > er > > > > Target: i386-pc-solaris2.11 > > > > Configured with: > > > > /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8. > > > > 2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ > > > > --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man > > > > --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib > > > > --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info > > > > --libexecdir=/usr/gcc/4.8/lib > > > --enable-languages=c,c++,fortran,objc > > > > --enable-shared --with-gmp-include=/usr/include/gmp > > > > --with-mpfr-include=/usr/include/mpfr --without-gnu-ld > > > --with-ld=/usr/bin/ld > > > > --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 > > > -mtune=opteron > > > > -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron' > > > > Thread model: posix > > > > gcc version 4.8.2 (GCC) > > > > > > > > root@sprawl:~# ld --version > > > > ld: Software Generation Utilities - Solaris Link Editors: > > > 5.11-1.2458
Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
17.05.2017, 15:27, "John Helliwell" <john.helliw...@gmail.com>: > Phew, that went badly. > > I guess the error messages about /proc/mounts missing, and “Your kernel is > broken” mean glibc on Solaris is a no go. glibc offically supports only Linux and Hurd > > So I’m back to my original problem of pkgconfig with internal-glib failing > > Cheers > > John Helliwell > > From: John Helliwell [mailto:john.helliw...@gmail.com] > Sent: 16 May 2017 21:51 > To: gentoo-alt@lists.gentoo.org > Subject: Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 > > Hi, > > You gave me an idea. You posted the Solaris man page for libresolv, and I > wondered if the GNU man page for resolver would be more appropriate, since we > are using a GNU toolchain. Of course on Linux those resolver functions are > provided by glibc. > > I'm going to try bootstrapping Prefix / glibc (RAP) > > Will let you know how that goes > > On Tue, May 16, 2017 at 8:33 PM +0100, "Fabian Groffen" <grob...@gentoo.org> > wrote: >> Hi! >> >> https://forums.gentoo.org/viewtopic-p-8065614.html?sid=95636da82f97a16259d38eeecbdbab5e >> >> Is this the same problem? >> >> Does -lresolv -lsocket -lnsl work by chance? >> >> (https://docs.oracle.com/cd/E23824_01/html/821-1464/libresolv-3lib.html) >> >> Thanks, >> >> Fabian >> >> On 16-05-2017 15:30:16 +0100, John Helliwell wrote: >> >>> Hi, >> >>> >> >>> I'm having trouble with bootstrap-prefix.sh on the Intel version of Solaris >> >>> 11.3 - This doesn't come with a C compiler pre-installed, and so I installed >> >>> one as such :- >> >>> >> >>> pkg install pkg://solaris/developer/build/gnu-make \ >> >>> pkg://solaris/developer/build/make \ >> >>> pkg://solaris/developer/gcc \ >> >>> pkg://solaris/system/header \ >> >>> pkg://solaris/developer/build/autoconf \ >> >>> pkg://solaris/developer/build/automake >> >>> >> >>> This results in a gcc 4.8.2 at /usr/bin/gcc, and a GNU linker /usr/bin/gld >> >>> 2.23.1. The original Solaris linker is intact at /usr/bin/ld >> >>> >> >>> Oracle Corporation SunOS 5.11 11.3 September 2015 >> >>> root@sprawl:~# type gcc >> >>> gcc is /usr/bin/gcc >> >>> root@sprawl:~# gcc -v >> >>> Using built-in specs. >> >>> COLLECT_GCC=gcc >> >>> COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapp >> >>> er >> >>> Target: i386-pc-solaris2.11 >> >>> Configured with: >> >>> /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8. >> >>> 2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ >> >>> --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man >> >>> --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib >> >>> --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info >> >>> --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc >> >>> --enable-shared --with-gmp-include=/usr/include/gmp >> >>> --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld >> >>> --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 -mtune=opteron >> >>> -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron' >> >>> Thread model: posix >> >>> gcc version 4.8.2 (GCC) >> >>> >> >>> root@sprawl:~# ld --version >> >>> ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458 >> >>> root@sprawl:~# gld -v >> >>> GNU ld (GNU Binutils) 2.23.1 >> >>> >> >>> The bootstrap fails during stage 3. It attempts to emerge bash, which >> >>> requires pkgconfig. The configure phase of pkgconfig fails. It looks like >> >>> USE flag "internal-glib" is specified, and so the configure script of glib >> >>> is called. It fails with >> >>> >> >>> checking for res_query... configure: error: not found >> >>> configure: error: >> >>> /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg >> >>> -config-0.29.1/glib/configure failed for glib >> >>> >> >>> Here is the emerge info for pkgconfig >>
Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
On 17-05-2017 13:26:56 +0100, John Helliwell wrote: > Phew, that went badly. > > I guess the error messages about /proc/mounts missing, and “Your kernel is > broken” mean glibc on Solaris is a no go. Yup. It was adventurous, but sticking to the SunOS/Solaris libc is probably the best choice to get something working. > So I’m back to my original problem of pkgconfig with internal-glib failing so it appears libelf.so is somehow added into the dependencies, this one needs the deflate symbols if I read your error correctly. The libelf.so I have depends on libc and libm (according to ldd), what does ldd on your libelf.so report? Thanks, Fabian > > Cheers > > John Helliwell > > From: John Helliwell [mailto:john.helliw...@gmail.com] > Sent: 16 May 2017 21:51 > To: gentoo-alt@lists.gentoo.org > Subject: Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 > > Hi, > > You gave me an idea. You posted the Solaris man page for libresolv, and I > wondered if the GNU man page for resolver would be more appropriate, since we > are using a GNU toolchain. Of course on Linux those resolver functions are > provided by glibc. > > I'm going to try bootstrapping Prefix / glibc (RAP) > > Will let you know how that goes > > On Tue, May 16, 2017 at 8:33 PM +0100, "Fabian Groffen" > <[1]grob...@gentoo.org> > wrote: > > > Hi! > > > > > > [2]https://forums.gentoo.org/viewtopic-p-8065614.html?sid=95636da82f97a16259d38eeecbdbab5e > > > > > > Is this the same problem? > > > > > > Does -lresolv -lsocket -lnsl work by chance? > > > ([3]https://docs.oracle.com/cd/E23824_01/html/821-1464/libresolv-3lib.html) > > > > > > Thanks, > > > Fabian > > > > > > On 16-05-2017 15:30:16 +0100, John Helliwell wrote: > > > > Hi, > > > > > > > > I'm having trouble with bootstrap-prefix.sh on the Intel version of > > > Solaris > > > > 11.3 - This doesn't come with a C compiler pre-installed, and so I > > > installed > > > > one as such :- > > > > > > > > pkg install pkg://solaris/developer/build/gnu-make \ > > > > pkg://solaris/developer/build/make \ > > > > pkg://solaris/developer/gcc \ > > > > pkg://solaris/system/header \ > > > > pkg://solaris/developer/build/autoconf \ > > > > pkg://solaris/developer/build/automake > > > > > > > > This results in a gcc 4.8.2 at /usr/bin/gcc, and a GNU linker /usr/bin/gld > > > > 2.23.1. The original Solaris linker is intact at /usr/bin/ld > > > > > > > > Oracle Corporation SunOS 5.11 11.3 September 2015 > > > > root@sprawl:~# type gcc > > > > gcc is /usr/bin/gcc > > > > root@sprawl:~# gcc -v > > > > Using built-in specs. > > > > COLLECT_GCC=gcc > > > > COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapp > > > > er > > > > Target: i386-pc-solaris2.11 > > > > Configured with: > > > > /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8. > > > > 2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ > > > > --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man > > > > --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib > > > > --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info > > > > --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc > > > > --enable-shared --with-gmp-include=/usr/include/gmp > > > > --with-mpfr-include=/usr/include/mpfr --without-gnu-ld > > > --with-ld=/usr/bin/ld > > > > --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 -mtune=opteron > > > > -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron' > > > > Thread model: posix > > > > gcc version 4.8.2 (GCC) > > > > > > > > root@sprawl:~# ld --version > > > > ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458 > > > > root@sprawl:~# gld -v > > > > GNU ld (GNU Binutils) 2.23.1 > > > > > > > > The bootstrap fails during stage 3. It attempts to emerge bash, which > > > > requires pkgconfig. The configure phase of pkgconfig fails. It looks like > > > > USE flag "internal-glib" is specified, and so the configure script of glib > > > > is called. It fails wit
RE: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
Phew, that went badly. I guess the error messages about /proc/mounts missing, and “Your kernel is broken” mean glibc on Solaris is a no go. So I’m back to my original problem of pkgconfig with internal-glib failing Cheers John Helliwell From: John Helliwell [mailto:john.helliw...@gmail.com] Sent: 16 May 2017 21:51 To: gentoo-alt@lists.gentoo.org Subject: Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 Hi, You gave me an idea. You posted the Solaris man page for libresolv, and I wondered if the GNU man page for resolver would be more appropriate, since we are using a GNU toolchain. Of course on Linux those resolver functions are provided by glibc. I'm going to try bootstrapping Prefix / glibc (RAP) Will let you know how that goes On Tue, May 16, 2017 at 8:33 PM +0100, "Fabian Groffen" <grob...@gentoo.org <mailto:grob...@gentoo.org> > wrote: Hi! https://forums.gentoo.org/viewtopic-p-8065614.html?sid=95636da82f97a16259d38eeecbdbab5e Is this the same problem? Does -lresolv -lsocket -lnsl work by chance? (https://docs.oracle.com/cd/E23824_01/html/821-1464/libresolv-3lib.html) Thanks, Fabian On 16-05-2017 15:30:16 +0100, John Helliwell wrote: > Hi, > > I'm having trouble with bootstrap-prefix.sh on the Intel version of Solaris > 11.3 - This doesn't come with a C compiler pre-installed, and so I installed > one as such :- > > pkg install pkg://solaris/developer/build/gnu-make \ > pkg://solaris/developer/build/make \ > pkg://solaris/developer/gcc \ > pkg://solaris/system/header \ > pkg://solaris/developer/build/autoconf \ > pkg://solaris/developer/build/automake > > This results in a gcc 4.8.2 at /usr/bin/gcc, and a GNU linker /usr/bin/gld > 2.23.1. The original Solaris linker is intact at /usr/bin/ld > > Oracle Corporation SunOS 5.11 11.3September 2015 > root@sprawl:~# type gcc > gcc is /usr/bin/gcc > root@sprawl:~# gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapp > er > Target: i386-pc-solaris2.11 > Configured with: > /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8. > 2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ > --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man > --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib > --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info > --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc > --enable-shared --with-gmp-include=/usr/include/gmp > --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld > --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 -mtune=opteron > -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron' > Thread model: posix > gcc version 4.8.2 (GCC) > > root@sprawl:~# ld --version > ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458 > root@sprawl:~# gld -v > GNU ld (GNU Binutils) 2.23.1 > > The bootstrap fails during stage 3. It attempts to emerge bash, which > requires pkgconfig. The configure phase of pkgconfig fails. It looks like > USE flag "internal-glib" is specified, and so the configure script of glib > is called. It fails with > > checking for res_query... configure: error: not found > configure: error: > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg > -config-0.29.1/glib/configure failed for glib > > Here is the emerge info for pkgconfig > > johnh@sprawl:~/gentoo$ emerge --info =dev-util/pkgconfig-0.29.1 > Portage 2.3.5-prefix (python 2.7.3-final-0, prefix/sunos/solaris/5.11/x86, > gcc-5.3.0, unavailable, 5.11 i86pc) > = > System Settings > = > System uname: Solaris-2.11-i86pc-i386-32bit-ELF > Timestamp of repository gentoo_prefix: Wed, 05 Apr 2017 21:58:20 + > sh bash 4.3_p48 > ld GNU ld (Gentoo 2.27 p1.0) 2.27 > sys-devel/binutils: 2.27::gentoo_prefix > sys-devel/gcc:5.3.0::gentoo_prefix > sys-devel/gcc-config: 1.8-r01.1::gentoo_prefix > Repositories: > > gentoo_prefix > location: /export/home/johnh/gentoo/usr/portage > sync-type: rsync > sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix > priority: -1000 > > ACCEPT_KEYWORDS="~x86-solaris" > ACCEPT_LICENSE="* -@EULA" > CBUILD="i386-pc-solaris2.11" > CFLAGS=" -O2 -pipe" > CHOST="i386-pc-solaris2.11" > CONFIG_PROTECT="/etc" > CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc
Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
Hi, You gave me an idea. You posted the Solaris man page for libresolv, and I wondered if the GNU man page for resolver would be more appropriate, since we are using a GNU toolchain. Of course on Linux those resolver functions are provided by glibc. I'm going to try bootstrapping Prefix / glibc (RAP) Will let you know how that goes On Tue, May 16, 2017 at 8:33 PM +0100, "Fabian Groffen"wrote: Hi! https://forums.gentoo.org/viewtopic-p-8065614.html?sid=95636da82f97a16259d38eeecbdbab5e Is this the same problem? Does -lresolv -lsocket -lnsl work by chance? (https://docs.oracle.com/cd/E23824_01/html/821-1464/libresolv-3lib.html) Thanks, Fabian On 16-05-2017 15:30:16 +0100, John Helliwell wrote: > Hi, > > I'm having trouble with bootstrap-prefix.sh on the Intel version of Solaris > 11.3 - This doesn't come with a C compiler pre-installed, and so I installed > one as such :- > > pkg install pkg://solaris/developer/build/gnu-make \ > pkg://solaris/developer/build/make \ > pkg://solaris/developer/gcc \ > pkg://solaris/system/header \ > pkg://solaris/developer/build/autoconf \ > pkg://solaris/developer/build/automake > > This results in a gcc 4.8.2 at /usr/bin/gcc, and a GNU linker /usr/bin/gld > 2.23.1. The original Solaris linker is intact at /usr/bin/ld > > Oracle Corporation SunOS 5.11 11.3September 2015 > root@sprawl:~# type gcc > gcc is /usr/bin/gcc > root@sprawl:~# gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapp > er > Target: i386-pc-solaris2.11 > Configured with: > /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8. > 2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ > --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man > --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib > --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info > --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc > --enable-shared --with-gmp-include=/usr/include/gmp > --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld > --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 -mtune=opteron > -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron' > Thread model: posix > gcc version 4.8.2 (GCC) > > root@sprawl:~# ld --version > ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458 > root@sprawl:~# gld -v > GNU ld (GNU Binutils) 2.23.1 > > The bootstrap fails during stage 3. It attempts to emerge bash, which > requires pkgconfig. The configure phase of pkgconfig fails. It looks like > USE flag "internal-glib" is specified, and so the configure script of glib > is called. It fails with > > checking for res_query... configure: error: not found > configure: error: > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg > -config-0.29.1/glib/configure failed for glib > > Here is the emerge info for pkgconfig > > johnh@sprawl:~/gentoo$ emerge --info =dev-util/pkgconfig-0.29.1 > Portage 2.3.5-prefix (python 2.7.3-final-0, prefix/sunos/solaris/5.11/x86, > gcc-5.3.0, unavailable, 5.11 i86pc) > = > System Settings > = > System uname: Solaris-2.11-i86pc-i386-32bit-ELF > Timestamp of repository gentoo_prefix: Wed, 05 Apr 2017 21:58:20 + > sh bash 4.3_p48 > ld GNU ld (Gentoo 2.27 p1.0) 2.27 > sys-devel/binutils: 2.27::gentoo_prefix > sys-devel/gcc:5.3.0::gentoo_prefix > sys-devel/gcc-config: 1.8-r01.1::gentoo_prefix > Repositories: > > gentoo_prefix > location: /export/home/johnh/gentoo/usr/portage > sync-type: rsync > sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix > priority: -1000 > > ACCEPT_KEYWORDS="~x86-solaris" > ACCEPT_LICENSE="* -@EULA" > CBUILD="i386-pc-solaris2.11" > CFLAGS=" -O2 -pipe" > CHOST="i386-pc-solaris2.11" > CONFIG_PROTECT="/etc" > CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release > /etc/terminfo" > CXXFLAGS=" -O2 -pipe" > DISTDIR="/export/home/johnh/gentoo/tmp/usr/portage/distfiles" > FCFLAGS="" > FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect > config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix > merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms > strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged" > FFLAGS="" > GENTOO_MIRRORS="http://distfiles.gentoo.org; > LANG="en_US.UTF-8" > LC_ALL="" > LDFLAGS="" > MAKEOPTS="-j1" > PKGDIR="/export/home/johnh/gentoo/tmp/usr/portage/packages" > PORTAGE_CONFIGROOT="/export/home/johnh/gentoo/tmp/" >
Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
Hi, Yes, that posting to the Gentoo forums was me, and emerging zlib broke things. Python, and thus emerge, failed to load, claiming that it couldn't load libz.so.1 As for adding -l socket etc, that failed too johnh@sprawl:~/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg-config-0.29.1-abi_x86_32.x86/glib$ i386-pc-solaris2.11-gcc -o conftest -O2 -pipe -I/export/home/johnh/gentoo/usr/include -DENABLE_NLS -L /export/home/johnh/gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8 -L/export/home/johnh/gentoo/usr/lib -L/export/home/johnh/gentoo/usr/lib -lintl -lsocket -lresolv -lnsl conftest.c /lib/libelf.so.1: undefined reference to `inflate@SUNW_1.1' /lib/libelf.so.1: undefined reference to `deflateEnd@SUNW_1.1' /lib/libelf.so.1: undefined reference to `inflateInit_@SUNW_1.1' /lib/libelf.so.1: undefined reference to `deflateInit_@SUNW_1.1' /lib/libelf.so.1: undefined reference to `deflateReset@SUNW_1.1' /lib/libelf.so.1: undefined reference to `inflateReset@SUNW_1.1' /lib/libelf.so.1: undefined reference to `inflateEnd@SUNW_1.1' /lib/libelf.so.1: undefined reference to `deflate@SUNW_1.1' collect2: error: ld returned 1 exit status johnh@sprawl:~/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg-config-0.29.1-abi_x86_32.x86/glib$ Thanks John _ From: Fabian Groffen <grob...@gentoo.org> Sent: Tuesday, May 16, 2017 8:33 pm Subject: Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 To: <gentoo-alt@lists.gentoo.org> Hi! https://forums.gentoo.org/viewtopic-p-8065614.html?sid=95636da82f97a16259d38eeecbdbab5e Is this the same problem? Does -lresolv -lsocket -lnsl work by chance? (https://docs.oracle.com/cd/E23824_01/html/821-1464/libresolv-3lib.html) Thanks, Fabian -- Fabian Groffen Gentoo on a different level
Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
Hi! https://forums.gentoo.org/viewtopic-p-8065614.html?sid=95636da82f97a16259d38eeecbdbab5e Is this the same problem? Does -lresolv -lsocket -lnsl work by chance? (https://docs.oracle.com/cd/E23824_01/html/821-1464/libresolv-3lib.html) Thanks, Fabian On 16-05-2017 15:30:16 +0100, John Helliwell wrote: > Hi, > > I'm having trouble with bootstrap-prefix.sh on the Intel version of Solaris > 11.3 - This doesn't come with a C compiler pre-installed, and so I installed > one as such :- > > pkg install pkg://solaris/developer/build/gnu-make \ > pkg://solaris/developer/build/make \ > pkg://solaris/developer/gcc \ > pkg://solaris/system/header \ > pkg://solaris/developer/build/autoconf \ > pkg://solaris/developer/build/automake > > This results in a gcc 4.8.2 at /usr/bin/gcc, and a GNU linker /usr/bin/gld > 2.23.1. The original Solaris linker is intact at /usr/bin/ld > > Oracle Corporation SunOS 5.11 11.3September 2015 > root@sprawl:~# type gcc > gcc is /usr/bin/gcc > root@sprawl:~# gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapp > er > Target: i386-pc-solaris2.11 > Configured with: > /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8. > 2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ > --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man > --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib > --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info > --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc > --enable-shared --with-gmp-include=/usr/include/gmp > --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld > --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 -mtune=opteron > -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron' > Thread model: posix > gcc version 4.8.2 (GCC) > > root@sprawl:~# ld --version > ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458 > root@sprawl:~# gld -v > GNU ld (GNU Binutils) 2.23.1 > > The bootstrap fails during stage 3. It attempts to emerge bash, which > requires pkgconfig. The configure phase of pkgconfig fails. It looks like > USE flag "internal-glib" is specified, and so the configure script of glib > is called. It fails with > > checking for res_query... configure: error: not found > configure: error: > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg > -config-0.29.1/glib/configure failed for glib > > Here is the emerge info for pkgconfig > > johnh@sprawl:~/gentoo$ emerge --info =dev-util/pkgconfig-0.29.1 > Portage 2.3.5-prefix (python 2.7.3-final-0, prefix/sunos/solaris/5.11/x86, > gcc-5.3.0, unavailable, 5.11 i86pc) > = > System Settings > = > System uname: Solaris-2.11-i86pc-i386-32bit-ELF > Timestamp of repository gentoo_prefix: Wed, 05 Apr 2017 21:58:20 + > sh bash 4.3_p48 > ld GNU ld (Gentoo 2.27 p1.0) 2.27 > sys-devel/binutils: 2.27::gentoo_prefix > sys-devel/gcc:5.3.0::gentoo_prefix > sys-devel/gcc-config: 1.8-r01.1::gentoo_prefix > Repositories: > > gentoo_prefix > location: /export/home/johnh/gentoo/usr/portage > sync-type: rsync > sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix > priority: -1000 > > ACCEPT_KEYWORDS="~x86-solaris" > ACCEPT_LICENSE="* -@EULA" > CBUILD="i386-pc-solaris2.11" > CFLAGS=" -O2 -pipe" > CHOST="i386-pc-solaris2.11" > CONFIG_PROTECT="/etc" > CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release > /etc/terminfo" > CXXFLAGS=" -O2 -pipe" > DISTDIR="/export/home/johnh/gentoo/tmp/usr/portage/distfiles" > FCFLAGS="" > FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect > config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix > merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms > strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged" > FFLAGS="" > GENTOO_MIRRORS="http://distfiles.gentoo.org; > LANG="en_US.UTF-8" > LC_ALL="" > LDFLAGS="" > MAKEOPTS="-j1" > PKGDIR="/export/home/johnh/gentoo/tmp/usr/portage/packages" > PORTAGE_CONFIGROOT="/export/home/johnh/gentoo/tmp/" > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times > --omit-dir-times --compress --force --whole-file --delete --stats > --human-readable --timeout=180 --exclude=/distfiles --exclude=/local > --exclude=/packages --exclude=/.git" > PORTAGE_TMPDIR="/export/home/johnh/gentoo/tmp/var/tmp" > USE="cracklib cxx ipv6 modules ncurses nls prefix prefix-guest readline ssl > unicode x86-solaris zlib" ABI_X86="32" APACHE2_MODULES="authn_core > authz_core socache_shmcb unixd actions alias auth_basic authn_alias > authn_anon authn_dbm authn_default authn_file authz_dbm authz_default