Subject: pkg/31109: pkgsrc: compiling problem with gmake on SPARC32
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <fish.djc@laposte.net>
List: pkgsrc-bugs
Date: 08/31/2005 12:23:00
>Number:         31109
>Category:       pkg
>Synopsis:       pkgsrc: compiling problem with gmake on SPARC32
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 31 12:23:00 +0000 2005
>Originator:     David
>Release:        3.0_BETA (200508120000Z)
>Organization:
>Environment:
NetBSD beryllium.atom 3.0_BETA NetBSD 3.0_BETA (GENERIC) #0: Sun Aug 14 02:19:44 UTC 2005 jmc@faith.netbsd.org:/home/builds/ab/netbsd-3/sparc/200508120000Z-obj /home/builds.ab/netbsd-3/src/sys/arch/sparc/compile/GENERIC sparc
>Description:
I am using NetBSD 3.0_BETA on a SPARCstation 4 (microSPARC-II 110 MHz).
I made a CD-Rom from August 12th NetBSD-daily sparc binaries.
(ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-3/200508120000Z/sparc/)

I am using the current pkgsrc.
I downloaded pkgsrc from the NetBSD CVS the August 30th.

I tried to compile gmake, but it cannot be compiled and report some errors.

I tried two time with full NetBSD 3.0_BETA reinstallation and pkgsrc download the August 28th and 30th. The problem is exactly the same.

That is the full log:
----------
# cd /usr/pkgsrc/devel/gmake/
# make
===> *** No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
=> Checksum SHA1 OK for make-3.80.tar.gz.
=> Checksum RMD160 OK for make-3.80.tar.gz.
===> Extracting for gmake-3.80nb4
==========================================================================
The following variables will affect the build process of this package,
gmake-3.80nb4.  Their current value is shown below:

        * GMAKE_LOCALE = yes
        * GNU_PROGRAM_PREFIX = g

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
===> Patching for gmake-3.80nb4
===> Applying pkgsrc patches for gmake-3.80nb4
===> Overriding tools for gmake-3.80nb4
===> Creating toolchain wrappers for gmake-3.80nb4
===> Configuring for gmake-3.80nb4
=> Fixing locale directory references.
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 for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... /usr/bin/awk
checking whether make sets ${MAKE}... yes
checking for sparc--netbsdelf-strip... no
checking for strip... strip
checking whether make sets ${MAKE}... (cached) yes
checking for sparc--netbsdelf-gcc... cc
checking for C compiler default output... 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... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking for sparc--netbsdelf-ranlib... no
checking for ranlib... ranlib
checking how to run the C preprocessor... cc -E
checking for ar... ar
checking for perl... perl
checking build system type... sparc-unknown-netbsdelf3.0.
checking host system type... sparc--netbsdelf
checking for egrep... grep -E
checking for AIX... no
checking for strerror in -lcposix... no
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... no
checking for msgmerge... no
checking for ld used by GCC... /usr/pkgsrc/devel/gmake/work/.wrapper/bin/ld
checking if the linker (/usr/pkgsrc/devel/gmake/work/.wrapper/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking for GNU gettext in libintl... (cached) yes
checking how to link with libintl... /usr/lib/libintl.so
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for library containing getpwnam... none required
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether stat file-mode macros are broken... no
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking whether cc understands -c and -o together... yes
checking for cc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for uintmax_t... yes
checking for nanoseconds field of struct stat.st_mtim... no
checking whether to use high resolution file timestamps... no
checking for standard gettimeofday... yes
checking for memcpy... yes
checking for memmove... yes
checking for strchr... yes
checking for strdup... yes
checking for mkstemp... yes
checking for mktemp... yes
checking for fdopen... yes
checking for bsd_signal... no
checking for dup2... yes
checking for getcwd... yes
checking for sigsetmask... yes
checking for sigaction... yes
checking for getgroups... yes
checking for seteuid... yes
checking for setegid... yes
checking for setlinebuf... yes
checking for setreuid... yes
checking for setregid... yes
checking for setvbuf... yes
checking for pipe... yes
checking for strerror... yes
checking for strsignal... yes
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking for working strcoll... yes
checking for working alloca.h... no
checking for alloca... yes
checking for unistd.h... (cached) 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... no
checking whether closedir returns void... no
checking for getloadavg... yes
checking for pstat_getdynamic... no
checking for kstat_open in -lkstat... no
checking for getloadavg... yes
checking whether getloadavg requires setgid... no
checking for sys_siglist declaration in signal.h or unistd.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for waitpid... yes
checking for wait3... yes
checking for union wait... no
checking for SA_RESTART... yes
checking for location of SCCS get command... get
checking if system libc has GNU glob... no; using local copy
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating glob/Makefile
config.status: creating po/Makefile.in
config.status: creating config/Makefile
config.status: creating doc/Makefile
config.status: creating build.sh
config.status: creating config.h
config.status: executing depfiles commands
[1]   Bus error (core dumped) (dirname "${mf}"...
[1]   Bus error (core dumped) sed -n -e "/^DEP...
[1]   Bus error (core dumped) (dirname "${mf}"...
[1]   Bus error (core dumped) sed -n -e "/^DEP...
[1]   Bus error (core dumped) (dirname "${mf}"...
[1]   Bus error (core dumped) (dirname "${mf}"...
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
===> Building for gmake-3.80nb4
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 368: Could not find .deps/alloca.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 369: Could not find .deps/getloadavg.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 370: Could not find ./.deps/ar.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 371: Could not find ./.deps/arscan.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 372: Could not find ./.deps/commands.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 373: Could not find ./.deps/default.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 374: Could not find ./.deps/dir.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 375: Could not find ./.deps/expand.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 376: Could not find ./.deps/file.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 377: Could not find ./.deps/function.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 378: Could not find ./.deps/getopt.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 379: Could not find ./.deps/getopt1.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 380: Could not find ./.deps/hash.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 381: Could not find ./.deps/implicit.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 382: Could not find ./.deps/job.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 383: Could not find ./.deps/loadavg-loadavg.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 384: Could not find ./.deps/main.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 385: Could not find ./.deps/misc.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 386: Could not find ./.deps/read.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 387: Could not find ./.deps/remake.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 388: Could not find ./.deps/remote-cstms.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 389: Could not find ./.deps/remote-stub.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 390: Could not find ./.deps/rule.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 391: Could not find ./.deps/signame.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 392: Could not find ./.deps/variable.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 393: Could not find ./.deps/version.Po
make: "/usr/pkgsrc/devel/gmake/work/make-3.80/Makefile" line 394: Could not find ./.deps/vpath.Po
make: Fatal errors encountered -- cannot continue

make: stopped in /usr/pkgsrc/devel/gmake/work/make-3.80
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/gmake
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/devel/gmake/work/.work.log
===> 
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/gmake
# 
----------

>How-To-Repeat:
Install current NetBSD 3.0_BETA on a SPARC32 computer.
Download current pkgsrc from the NetBSD CVS.

Then:
# cd /usr/pkgsrc/devel/gmake/
# make

>Fix: