Gentoo Archives: gentoo-alt

From: John Helliwell <john.helliwell@×××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
Date: Tue, 16 May 2017 14:30:20
Message-Id: 006501d2ce50$f05df280$d119d780$@gmail.com
1 Hi,
2
3 I'm having trouble with bootstrap-prefix.sh on the Intel version of Solaris
4 11.3 - This doesn't come with a C compiler pre-installed, and so I installed
5 one as such :-
6
7 pkg install pkg://solaris/developer/build/gnu-make \
8 pkg://solaris/developer/build/make \
9 pkg://solaris/developer/gcc \
10 pkg://solaris/system/header \
11 pkg://solaris/developer/build/autoconf \
12 pkg://solaris/developer/build/automake
13
14 This results in a gcc 4.8.2 at /usr/bin/gcc, and a GNU linker /usr/bin/gld
15 2.23.1. The original Solaris linker is intact at /usr/bin/ld
16
17 Oracle Corporation SunOS 5.11 11.3 September 2015
18 root@sprawl:~# type gcc
19 gcc is /usr/bin/gcc
20 root@sprawl:~# gcc -v
21 Using built-in specs.
22 COLLECT_GCC=gcc
23 COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapp
24 er
25 Target: i386-pc-solaris2.11
26 Configured with:
27 /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8.
28 2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++
29 --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man
30 --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib
31 --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info
32 --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc
33 --enable-shared --with-gmp-include=/usr/include/gmp
34 --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld
35 --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 -mtune=opteron
36 -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron'
37 Thread model: posix
38 gcc version 4.8.2 (GCC)
39
40 root@sprawl:~# ld --version
41 ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458
42 root@sprawl:~# gld -v
43 GNU ld (GNU Binutils) 2.23.1
44
45 The bootstrap fails during stage 3. It attempts to emerge bash, which
46 requires pkgconfig. The configure phase of pkgconfig fails. It looks like
47 USE flag "internal-glib" is specified, and so the configure script of glib
48 is called. It fails with
49
50 checking for res_query... configure: error: not found
51 configure: error:
52 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
53 -config-0.29.1/glib/configure failed for glib
54
55 Here is the emerge info for pkgconfig
56
57 johnh@sprawl:~/gentoo$ emerge --info =dev-util/pkgconfig-0.29.1
58 Portage 2.3.5-prefix (python 2.7.3-final-0, prefix/sunos/solaris/5.11/x86,
59 gcc-5.3.0, unavailable, 5.11 i86pc)
60 =================================================================
61 System Settings
62 =================================================================
63 System uname: Solaris-2.11-i86pc-i386-32bit-ELF
64 Timestamp of repository gentoo_prefix: Wed, 05 Apr 2017 21:58:20 +0000
65 sh bash 4.3_p48
66 ld GNU ld (Gentoo 2.27 p1.0) 2.27
67 sys-devel/binutils: 2.27::gentoo_prefix
68 sys-devel/gcc: 5.3.0::gentoo_prefix
69 sys-devel/gcc-config: 1.8-r01.1::gentoo_prefix
70 Repositories:
71
72 gentoo_prefix
73 location: /export/home/johnh/gentoo/usr/portage
74 sync-type: rsync
75 sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
76 priority: -1000
77
78 ACCEPT_KEYWORDS="~x86-solaris"
79 ACCEPT_LICENSE="* -@EULA"
80 CBUILD="i386-pc-solaris2.11"
81 CFLAGS=" -O2 -pipe"
82 CHOST="i386-pc-solaris2.11"
83 CONFIG_PROTECT="/etc"
84 CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release
85 /etc/terminfo"
86 CXXFLAGS=" -O2 -pipe"
87 DISTDIR="/export/home/johnh/gentoo/tmp/usr/portage/distfiles"
88 FCFLAGS=""
89 FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect
90 config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix
91 merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms
92 strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
93 FFLAGS=""
94 GENTOO_MIRRORS="http://distfiles.gentoo.org"
95 LANG="en_US.UTF-8"
96 LC_ALL=""
97 LDFLAGS=""
98 MAKEOPTS="-j1"
99 PKGDIR="/export/home/johnh/gentoo/tmp/usr/portage/packages"
100 PORTAGE_CONFIGROOT="/export/home/johnh/gentoo/tmp/"
101 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
102 --omit-dir-times --compress --force --whole-file --delete --stats
103 --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
104 --exclude=/packages --exclude=/.git"
105 PORTAGE_TMPDIR="/export/home/johnh/gentoo/tmp/var/tmp"
106 USE="cracklib cxx ipv6 modules ncurses nls prefix prefix-guest readline ssl
107 unicode x86-solaris zlib" ABI_X86="32" APACHE2_MODULES="authn_core
108 authz_core socache_shmcb unixd actions alias auth_basic authn_alias
109 authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
110 authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid
111 dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
112 filter headers include info log_config logio mem_cache mime mime_magic
113 negotiation rewrite setenvif speling status unique_id userdir usertrack
114 vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables
115 krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load
116 memory rrdtool swap syslog" ELIBC="SunOS" GPSD_PROTOCOLS="ashtech aivdm
117 earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea
118 ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq
119 superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard
120 mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
121 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
122 presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice"
123 PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7"
124 PYTHON_TARGETS="python2_7 python3_5 python3_4" RUBY_TARGETS="ruby21"
125 USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options
126 ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat
127 logmark ipmark dhcpmac delude chaos account"
128 Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
129 PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
130 PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
131
132 Here is the entire emerge output
133
134 >>> Emerging (8 of 11) dev-util/pkgconfig-0.29.1::gentoo_prefix
135 * pkg-config-0.29.1.tar.gz SHA256 SHA512 size ;-) ... [
136 ok ]
137 >>> Unpacking source...
138 >>> Unpacking pkg-config-0.29.1.tar.gz to
139 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work
140 >>> Source unpacked in
141 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work
142 >>> Preparing source in
143 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
144 -config-0.29.1 ...
145 * Running elibtoolize in: pkg-config-0.29.1/
146 * Applying portage/1.2.0 patch ...
147 * Applying sed/1.5.6 patch ...
148 * Applying as-needed/2.4.3 patch ...
149 * Applying ppc64le/2.4.4 patch ...
150 * Running elibtoolize in: pkg-config-0.29.1/glib/
151 * Applying portage/1.2.0 patch ...
152 * Applying sed/1.5.6 patch ...
153 * Applying as-needed/2.4.3 patch ...
154 * Applying ppc64le/2.4.4 patch ...
155 >>> Source prepared.
156 >>> Configuring source in
157 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
158 -config-0.29.1 ...
159 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
160 * Appending a library link instruction (-lintl); libraries to link to
161 should not be passed through LDFLAGS
162 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
163 -config-0.29.1/configure --prefix=/export/home/johnh/gentoo/usr
164 --build=i386-pc-solaris2.11 --host=i386-pc-solaris2.11
165 --mandir=/export/home/johnh/gentoo/usr/share/man
166 --infodir=/export/home/johnh/gentoo/usr/share/info
167 --datadir=/export/home/johnh/gentoo/usr/share
168 --sysconfdir=/export/home/johnh/gentoo/etc
169 --localstatedir=/export/home/johnh/gentoo/var/lib
170 --disable-dependency-tracking --disable-silent-rules
171 --docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1
172 --htmldir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html
173 --libdir=/export/home/johnh/gentoo/usr/lib
174 --docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html
175 --with-system-include-path=/export/home/johnh/gentoo/usr/include
176 --with-system-library-path=/export/home/johnh/gentoo/usr/lib
177 --with-internal-glib --with-libiconv=gnu
178 checking for a BSD-compatible install...
179 /export/home/johnh/gentoo/tmp/bin/install -c
180 checking whether build environment is sane... yes
181 checking for a thread-safe mkdir -p...
182 /export/home/johnh/gentoo/tmp/bin/mkdir -p
183 checking for gawk... gawk
184 checking whether gmake sets $(MAKE)... yes
185 checking whether gmake supports nested variables... yes
186 checking build system type... i386-pc-solaris2.11
187 checking host system type... i386-pc-solaris2.11
188 checking how to print strings... print -r
189 checking for style of include used by gmake... GNU
190 checking for i386-pc-solaris2.11-gcc... i386-pc-solaris2.11-gcc
191 checking whether the C compiler works... yes
192 checking for C compiler default output file name... a.out
193 checking for suffix of executables...
194 checking whether we are cross compiling... no
195 checking for suffix of object files... o
196 checking whether we are using the GNU C compiler... yes
197 checking whether i386-pc-solaris2.11-gcc accepts -g... yes
198 checking for i386-pc-solaris2.11-gcc option to accept ISO C89... none needed
199 checking whether i386-pc-solaris2.11-gcc understands -c and -o together...
200 yes
201 checking dependency style of i386-pc-solaris2.11-gcc... none
202 checking for a sed that does not truncate output...
203 /export/home/johnh/gentoo/bin/sed
204 checking for grep that handles long lines and -e...
205 /export/home/johnh/gentoo/tmp/bin/grep
206 checking for egrep... /export/home/johnh/gentoo/tmp/bin/grep -E
207 checking for fgrep... /export/home/johnh/gentoo/tmp/bin/grep -F
208 checking for ld used by i386-pc-solaris2.11-gcc...
209 /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld
210 checking if the linker
211 (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) is GNU ld... yes
212 checking for BSD- or MS-compatible name lister (nm)...
213 /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B
214 checking the name lister
215 (/export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B) interface... BSD
216 nm
217 checking whether ln -s works... yes
218 checking the maximum length of command line arguments... 786240
219 checking how to convert i386-pc-solaris2.11 file names to
220 i386-pc-solaris2.11 format... func_convert_file_noop
221 checking how to convert i386-pc-solaris2.11 file names to toolchain
222 format... func_convert_file_noop
223 checking for /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld option
224 to reload object files... -r
225 checking for i386-pc-solaris2.11-objdump... i386-pc-solaris2.11-objdump
226 checking how to recognize dependent libraries... pass_all
227 checking for i386-pc-solaris2.11-dlltool... no
228 checking for dlltool... no
229 checking how to associate runtime and link libraries... print -r --
230 checking for i386-pc-solaris2.11-ar... i386-pc-solaris2.11-ar
231 checking for archiver @FILE support... @
232 checking for i386-pc-solaris2.11-strip... i386-pc-solaris2.11-strip
233 checking for i386-pc-solaris2.11-ranlib... i386-pc-solaris2.11-ranlib
234 checking command to parse
235 /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B output from
236 i386-pc-solaris2.11-gcc object... ok
237 checking for sysroot... no
238 checking for a working dd... /export/home/johnh/gentoo/tmp/bin/dd
239 checking how to truncate binary pipes...
240 /export/home/johnh/gentoo/tmp/bin/dd bs=4096 count=1
241 checking for i386-pc-solaris2.11-mt... no
242 checking for mt... mt
243 checking if mt is a manifest tool... no
244 checking how to run the C preprocessor... i386-pc-solaris2.11-gcc -E
245 checking for ANSI C header files... yes
246 checking for sys/types.h... yes
247 checking for sys/stat.h... yes
248 checking for stdlib.h... yes
249 checking for string.h... yes
250 checking for memory.h... yes
251 checking for strings.h... yes
252 checking for inttypes.h... yes
253 checking for stdint.h... yes
254 checking for unistd.h... yes
255 checking for dlfcn.h... yes
256 checking for objdir... .libs
257 checking if i386-pc-solaris2.11-gcc supports -fno-rtti -fno-exceptions... no
258 checking for i386-pc-solaris2.11-gcc option to produce PIC... -fPIC -DPIC
259 checking if i386-pc-solaris2.11-gcc PIC flag -fPIC -DPIC works... yes
260 checking if i386-pc-solaris2.11-gcc static flag -static works... no
261 checking if i386-pc-solaris2.11-gcc supports -c -o file.o... yes
262 checking if i386-pc-solaris2.11-gcc supports -c -o file.o... (cached) yes
263 checking whether the i386-pc-solaris2.11-gcc linker
264 (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
265 libraries... yes
266 checking whether -lc should be explicitly linked in... no
267 checking dynamic linker characteristics... solaris2.11 ld.so
268 checking how to hardcode library paths into programs... immediate
269 checking whether stripping libraries is possible... yes
270 checking if libtool supports shared libraries... yes
271 checking whether to build shared libraries... yes
272 checking whether to build static libraries... yes
273 checking whether gmake supports nested variables... (cached) yes
274 checking for special C compiler options needed for large files... no
275 checking for _FILE_OFFSET_BITS value needed for large files... 64
276 checking for i386-pc-solaris2.11-gcc... (cached) i386-pc-solaris2.11-gcc
277 checking whether we are using the GNU C compiler... (cached) yes
278 checking whether i386-pc-solaris2.11-gcc accepts -g... (cached) yes
279 checking for i386-pc-solaris2.11-gcc option to accept ISO C89... (cached)
280 none needed
281 checking whether i386-pc-solaris2.11-gcc understands -c and -o together...
282 (cached) yes
283 checking dependency style of i386-pc-solaris2.11-gcc... (cached) none
284 checking for ln... ln
285 checking dirent.h usability... yes
286 checking dirent.h presence... yes
287 checking for dirent.h... yes
288 checking for unistd.h... (cached) yes
289 checking sys/wait.h usability... yes
290 checking sys/wait.h presence... yes
291 checking for sys/wait.h... yes
292 checking malloc.h usability... yes
293 checking malloc.h presence... yes
294 checking for malloc.h... yes
295 checking for bash... /export/home/johnh/gentoo/bin/bash
296 checking for default search path for .pc files...
297 ${libdir}/pkgconfig:${datadir}/pkgconfig
298 checking for system include path to avoid -I flags...
299 /export/home/johnh/gentoo/usr/include
300 checking for system library path to avoid -L flags...
301 /export/home/johnh/gentoo/usr/lib
302 configure: creating ./config.lt
303 config.lt: creating libtool
304 checking whether to list both direct and indirect dependencies... no
305 checking for Win32... no
306 checking if prefix should be redefined at runtime... no
307 checking if internal glib should be used... yes
308 checking if host- prefixed tool should be installed... yes
309 checking that generated files are newer than configure... done
310 configure: creating ./config.status
311 config.status: creating Makefile
312 config.status: creating pkg.m4
313 config.status: creating check/Makefile
314 config.status: creating check/config.sh
315 config.status: creating config.h.win32
316 config.status: creating config.h
317 config.status: executing depfiles commands
318 config.status: executing libtool commands
319 === configuring in glib
320 (/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
321 g-config-0.29.1-abi_x86_32.x86/glib)
322 configure: running /export/home/johnh/gentoo/bin/bash
323 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
324 -config-0.29.1/glib/configure --disable-option-checking
325 '--prefix=/export/home/johnh/gentoo/usr' '--build=i386-pc-solaris2.11'
326 '--host=i386-pc-solaris2.11'
327 '--mandir=/export/home/johnh/gentoo/usr/share/man'
328 '--infodir=/export/home/johnh/gentoo/usr/share/info'
329 '--datadir=/export/home/johnh/gentoo/usr/share'
330 '--sysconfdir=/export/home/johnh/gentoo/etc'
331 '--localstatedir=/export/home/johnh/gentoo/var/lib'
332 '--disable-dependency-tracking' '--disable-silent-rules'
333 '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1'
334 '--htmldir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html'
335 '--libdir=/export/home/johnh/gentoo/usr/lib'
336 '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html'
337 '--with-system-include-path=/export/home/johnh/gentoo/usr/include'
338 '--with-system-library-path=/export/home/johnh/gentoo/usr/lib'
339 '--with-internal-glib' '--with-libiconv=gnu'
340 'build_alias=i386-pc-solaris2.11' 'host_alias=i386-pc-solaris2.11' 'CFLAGS=
341 -O2 -pipe' 'LDFLAGS=-L/export/home/johnh/gentoo/usr/lib
342 -L/export/home/johnh/gentoo/usr/lib -lintl'
343 'CPPFLAGS=-I/export/home/johnh/gentoo/usr/include -DENABLE_NLS'
344 'PKG_CONFIG_PATH=/export/home/johnh/gentoo/usr/lib/pkgconfig'
345 --cache-file=/dev/null
346 --srcdir=/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1
347 /work/pkg-config-0.29.1/glib
348 checking for a BSD-compatible install...
349 /export/home/johnh/gentoo/tmp/bin/install -c
350 checking whether build environment is sane... yes
351 checking for a thread-safe mkdir -p...
352 /export/home/johnh/gentoo/tmp/bin/mkdir -p
353 checking for gawk... gawk
354 checking whether gmake sets $(MAKE)... yes
355 checking whether gmake supports nested variables... yes
356 checking whether UID '100' is supported by ustar format... yes
357 checking whether GID '10' is supported by ustar format... yes
358 checking how to create a ustar tar archive... gnutar
359 checking whether to enable maintainer-specific portions of Makefiles... yes
360 checking whether gmake supports nested variables... (cached) yes
361 checking for i386-pc-solaris2.11-gcc... i386-pc-solaris2.11-gcc
362 checking whether the C compiler works... yes
363 checking for C compiler default output file name... a.out
364 checking for suffix of executables...
365 checking whether we are cross compiling... no
366 checking for suffix of object files... o
367 checking whether we are using the GNU C compiler... yes
368 checking whether i386-pc-solaris2.11-gcc accepts -g... yes
369 checking for i386-pc-solaris2.11-gcc option to accept ISO C89... none needed
370 checking whether i386-pc-solaris2.11-gcc understands -c and -o together...
371 yes
372 checking for style of include used by gmake... GNU
373 checking dependency style of i386-pc-solaris2.11-gcc... none
374 checking how to run the C preprocessor... i386-pc-solaris2.11-gcc -E
375 checking for grep that handles long lines and -e...
376 /export/home/johnh/gentoo/tmp/bin/grep
377 checking for egrep... /export/home/johnh/gentoo/tmp/bin/grep -E
378 checking for ANSI C header files... yes
379 checking for sys/types.h... yes
380 checking for sys/stat.h... yes
381 checking for stdlib.h... yes
382 checking for string.h... yes
383 checking for memory.h... yes
384 checking for strings.h... yes
385 checking for inttypes.h... yes
386 checking for stdint.h... yes
387 checking for unistd.h... yes
388 checking minix/config.h usability... no
389 checking minix/config.h presence... no
390 checking for minix/config.h... no
391 checking whether it is safe to define __EXTENSIONS__... yes
392 checking build system type... i386-pc-solaris2.11
393 checking host system type... i386-pc-solaris2.11
394 checking for the BeOS... no
395 checking for Win32... no
396 checking for the Android... no
397 checking for Mac OS X Carbon support... no
398 checking for Mac OS X Cocoa support... no
399 checking whether to enable garbage collector friendliness... no
400 checking whether to disable memory pools... no
401 checking for i386-pc-solaris2.11-c++... i386-pc-solaris2.11-c++
402 checking whether we are using the GNU C++ compiler... yes
403 checking whether i386-pc-solaris2.11-c++ accepts -g... yes
404 checking dependency style of i386-pc-solaris2.11-c++... none
405 checking for special C compiler options needed for large files... no
406 checking for _FILE_OFFSET_BITS value needed for large files... 64
407 checking for gawk... (cached) gawk
408 checking for perl5... no
409 checking for perl... perl
410 checking for indent... no
411 checking for perl... /usr/bin/perl
412 checking for a Python interpreter with version >= 2.5... python2.6
413 checking for python2.6... /usr/bin/python2.6
414 checking for python2.6 version... 2.6
415 checking for python2.6 platform... sunos5
416 checking for python2.6 script directory...
417 ${prefix}/lib/python2.6/site-packages
418 checking for python2.6 extension module directory...
419 ${exec_prefix}/lib/python2.6/site-packages
420 checking for libiconv_open in -liconv... yes
421 checking how to print strings... print -r
422 checking for a sed that does not truncate output...
423 /export/home/johnh/gentoo/bin/sed
424 checking for fgrep... /export/home/johnh/gentoo/tmp/bin/grep -F
425 checking for ld used by i386-pc-solaris2.11-gcc...
426 /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld
427 checking if the linker
428 (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) is GNU ld... yes
429 checking for BSD- or MS-compatible name lister (nm)...
430 /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B
431 checking the name lister
432 (/export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B) interface... BSD
433 nm
434 checking whether ln -s works... yes
435 checking the maximum length of command line arguments... 786240
436 checking how to convert i386-pc-solaris2.11 file names to
437 i386-pc-solaris2.11 format... func_convert_file_noop
438 checking how to convert i386-pc-solaris2.11 file names to toolchain
439 format... func_convert_file_noop
440 checking for /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld option
441 to reload object files... -r
442 checking for i386-pc-solaris2.11-objdump... i386-pc-solaris2.11-objdump
443 checking how to recognize dependent libraries... pass_all
444 checking for i386-pc-solaris2.11-dlltool... no
445 checking for dlltool... no
446 checking how to associate runtime and link libraries... print -r --
447 checking for i386-pc-solaris2.11-ar... i386-pc-solaris2.11-ar
448 checking for archiver @FILE support... @
449 checking for i386-pc-solaris2.11-strip... i386-pc-solaris2.11-strip
450 checking for i386-pc-solaris2.11-ranlib... i386-pc-solaris2.11-ranlib
451 checking command to parse
452 /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B output from
453 i386-pc-solaris2.11-gcc object... ok
454 checking for sysroot... no
455 checking for a working dd... /export/home/johnh/gentoo/tmp/bin/dd
456 checking how to truncate binary pipes...
457 /export/home/johnh/gentoo/tmp/bin/dd bs=4096 count=1
458 checking for i386-pc-solaris2.11-mt... no
459 checking for mt... mt
460 checking if mt is a manifest tool... no
461 checking for dlfcn.h... yes
462 checking for objdir... .libs
463 checking if i386-pc-solaris2.11-gcc supports -fno-rtti -fno-exceptions... no
464 checking for i386-pc-solaris2.11-gcc option to produce PIC... -fPIC -DPIC
465 checking if i386-pc-solaris2.11-gcc PIC flag -fPIC -DPIC works... yes
466 checking if i386-pc-solaris2.11-gcc static flag -static works... no
467 checking if i386-pc-solaris2.11-gcc supports -c -o file.o... yes
468 checking if i386-pc-solaris2.11-gcc supports -c -o file.o... (cached) yes
469 checking whether the i386-pc-solaris2.11-gcc linker
470 (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
471 libraries... yes
472 checking dynamic linker characteristics... solaris2.11 ld.so
473 checking how to hardcode library paths into programs... immediate
474 checking whether stripping libraries is possible... yes
475 checking if libtool supports shared libraries... yes
476 checking whether to build shared libraries... no
477 checking whether to build static libraries... yes
478 checking how to run the C++ preprocessor... i386-pc-solaris2.11-c++ -E
479 checking for ld used by i386-pc-solaris2.11-c++...
480 /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld
481 checking if the linker
482 (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) is GNU ld... yes
483 checking whether the i386-pc-solaris2.11-c++ linker
484 (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
485 libraries... yes
486 checking for i386-pc-solaris2.11-c++ option to produce PIC... -fPIC -DPIC
487 checking if i386-pc-solaris2.11-c++ PIC flag -fPIC -DPIC works... yes
488 checking if i386-pc-solaris2.11-c++ static flag -static works... no
489 checking if i386-pc-solaris2.11-c++ supports -c -o file.o... yes
490 checking if i386-pc-solaris2.11-c++ supports -c -o file.o... (cached) yes
491 checking whether the i386-pc-solaris2.11-c++ linker
492 (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
493 libraries... yes
494 checking dynamic linker characteristics... solaris2.11 ld.so
495 checking how to hardcode library paths into programs... immediate
496 configure: creating ./config.lt
497 config.lt: creating libtool
498 checking for extra flags to get ANSI library prototypes... none needed
499 checking for extra flags for POSIX compliance... none needed
500 checking for vprintf... yes
501 checking for _doprnt... yes
502 checking for size_t... yes
503 checking for working alloca.h... yes
504 checking for alloca... yes
505 checking for mmap... yes
506 checking for posix_memalign... yes
507 checking for memalign... yes
508 checking for valloc... yes
509 checking for fsync... yes
510 checking for pipe2... no
511 checking for issetugid... yes
512 checking for atexit... yes
513 checking for on_exit... no
514 checking for timegm... no
515 checking for gmtime_r... yes
516 checking for __libc_enable_secure... no
517 checking size of char... 1
518 checking size of short... 2
519 checking size of long... 4
520 checking size of int... 4
521 checking size of void *... 4
522 checking size of long long... 8
523 checking size of __int64... 0
524 checking for sig_atomic_t... yes
525 checking for format to printf and scanf a guint64... %llu
526 checking for an ANSI C-conforming const... yes
527 checking for growing stack pointer... yes
528 checking for __inline... yes
529 checking for __inline__... yes
530 checking for inline... yes
531 checking if inline functions in headers work... yes
532 checking for working do while(0) macros... yes
533 checking for ISO C99 varargs macros in C... yes
534 checking for ISO C99 varargs macros in C++... yes
535 checking for GNUC varargs macros... yes
536 checking for GNUC visibility attribute... yes
537 checking whether using Sun Studio C compiler... no
538 checking whether byte ordering is bigendian... no
539 checking dirent.h usability... yes
540 checking dirent.h presence... yes
541 checking for dirent.h... yes
542 checking float.h usability... yes
543 checking float.h presence... yes
544 checking for float.h... yes
545 checking limits.h usability... yes
546 checking limits.h presence... yes
547 checking for limits.h... yes
548 checking pwd.h usability... yes
549 checking pwd.h presence... yes
550 checking for pwd.h... yes
551 checking grp.h usability... yes
552 checking grp.h presence... yes
553 checking for grp.h... yes
554 checking sys/param.h usability... yes
555 checking sys/param.h presence... yes
556 checking for sys/param.h... yes
557 checking sys/poll.h usability... yes
558 checking sys/poll.h presence... yes
559 checking for sys/poll.h... yes
560 checking sys/resource.h usability... yes
561 checking sys/resource.h presence... yes
562 checking for sys/resource.h... yes
563 checking sys/time.h usability... yes
564 checking sys/time.h presence... yes
565 checking for sys/time.h... yes
566 checking sys/times.h usability... yes
567 checking sys/times.h presence... yes
568 checking for sys/times.h... yes
569 checking sys/wait.h usability... yes
570 checking sys/wait.h presence... yes
571 checking for sys/wait.h... yes
572 checking for unistd.h... (cached) yes
573 checking values.h usability... yes
574 checking values.h presence... yes
575 checking for values.h... yes
576 checking sys/select.h usability... yes
577 checking sys/select.h presence... yes
578 checking for sys/select.h... yes
579 checking for sys/types.h... (cached) yes
580 checking for stdint.h... (cached) yes
581 checking for inttypes.h... (cached) yes
582 checking sched.h usability... yes
583 checking sched.h presence... yes
584 checking for sched.h... yes
585 checking malloc.h usability... yes
586 checking malloc.h presence... yes
587 checking for malloc.h... yes
588 checking sys/vfs.h usability... yes
589 checking sys/vfs.h presence... yes
590 checking for sys/vfs.h... yes
591 checking sys/vmount.h usability... no
592 checking sys/vmount.h presence... no
593 checking for sys/vmount.h... no
594 checking sys/statfs.h usability... yes
595 checking sys/statfs.h presence... yes
596 checking for sys/statfs.h... yes
597 checking sys/statvfs.h usability... yes
598 checking sys/statvfs.h presence... yes
599 checking for sys/statvfs.h... yes
600 checking sys/filio.h usability... yes
601 checking sys/filio.h presence... yes
602 checking for sys/filio.h... yes
603 checking mntent.h usability... no
604 checking mntent.h presence... no
605 checking for mntent.h... no
606 checking sys/mnttab.h usability... yes
607 checking sys/mnttab.h presence... yes
608 checking for sys/mnttab.h... yes
609 checking sys/vfstab.h usability... yes
610 checking sys/vfstab.h presence... yes
611 checking for sys/vfstab.h... yes
612 checking sys/mntctl.h usability... no
613 checking sys/mntctl.h presence... no
614 checking for sys/mntctl.h... no
615 checking fstab.h usability... no
616 checking fstab.h presence... no
617 checking for fstab.h... no
618 checking sys/uio.h usability... yes
619 checking sys/uio.h presence... yes
620 checking for sys/uio.h... yes
621 checking sys/mkdev.h usability... yes
622 checking sys/mkdev.h presence... yes
623 checking for sys/mkdev.h... yes
624 checking linux/magic.h usability... no
625 checking linux/magic.h presence... no
626 checking for linux/magic.h... no
627 checking sys/prctl.h usability... no
628 checking sys/prctl.h presence... no
629 checking for sys/prctl.h... no
630 checking for sys/mount.h... yes
631 checking for sys/sysctl.h... no
632 checking for sysctlbyname... no
633 checking xlocale.h usability... no
634 checking xlocale.h presence... no
635 checking for xlocale.h... no
636 checking for struct stat.st_mtimensec... no
637 checking for struct stat.st_mtim.tv_nsec... yes
638 checking for struct stat.st_atimensec... no
639 checking for struct stat.st_atim.tv_nsec... yes
640 checking for struct stat.st_ctimensec... no
641 checking for struct stat.st_ctim.tv_nsec... yes
642 checking for struct stat.st_blksize... yes
643 checking for struct stat.st_blocks... yes
644 checking for struct statfs.f_fstypename... no
645 checking for struct statfs.f_bavail... no
646 checking for struct statvfs.f_basetype... yes
647 checking for struct statvfs.f_fstypename... no
648 checking for struct tm.tm_gmtoff... no
649 checking for struct tm.__tm_gmtoff... no
650 checking for dirent.h that defines DIR... yes
651 checking for library containing opendir... none required
652 checking for struct dirent.d_type... no
653 checking for nl_langinfo and CODESET... yes
654 checking stddef.h usability... yes
655 checking stddef.h presence... yes
656 checking for stddef.h... yes
657 checking for stdlib.h... (cached) yes
658 checking for string.h... (cached) yes
659 checking for setlocale... yes
660 checking whether we are using the GNU C Library 2.1 or newer... no
661 checking size of size_t... 4
662 checking for the appropriate definition for size_t... unsigned int
663 checking size of ssize_t... 4
664 checking for the appropriate definition for ssize_t... int
665 checking for lstat... yes
666 checking for strerror... yes
667 checking for strsignal... yes
668 checking for memmove... yes
669 checking for vsnprintf... yes
670 checking for stpcpy... yes
671 checking for strcasecmp... yes
672 checking for strncasecmp... yes
673 checking for poll... yes
674 checking for getcwd... yes
675 checking for vasprintf... yes
676 checking for setenv... yes
677 checking for unsetenv... yes
678 checking for getc_unlocked... yes
679 checking for readlink... yes
680 checking for symlink... yes
681 checking for fdwalk... yes
682 checking for memmem... yes
683 checking for chown... yes
684 checking for lchmod... no
685 checking for lchown... yes
686 checking for fchmod... yes
687 checking for fchown... yes
688 checking for link... yes
689 checking for utimes... yes
690 checking for getgrgid... yes
691 checking for getpwuid... yes
692 checking for getresuid... no
693 checking for getmntent_r... no
694 checking for setmntent... no
695 checking for endmntent... no
696 checking for hasmntopt... yes
697 checking for getfsstat... no
698 checking for getvfsstat... no
699 checking for fallocate... no
700 checking for splice... no
701 checking for prlimit... no
702 checking for statvfs... yes
703 checking for statfs... yes
704 checking whether to use statfs or statvfs... statvfs
705 checking crt_externs.h usability... no
706 checking crt_externs.h presence... no
707 checking for crt_externs.h... no
708 checking for _NSGetEnviron... no
709 checking for newlocale... no
710 checking for uselocale... no
711 checking for strtod_l... no
712 checking for strtoll_l... no
713 checking for strtoull_l... no
714 checking for C99 vsnprintf... yes
715 checking whether printf supports positional parameters... yes
716 checking value of AF_INET... 2
717 checking value of AF_INET6... 26
718 checking value of AF_UNIX... 1
719 checking value of MSG_PEEK... 2
720 checking value of MSG_OOB... 1
721 checking value of MSG_DONTROUTE... 4
722 checking for getprotobyname_r... no
723 checking for endservent... no
724 checking for if_nametoindex... no
725 checking for if_indextoname... no
726 checking if arpa/nameser_compat.h is needed... no
727 checking for res_query... configure: error: not found
728 configure: error:
729 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
730 -config-0.29.1/glib/configure failed for glib
731
732 !!! Please attach the following file when seeking support:
733 !!!
734 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
735 -config-0.29.1-abi_x86_32.x86/config.log
736 * ERROR: dev-util/pkgconfig-0.29.1::gentoo_prefix failed (configure phase):
737 * econf failed
738 *
739 * Call stack:
740 * ebuild.sh, line 115: Called src_configure
741 * environment, line 3302: Called
742 multilib-minimal_src_configure
743 * environment, line 2466: Called multilib_foreach_abi
744 'multilib-minimal_abi_src_configure'
745 * environment, line 2680: Called multibuild_foreach_variant
746 '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
747 * environment, line 2396: Called _multibuild_run
748 '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
749 * environment, line 2394: Called _multilib_multibuild_wrapper
750 'multilib-minimal_abi_src_configure'
751 * environment, line 441: Called
752 multilib-minimal_abi_src_configure
753 * environment, line 2460: Called multilib_src_configure
754 * environment, line 2913: Called econf
755 '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html'
756 '--with-system-include-path=/export/home/johnh/gentoo/usr/include'
757 '--with-system-library-path=/export/home/johnh/gentoo/usr/lib'
758 '--with-internal-glib' '--with-libiconv=gnu'
759 * phase-helpers.sh, line 665: Called __helpers_die 'econf failed'
760 * isolated-functions.sh, line 117: Called die
761 * The specific snippet of code:
762 * die "$@"
763 *
764 * If you need support, post the output of `emerge --info
765 '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`,
766 * the complete build log and the output of `emerge -pqv
767 '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`.
768 * The complete build log is located at
769 '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bu
770 ild.log'.
771 * The ebuild environment file is located at
772 '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/en
773 vironment'.
774 * Working directory:
775 '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
776 g-config-0.29.1-abi_x86_32.x86'
777 * S:
778 '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
779 g-config-0.29.1'
780
781 >>> Failed to emerge dev-util/pkgconfig-0.29.1, Log file:
782
783 >>>
784 '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bu
785 ild.log'
786
787 * Messages for package dev-util/pkgconfig-0.29.1:
788
789 * ERROR: dev-util/pkgconfig-0.29.1::gentoo_prefix failed (configure phase):
790 * econf failed
791 *
792 * Call stack:
793 * ebuild.sh, line 115: Called src_configure
794 * environment, line 3302: Called
795 multilib-minimal_src_configure
796 * environment, line 2466: Called multilib_foreach_abi
797 'multilib-minimal_abi_src_configure'
798 * environment, line 2680: Called multibuild_foreach_variant
799 '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
800 * environment, line 2396: Called _multibuild_run
801 '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
802 * environment, line 2394: Called _multilib_multibuild_wrapper
803 'multilib-minimal_abi_src_configure'
804 * environment, line 441: Called
805 multilib-minimal_abi_src_configure
806 * environment, line 2460: Called multilib_src_configure
807 * environment, line 2913: Called econf
808 '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html'
809 '--with-system-include-path=/export/home/johnh/gentoo/usr/include'
810 '--with-system-library-path=/export/home/johnh/gentoo/usr/lib'
811 '--with-internal-glib' '--with-libiconv=gnu'
812 * phase-helpers.sh, line 665: Called __helpers_die 'econf failed'
813 * isolated-functions.sh, line 117: Called die
814 * The specific snippet of code:
815 * die "$@"
816 *
817 * If you need support, post the output of `emerge --info
818 '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`,
819 * the complete build log and the output of `emerge -pqv
820 '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`.
821 * The complete build log is located at
822 '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bu
823 ild.log'.
824 * The ebuild environment file is located at
825 '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/en
826 vironment'.
827 * Working directory:
828 '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
829 g-config-0.29.1-abi_x86_32.x86'
830 * S:
831 '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
832 g-config-0.29.1'
833
834 Hmmmm, I was already afraid of this to happen. Running
835 /export/home/johnh/gentoo/usr/bin/bash ./bootstrap-prefix.sh
836 "/export/home/johnh/gentoo" stage3
837 somewhere failed :( Details might be found in the build log:
838
839 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bui
840 ld.log
841 I have no clue, really. Please find friendly folks in #gentoo-prefix on
842 irc.gentoo.org, gentoo-alt@l.g.o mailing list, or file a bug
843 at bugs.gentoo.org under Gentoo/Alt, Prefix Support. This is most
844 inconvenient, and it crushed my ego. Sorry, I give up.
845 Should you want to give it a try, there is
846 /export/home/johnh/gentoo/stage3.log
847
848
849 Digging further, I can see the configure trying to find res_query in
850 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
851 -config-0.29.1-abi_x86_32.x86/glib/config.log
852
853 The relevant section is
854
855 configure:23145: checking for res_query
856 configure:23164: i386-pc-solaris2.11-gcc -o conftest -O2 -pipe
857 -I/export/home/johnh/gentoo/usr/include -DENABLE_NLS
858 -L/export/home/johnh/gentoo/usr/lib -L/export/home/johnh/gentoo/usr/lib
859 -lintl conftest.c >&5
860 /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/ccg
861 naGcB.o: In function `main':
862 conftest.c:(.text.startup+0x1f): undefined reference to `res_query'
863 collect2: error: ld returned 1 exit status
864
865 configure:23187: i386-pc-solaris2.11-gcc -o conftest -O2 -pipe
866 -I/export/home/johnh/gentoo/usr/include -DENABLE_NLS
867 -L/export/home/johnh/gentoo/usr/lib -L/export/home/johnh/gentoo/usr/lib
868 -lintl conftest.c -lresolv >&5
869 /lib/libelf.so.1: undefined reference to `inflate@SUNW_1.1'
870 /lib/libelf.so.1: undefined reference to `deflateEnd@SUNW_1.1'
871 /lib/libelf.so.1: undefined reference to `inflateInit_@SUNW_1.1'
872 /lib/libelf.so.1: undefined reference to `deflateInit_@SUNW_1.1'
873 /lib/libelf.so.1: undefined reference to `deflateReset@SUNW_1.1'
874 /lib/libelf.so.1: undefined reference to `inflateReset@SUNW_1.1'
875 /lib/libelf.so.1: undefined reference to `inflateEnd@SUNW_1.1'
876 /lib/libelf.so.1: undefined reference to `deflate@SUNW_1.1'
877 collect2: error: ld returned 1 exit status
878
879 So Im not a programmer, and I know little about debugging build issues, but
880 I think those undefined references refer to zlib. Zlib is installed at
881
882 johnh@sprawl:~$ find . -name "libz.so*"
883 ./gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8/libz.so
884 ./gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8/libz.so.1
885 ./gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8/libz.so.1.2.8
886 ./gentoo/tmp/usr/lib/libz.so.1
887 ./gentoo/tmp/usr/lib/libz.so
888 ./gentoo/tmp/usr/lib/libz.so.1.2.8
889 ./gentoo/usr/lib/libz.so
890 ./gentoo/usr/lib/libz.so.1
891 ./gentoo/usr/lib/libz.so.1.2.11
892
893 And also the system zlib is in /lib/libz.so.1. I was considering the
894 hardcoded symbol versions it was reporting in /lib/libelf.so.1. GNU LD is
895 never going to generate versioned symbols, so they will never link. If I
896 fool around and tell ld to use /lib/libz.so.1 it does actually link.
897
898 I'm properly stuck. I've been trying to get passed this point for a week
899 now. I hope that someone out there has seen this failure before and can help
900
901 Regards
902
903 John Helliwell

Replies

Subject Author
Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 Fabian Groffen <grobian@g.o>