NetBSD / pkgsrc

Automatic conversion of the NetBSD pkgsrc CVS module, use with care
https://www.pkgsrc.org
308 stars 164 forks source link

anyplans on regaining support for freebsd and fixing bootstrap for it #94

Closed justfly1111 closed 3 years ago

justfly1111 commented 3 years ago

anyplans on regaining support for freebsd and fixing bootstrap for it

bsiegert commented 3 years ago

Can you be any more specific? I just ran a bootstrap on FreeBSD 12, and it completed just fine. FreeBSD is supposed to be a supported target OS.

alarixnia commented 3 years ago

I was able to bootstrap on FreeBSD 13 with clang yesterday. I think this can be closed.

justfly1111 commented 3 years ago

awesome im going to try and bootstrap it now on current there was a notification in the bootstrap readme id say for about a year saying it was broken on freebsd thanks for letting me know much appreciated

justfly1111 commented 3 years ago

bootstrap is a negative on  working on 14.0-current  due to circular dependency of gcc6 and cwrappers  openning new issue for that with the output 

gcc -DHAVE_CONFIG_H -I/usr/pkgsrc/bootstrap/work/libnbcompat -I/usr/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O2 -c show.c
gcc -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 root -g wheel -m 755 /usr/pkgsrc/bootstrap/work/pkg_install/add/pkg_add /usr/pkgsrc/bootstrap/work/sbin/pkg_add
\===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o root -g wheel -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 root -g wheel -m 755 /usr/pkgsrc/bootstrap/work/pkg_install/create/pkg_create /usr/pkgsrc/bootstrap/work/sbin/pkg_create
\===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o root -g wheel -m 755 /usr/pkgsrc/bootstrap/work/pkg_install/info/pkg_info /usr/pkgsrc/bootstrap/work/sbin/pkg_info
\===> running: (cd /usr/pkgsrc/pkgtools/cwrappers && /usr/pkgsrc/bootstrap/work/bin/bmake  MAKE_JOBS=1 PKG_COMPRESSION=none PKGSRC_KEEP_BIN_PKGS=no MAKECONF=/usr/pkgsrc/bootstrap/work/mk.conf install)
\===> Installing dependencies for cwrappers-20180325
\=> Build dependency gcc6>=6.1: NOT found
\=> Verifying reinstall for ../../lang/gcc6
\=> Bootstrap dependency digest>=20211023: NOT found
\=> Verifying reinstall for ../../pkgtools/digest
\===> Installing dependencies for digest-20211023
\=> Build dependency cwrappers>=20150314: NOT found
\=> Verifying reinstall for ../../pkgtools/cwrappers
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected
*** Error code 1

Stop.
bmake[3]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
bmake[2]: stopped in /usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/lang/gcc6
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/cwrappers
\===> exited with status 1
aborted.

justfly1111 commented 3 years ago

i tried it it bootstraps with clang but gcc fails due to circular dependancy if anyone wants to fix that but it does compile with clang just not gcc

justfly1111 commented 3 years ago

works clang fails with gcc

alarixnia commented 3 years ago

If you want to bootstrap with gcc you need to provide some copy of GCC outside pkgsrc and point pkgsrc to it.