pkgsrc-Users archive

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

bootstrapping with studio and ABI=64



Hi guys,

I'm having issues bootstrapping pkgsrc with Studio and ABI=64 on SmartOS, fails 
in nbsed. I don't remember what happened last time I tried this, but it's a 
little odd at the least. See log below. The issue seems to be that the last 
link of objects fails to include the nbcompat objects for some reason.

cc -O -L/tmp/test/wrk/textproc/nbsed/work/libnbcompat -Wl,-R/opt/test/lib -o 
sed compile.o main.o misc.o process.o -lnbcompat
Undefined                       first referenced
 symbol                             in file
fgetln                              main.o
ld: fatal: symbol referencing errors. No output written to sed

Somehow the archive's not good enough (though when I extract it, the objects 
look OK to me)? If I drop the -lnbcompat bit (changing it to 
'../libnbcompat/libnbcompat.a' doesn't help btw), and specify the libnbcompat 
.o objects manually, everything's fine.

The odd thing is that this only fails during bootstrap; if I change set the 
compiler to sunpro and ABI=64 etc. on a working bootstrap, I *can* build nbsed 
just fine.

Thoughts?

-F

===> running: (cd /opt/pkgsrc/textproc/nbsed && /tmp/test/bin/bmake  
USE_DESTDIR=no -DPKG_PRESERVE MAKECONF=/tmp/test/mk.conf install)
===> Skipping vulnerability checks.
WARNING: No /opt/test/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/tmp/test/sbin/pkg_admin -K /opt/test/var/db/pkg 
fetch-pkg-vulnerabilities'.
===> Installing dependencies for nbsed-20040821nb1
===> Overriding tools for nbsed-20040821nb1
===> Extracting for nbsed-20040821nb1
===> Patching for nbsed-20040821nb1
===> Creating toolchain wrappers for nbsed-20040821nb1
===> Configuring for nbsed-20040821nb1
=> Configuring and building libnbcompat
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-pc-solaris2.11
checking host system type... i386-sun-solaris2
checking whether make sets $(MAKE)... yes
checking for i386-sun-solaris2-gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for a BSD-compatible install... 
/tmp/test/wrk/textproc/nbsed/work/.tools/bin/install -c
checking whether ln -s works... yes
checking for i386-sun-solaris2-ranlib... no
checking for ranlib... ranlib
checking for gawk... /tmp/test/bin/nawk
checking for ar... ar
checking for fparseln in -lutil... no
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... (cached) /usr/xpg4/bin/grep
checking for egrep... (cached) /usr/xpg4/bin/grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking fts.h usability... no
checking fts.h presence... no
checking for fts.h... no
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking paths.h usability... no
checking paths.h presence... no
checking for paths.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/byteorder.h usability... yes
checking sys/byteorder.h presence... yes
checking for sys/byteorder.h... yes
checking sys/cdefs.h usability... no
checking sys/cdefs.h presence... no
checking for sys/cdefs.h... no
checking sys/dir.h usability... no
checking sys/dir.h presence... no
checking for sys/dir.h... no
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/mkdev.h usability... yes
checking sys/mkdev.h presence... yes
checking for sys/mkdev.h... yes
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/ttycom.h usability... no
checking sys/ttycom.h presence... no
checking for sys/ttycom.h... no
checking for sys/types.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking tzfile.h usability... yes
checking tzfile.h presence... yes
checking for tzfile.h... yes
checking for unistd.h... (cached) yes
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for sys/mount.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking sys/queue.h usability... yes
checking sys/queue.h presence... yes
checking for sys/queue.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for regexec... yes
checking md5.h usability... yes
checking md5.h presence... yes
checking for md5.h... yes
checking for MD5Init in md5.h... yes
checking for md5.h... (cached) yes
checking rmd160.h usability... no
checking rmd160.h presence... no
checking for rmd160.h... no
checking sha1.h usability... yes
checking sha1.h presence... yes
checking for sha1.h... yes
checking sha2.h usability... yes
checking sha2.h presence... yes
checking for sha2.h... yes
checking for MD5File... no
checking for RMD160File... no
checking for SHA1File... no
checking for SHA512_File... no
checking for issetugid... yes
checking whether optarg is declared... yes
checking whether optind is declared... yes
checking whether optreset is declared... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for struct option... yes
checking vis.h usability... no
checking vis.h presence... no
checking for vis.h... no
checking for __attribute__... yes
checking for size_t... yes
checking for uintptr_t... yes
checking for int8_t... no
checking for int16_t... no
checking for int32_t... no
checking for int64_t... no
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for long long... yes
checking for long double... yes
checking for fsid_t... yes
checking whether byte ordering is bigendian... no
checking size of off_t... 8
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for vprintf... yes
checking for _doprnt... yes
checking whether snprintf is declared... yes
checking whether vasprintf is declared... yes
checking for asprintf... yes
checking for err... yes
checking for fgetln... no
checking for fnmatch... yes
checking for fparseln... no
checking for getenv... yes
checking for isblank... yes
checking for lchflags... no
checking for lchmod... no
checking for lchown... yes
checking for lutimes... no
checking for mkdtemp... yes
checking for mkstemp... yes
checking for setenv... yes
checking for setgroupent... no
checking for setpassent... no
checking for setprogname... yes
checking for shquote... no
checking for snprintf... yes
checking for statvfs... yes
checking for strdup... yes
checking for strerror... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strmode... no
checking for strsep... yes
checking for strtoll... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utimes... yes
checking for warn... yes
checking for library containing socket... -lsocket
checking for gethostbyname in -lnsl... yes
checking for socklen_t... yes
checking for struct addrinfo... yes
checking for struct in6_addr... yes
checking for struct sockaddr_in6... yes
checking for struct sockaddr_storage... yes
checking for getnameinfo... yes
checking for gai_strerror... yes
checking for getaddrinfo... yes
checking for getenv... (cached) yes
checking for setenv... (cached) yes
checking for unsetenv... (cached) yes
checking for mkdtemp... (cached) yes
checking for mkstemp... (cached) yes
checking for bcopy... yes
checking for bzero... yes
checking for memset... yes
checking for memcpy... yes
checking for setlocale... yes
checking for getmode... no
checking for setmode... no
checking whether endgrent is declared... no
checking whether endpwent is declared... no
checking for gid_from_group... no
checking for group_from_gid... no
checking for pwcache_groupdb... no
checking for pwcache_userdb... no
checking for uid_from_user... no
checking for user_from_uid... no
checking for fts_open... no
checking for timegm... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for poll.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for poll... yes
checking if poll() is implemented natively... yes
checking for getpassphrase... yes
checking for getpgrp... yes
checking for memmove... yes
checking for select... yes
checking for getpgrp... (cached) yes
checking whether getpgrp requires zero arguments... yes
checking for struct statfs.f_flags... no
checking for struct statfs.f_fsize... no
checking for struct statfs.f_iosize... no
checking for struct dirent.d_namlen... no
checking for DIR.dd_fd... yes
checking for dirfd... yes
checking *printf() support for %lld... yes
checking for strtoll... (cached) yes
checking if vsnprintf is standards compliant... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbcompat/config.h
/tmp/test/bin/nawk -f nbcompat.awk nbcompat/config.h > nbcompat/nbconfig.h
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c glob.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c md5c.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c md5hl.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c rmd160.c
"rmd160.c", line 28: warning:  attribute "__unused__" is unknown, ignored
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c rmd160hl.c
"rmd160hl.c", line 21: warning:  attribute "__unused__" is unknown, ignored
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c sha1.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c sha1hl.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c sha2.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c sha2hl.c
"sha2hl.c", line 92: warning: argument #2 is incompatible with prototype:
        prototype: pointer to unsigned char : 
"/tmp/test/wrk/textproc/nbsed/work/libnbcompat/nbcompat/sha2.h", line 102
        argument : pointer to char
"sha2hl.c", line 119: warning: return value type mismatch
"sha2hl.c", line 166: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"sha2hl.c", line 179: warning: return value type mismatch
"sha2hl.c", line 226: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"sha2hl.c", line 239: warning: return value type mismatch
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c vis.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c unvis.c
"unvis.c", line 92: warning: implicit function declaration: __nbcompat_unvis13
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c fgetln.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c fparseln.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c lchflags.c
"lchflags.c", line 49: warning: implicit function declaration: chflags
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c lchmod.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c lutimes.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c setgroupent.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c setpassent.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c shquote.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c strmode.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c setmode.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c pwcache.c
cc -DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -I. -I.  
-O -DHAVE_CONFIG_H -c fts.c
ar cr libnbcompat.a glob.o md5c.o md5hl.o rmd160.o rmd160hl.o sha1.o sha1hl.o 
sha2.o sha2hl.o vis.o unvis.o fgetln.o fparseln.o lchflags.o lchmod.o lutimes.o 
setgroupent.o setpassent.o shquote.o strmode.o setmode.o pwcache.o fts.o
ranlib libnbcompat.a
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
checking build system type... i386-sun-solaris2
checking host system type... i386-sun-solaris2
checking whether make sets $(MAKE)... yes
checking for gawk... /tmp/test/bin/nawk
checking for i386-sun-solaris2-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for a BSD-compatible install... /tmp/test/bin/install-sh -c -o root -g 
root
checking whether ln -s works... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking sys/cdefs.h usability... no
checking sys/cdefs.h presence... no
checking for sys/cdefs.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for regcomp... yes
checking for regexec... yes
checking for memcpy... yes
checking for working REG_STARTEND... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
===> Building for nbsed-20040821nb1
cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"i386-sun-solaris2\" -DVERSION=\"20040821\" 
-DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -O -c 
compile.c -o compile.o
"compile.c", line 81: warning:  attribute "__unused__" is unknown, ignored
"extern.h", line 93: warning:  attribute "__format__" is unknown, ignored
cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"i386-sun-solaris2\" -DVERSION=\"20040821\" 
-DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -O -c 
main.c -o main.o
"main.c", line 78: warning:  attribute "__unused__" is unknown, ignored
"main.c", line 86: warning:  attribute "__unused__" is unknown, ignored
"extern.h", line 93: warning:  attribute "__format__" is unknown, ignored
cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"i386-sun-solaris2\" -DVERSION=\"20040821\" 
-DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -O -c 
misc.c -o misc.o
"misc.c", line 81: warning:  attribute "__unused__" is unknown, ignored
"extern.h", line 93: warning:  attribute "__format__" is unknown, ignored
cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"i386-sun-solaris2\" -DVERSION=\"20040821\" 
-DHAVE_NBCOMPAT_H=1 -I/tmp/test/wrk/textproc/nbsed/work/libnbcompat -O -c 
process.c -o process.o
"process.c", line 81: warning:  attribute "__unused__" is unknown, ignored
"extern.h", line 93: warning:  attribute "__format__" is unknown, ignored
cc -O -L/tmp/test/wrk/textproc/nbsed/work/libnbcompat -Wl,-R/opt/test/lib -o 
sed compile.o main.o misc.o process.o -lnbcompat
Undefined                       first referenced
 symbol                             in file
fgetln                              main.o
ld: fatal: symbol referencing errors. No output written to sed
*** Error code 2

Stop.
bmake: stopped in /tmp/test/wrk/textproc/nbsed/work/nbsed-20040821
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/textproc/nbsed
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/textproc/nbsed


Home | Main Index | Thread Index | Old Index