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)
On Thu, 8 Jun 2023 at 01:35, Molly A. McCollum <mamccollum06%gmail.com@localhost> wrote:
>
> 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).
Re core dumps, does "ulimit -c" report anything useful - or does the
behaviour change after "ulimit -c unlimited"
I probably don't have any useful suggestions, but continuing thoughts
below in case they are of interest...
Warnings of the form
"main.c:44: warning: alignment of 'Options' is greater than maximum
object file alignment"
seem a little confusing, as that example is for
pkgsrc/pkgtools/pkg_install/files/info/main.c:
static const char Options[] = ".aBbcDde:E:fFhIiK:kLl:mNnpQ:qrRsSuvVX";
and I don't see how a simple String can have any large alignment requirement.
Did the locally compiled bash work fine?
As a random thought: is pkgsrc definitely picking up all of gcc 4.2
only, and not possibly the gcc 4.2 compiler and 3.3 linker?
The gcc 4.6 release notes mention:
"The following ports for individual systems on particular
architectures have been obsoleted: Interix (i[34567]86-*-interix3*)"
So it's likely that it was supported to at least 4.5.
If I were inclined to poke more I might try downloading the gcc 4.5
source and see if it would configure and build.
David
Home |
Main Index |
Thread Index |
Old Index