pkgsrc-Users archive

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

Re: Unable to bootstrap on Interix (NT 6.1)



Hey there, apologies for my late response. I figured out there was a GCC 4.2 binary included alongside the GCC 3.3 one, but not in the $PATH. Using the GCC 4.2 binary I was successfully able to compile some parts of the latest BASH src (5.2.15) although there were some issues with some files. I used the GCC 4.2 to compile pkgsrc instead and this happened near the end:

--- (snip) ---

gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I/usr/pkgsrc/bootstrap/work/libnbcompat -I/us r/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O
2 -c perform.c
gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I/usr/pkgsrc/bootstrap/work/libnbcompat -I/us r/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O
2 -c pl.c
gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I/usr/pkgsrc/bootstrap/work/libnbcompat -I/us r/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O
2 -c util.c
gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I/usr/pkgsrc/bootstrap/work/libnbcompat -I/us r/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O
2 -c build.c
gcc -D_ALL_SOURCE -L/usr/pkgsrc/bootstrap/work/libnbcompat -L../lib -o pkg_creat e main.o perform.o pl.o util.o build.o -linstall /usr/pkgsrc/bootstrap/work/liba
rchive/.libs/libarchive.a   -lnbcompat
gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I/usr/pkgsrc/bootstrap/work/libnbcompat -I/us r/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O
2 -c main.c
main.c:44: warning: alignment of 'Options' is greater than maximum object file a
lignment.  Using 16
main.c:44: warning: alignment of 'Options' is greater than maximum object file a
lignment.  Using 16
gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I/usr/pkgsrc/bootstrap/work/libnbcompat -I/us r/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O
2 -c perform.c
perform.c:112: warning: alignment of 'pkg_meta_descriptors' is greater than maxi
mum object file alignment.  Using 16
perform.c:112: warning: alignment of 'pkg_meta_descriptors' is greater than maxi
mum object file alignment.  Using 16
gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I/usr/pkgsrc/bootstrap/work/libnbcompat -I/us r/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O
2 -c show.c
show.c:332: warning: alignment of 'bi_vars' is greater than maximum object file
alignment.  Using 16
show.c:79: warning: alignment of 'showv' is greater than maximum object file ali
gnment.  Using 16
show.c:332: warning: alignment of 'bi_vars' is greater than maximum object file
alignment.  Using 16
show.c:79: warning: alignment of 'showv' is greater than maximum object file ali
gnment.  Using 16
gcc -D_ALL_SOURCE -L/usr/pkgsrc/bootstrap/work/libnbcompat -L../lib -o pkg_info
main.o perform.o show.o -linstall  -lnbcompat
===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o mam -g +Ad ministrators -m 755 /usr/pkgsrc/bootstrap/work/pkg_install/add/pkg_add /usr/pkgs
rc/bootstrap/work/sbin/pkg_add
===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o mam -g +Ad ministrators -m 755 /usr/pkgsrc/bootstrap/work/pkg_install/admin/pkg_admin /usr/
pkgsrc/bootstrap/work/sbin/pkg_admin
===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o mam -g +Ad ministrators -m 755 /usr/pkgsrc/bootstrap/work/pkg_install/create/pkg_create /us
r/pkgsrc/bootstrap/work/sbin/pkg_create
===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o mam -g +Ad ministrators -m 755 /usr/pkgsrc/bootstrap/work/pkg_install/info/pkg_info /usr/pk
gsrc/bootstrap/work/sbin/pkg_info
Memory fault (core dumped)
Memory fault (core dumped)
Memory fault (core dumped)
Memory fault (core dumped)
Memory fault (core dumped)
Memory fault (core dumped)
===> Installing packages
===> running: (cd /usr/pkgsrc/pkgtools/bootstrap-mk-files && /usr/pkgsrc/bootstr ap/work/bin/bmake  MAKE_JOBS=1 PKG_COMPRESSION=none -DPKG_PRESERVE PKGSRC_KEEP_B
IN_PKGS=no MAKECONF=/usr/pkgsrc/bootstrap/work/mk.conf install)
Memory fault (core dumped)
Memory fault (core dumped)
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Unable to satisfy dependency: gcc8>=none
ERROR: License conditions for bootstrap-mk-files-20230225 could not be evaluated

*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/bootstrap-mk-files
===> exited with status 1
aborted.

--- (snip) ---

I ran "find . | grep -i .core" and nothing printed, so I'm not sure if it's even doing any core dumps in the first place (despite it claiming so).


On 5/29/2023 9:11 AM, David Brownlee wrote:
So it looks like .../bootstrap-mk-files-20230225.tgz was created
successfully, but something (pkg_install?) is erroring when it tries
to install it.

Do you have a core file? which might help to confirm which binary is crashing.

Can you successfully compile anything else with the gcc you're using
(to confirm whether its related to gcc or pkgsrc)

Are you able to get a more recent gcc - either by downloading newer
binaries, or by using the gcc 3.3 to build a newer version?

David

On Sat, 6 May 2023 at 22:05, Molly A. McCollum <mamccollum06%gmail.com@localhost> wrote:
Hi there, I've been trying to run bootstrap on the stable branch of
pkgsrc from the tar.gz (as of May 6, 2023) on Interix/SUA for Windows 7
(NT 6.1). I have run into an issue involving compiling using the OEM GCC
from MS's website
(https://www.microsoft.com/en-us/download/confirmation.aspx?id=35512).

I tried both with the default $PATH, which has the tools such as `ar`
just act as wrappers for the Visual Studio/MSVC build tools (log
attached as "bootstrap-default-path.log"), and I also tried setting
`/opt/gcc.3.3/bin` as the first item in the PATH, which should use GNU's
binutils (log attached as "bootstrap-gcc.log").

My version numbers from `uname -a`, `uname -aH`, `gcc --version` and `ar
--version` (with /opt/gcc.3.3/bin as first dir in path) (also attached
as ver.txt):

Interix mam-PC 6.1 10.0.7063.0 genuineintel
Intel64_Family_6_Model_42_Stepping_7
Windows mam-PC 6.1 SP1 genuineintel Intel64_Family_6_Model_42_Stepping_7
gcc (GCC) 3.3
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

GNU ar 2.13.90 20021111
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.


With the GCC path, I get much farther but eventually the bootstrap
fails, saying "Memory fault (core dumped)".

Any ideas of any solutions or fixes?


Home | Main Index | Thread Index | Old Index