Repository navigation
bootstrapping on mac m1 #93
Copy link
Copy link
Closed
Description
im trying to bootstrap (after installing the binary https://pkgsrc.joyent.com/install-on-osx/, i wanted the whole source tree to build stuff).
Running : sudo ./bootstrap --prefix /opt/pkgsrc --prefer-pkgsrc yes --make-jobs 4 will end like this (exchanged the actual path with $HOME so its like /Users/user/...):
--- main.o ---
cc -isystem /usr/include -DHAVE_CONFIG_H -I$HOME/pkgsrc/bootstrap/work/libnbcompat -I$HOME/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O2 -c main.c
--- perform.o ---
cc -isystem /usr/include -DHAVE_CONFIG_H -I$HOME/pkgsrc/bootstrap/work/libnbcompat -I$HOME/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O2 -c perform.c
--- show.o ---
cc -isystem /usr/include -DHAVE_CONFIG_H -I$HOME/pkgsrc/bootstrap/work/libnbcompat -I$HOME/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -I../lib -DBOOTSTRAP -g -O2 -c show.c
--- pkg_info ---
cc -isystem /usr/include -L$HOME/pkgsrc/bootstrap/work/libnbcompat -L../lib -o pkg_info main.o perform.o show.o -linstall -lnbcompat
===> running: /bin/sh $HOME/pkgsrc/bootstrap/work/bin/install-sh -c -o root -g wheel -m 755 $HOME/pkgsrc/bootstrap/work/pkg_install/add/pkg_add $HOME/pkgsrc/bootstrap/work/sbin/pkg_add
===> running: /bin/sh $HOME/pkgsrc/bootstrap/work/bin/install-sh -c -o root -g wheel -m 755 $HOME/pkgsrc/bootstrap/work/pkg_install/admin/pkg_admin $HOME/pkgsrc/bootstrap/work/sbin/pkg_admin
===> running: /bin/sh $HOME/pkgsrc/bootstrap/work/bin/install-sh -c -o root -g wheel -m 755 $HOME/pkgsrc/bootstrap/work/pkg_install/create/pkg_create $HOME/pkgsrc/bootstrap/work/sbin/pkg_create
===> running: /bin/sh $HOME/pkgsrc/bootstrap/work/bin/install-sh -c -o root -g wheel -m 755 $HOME/pkgsrc/bootstrap/work/pkg_install/info/pkg_info $HOME/pkgsrc/bootstrap/work/sbin/pkg_info
===> running: (cd $HOME/pkgsrc/pkgtools/cwrappers && $HOME/pkgsrc/bootstrap/work/bin/bmake MAKE_JOBS=4 PKG_COMPRESSION=none PKGSRC_KEEP_BIN_PKGS=no MAKECONF=$HOME/pkgsrc/bootstrap/work/mk.conf install)
ERROR: This package has set PKG_FAIL_REASON:
ERROR: No suitable Xcode SDK or Command Line Tools installed.
*** Error code 1
Stop.
bmake: stopped in $HOME/pkgsrc/pkgtools/cwrappers
===> exited with status 1
pkgsrc/bootstrap} uname -a
Darwin HOST 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:20 PDT 2021; root:xnu-7195.141.6~3/RELEASE_ARM64_T8101 arm64
pkgsrc/bootstrap} xcode-select -v
xcode-select version 2384.
pkgsrc/bootstrap} xcodebuild -showsdks
macOS SDKs:
macOS 12.0 -sdk macosx12.0
AFAIK the latest Xcode Beta should be enough. Do you need to run Beta macOS aswell?
Have not really dug into things thought i might ask to see if someone else had run into this problem?
thanks in advance
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
jperkin commentedon Sep 15, 2021
We don't currently support ad-hoc installations of XCode, we look for specific SDKs depending on the OS. The code that does that is here:
https://github.com/NetBSD/pkgsrc/blob/trunk/mk/platform/Darwin.mk#L100-L130
What you can do is set your own
OSX_SDK_PATHinmk.confpointing at wherever the actual SDK is installed on your system.smurfd commentedon Sep 15, 2021
Thanks for super quick answer!
yes that worked and also this :
Update to ldns version 1.8.0.
yq: update to 2.13.0.
restish: update to 0.13.1.
Update to 0.24.3
py-googleapis-common-protos: update to 1.56.4.
felinks: catch up with upstream repo rename. Update to 0.15.1
Update to 4.2.1. From the changelog:
(devel/R-pkgload) Updated 1.2.4 to 1.3.2
boost: Update to 1.81.0
textproc/hs-commonmark-extensions: Update to 0.2.3.3
net/sniffnet: update to 1.1.2
py-pebble: update to 5.0.3.
174 remaining items
print/ruby-rbpdf: update to 1.21.4
devel/ruby-io-console: update to 0.8.1
devel/serie: update to 0.5.0
graphics/ruby-color: update to 2.1.2
www/ruby-cgi: update to 0.5.1
p5-Clone: update to 0.50.
(devel/R-bit64) Updated 4.6.0.1 to 4.8.0
net/xfr: update to 0.9.18
devel/php-msgpack: update to 3.0.1
Update to 4.43
net/xfr: update to 0.9.25
Update to 1.31
Update to 20260402.0
misc/rozi: update to 0.0.29
devel/libctl: Update to 4.7.1