Re: bootstrap.sh fails on macos

Rolando Abarca via Chicken-users <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <CADnrc4AMaRd4Fm+5r31K2p7j9mj4mbPjGpLkCwsnr2gWKbo+0g@mail.gmail.com>
Just tried the same steps on my macbook (arm64) with a fresh clone without
issues, so maybe it's something only happening macos x86_64?

$ sw_vers
ProductName:            macOS
ProductVersion:         15.6.1
BuildVersion:           24G90
$ gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin24.6.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ sh scripts/bootstrap.sh
...
rm -f chicken-config.h chicken-defaults.h chicken-install.rc
chicken-uninstall.rc
touch config.make

Now, build chicken by passing "--chicken ./chicken-boot" to "configure",
in addition to PREFIX, PLATFORM, and other parameters.

$ ./configure --chicken ./chicken-boot
detecting platform ... macosx
installation prefix: /usr/local
bootstrap chicken: ./chicken-boot
testing C compiler (gcc) ... works

now run make to build the system
$ make -j$(nproc)
echo '#define C_CHICKEN_PROGRAM "chicken"' >> chicken-defaults.h.tmp
...
gcc  -L. csc.o  -o csc -lchicken  -lm
gcc  -L. chicken-install.o  -o chicken-install -lchicken  -lm
$ ./csi
CHICKEN
(c) 2008-2022, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 6.0.0 (rev 96e023e7)
macosx-unix-clang-arm64 [ 64bit dload ptables ]

Type ,? for help.
#;1>

Rolando Abarca
LinkedIn <https://www.linkedin.com/in/rolandoabarca/> - Book some time with
me <https://calendly.com/rolandoam/30min>


On Thu, Oct 23, 2025 at 9:36 AM Ben via Chicken-users <
[email protected]> wrote:

> hi
> This is my error report. Any idea whats the probleme here?
> Thanks Ben
>
> $ sw_vers
> ProductName:            macOS
> ProductVersion:         15.6.1
>
> $ gcc --version
> Apple clang version 17.0.0 (clang-1700.0.13.5)
> Target: x86_64-apple-darwin24.6.0
> Thread model: posix
> InstalledDir:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
> git clone https://code.call-cc.org/git/chicken-core.git
> # ...
>
> $ sh scripts/bootstrap.ch
> # Errors
> # ....
> gcc -m64 -L. chicken.o batch-driver.o core.o optimizer.o lfa2.o
> compiler-syntax.o scrutinizer.o support.o c-platform.o c-backend.o
> user-pass.o -o chicken \
>           -lchicken  -lm
> install_name_tool -change libchicken.dylib
> /Users/ben/Builds/chicken-crunch/chicken-core/boot/chicken-6.0.0pre1/libchicken.dylib
> chicken
> error:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool:
> changing install names or rpaths can't be redone for: chicken (for
> architecture x86_64) because larger updated load commands do not fit (the
> program must be relinked, and you may need to use -headerpad or
> -headerpad_max_install_names)
> make: *** [chicken] Error 1
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.