Opened 21 months ago

Last modified 21 months ago

#67014 new defect

gcl @2.6.12: cannot trap sbrk

Reported by: avstoddard (Control) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: arm64 Cc:
Port: gcl

Description

gcl @2.6.12_3 (lang)

GNU Common Lisp

macOS Ventura 13.2.1 on Apple M1 Max

Port owner is currently listed as none so I have left it blank. Log file is attached.

uname -a
Darwin redacted.local 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64

sudo port clean gcl
--->  Cleaning gcl

sudo port install gcl
--->  Computing dependencies for gcl
--->  Fetching archive for gcl
--->  Attempting to fetch gcl-2.6.12_3.darwin_22.arm64.tbz2 from https://packages.macports.org/gcl
--->  Attempting to fetch gcl-2.6.12_3.darwin_22.arm64.tbz2 from https://kmq.jp.packages.macports.org/gcl
--->  Attempting to fetch gcl-2.6.12_3.darwin_22.arm64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/gcl
--->  Fetching distfiles for gcl
--->  Verifying checksums for gcl
--->  Extracting gcl
--->  Applying patches to gcl
--->  Configuring gcl
Error: Failed to configure gcl: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcl/gcl/work/gcl/config.log
Error: Failed to configure gcl: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcl/gcl/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gcl failed

Attachments (2)

main.log (30.6 KB) - added by avstoddard (Control) 21 months ago.
main.log
config.log (41.0 KB) - added by avstoddard (Control) 21 months ago.
config.log

Download all attachments as: .zip

Change History (7)

Changed 21 months ago by avstoddard (Control)

Attachment: main.log added

main.log

comment:1 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: arm64 added
Summary: gcl fails to installgcl @2.6.12: cannot trap sbrk

Could you attach your config.log as well? Your main.log says:

:info:configure checking for sbrk... yes

and:

:info:configure checking that sbrk is (now) non-random... cannot trap sbrk

On my Intel Mac, it says:

:info:configure checking for sbrk... yes
:info:configure emulating sbrk for mac

The code in configure.in disables the use of sbrk on Intel macOS. The version of gcl we have in MacPorts predates the existence of Apple Silicon Macs. Maybe the use of sbrk should be disabled on Apple Silicon Macs too.

I did not see any changes to this in configure.in in the latest version of the software but I will still try updating the port to the latest version.

Changed 21 months ago by avstoddard (Control)

Attachment: config.log added

config.log

comment:2 Changed 21 months ago by avstoddard (Control)

Hi Ryan, config is now attached. Let me know if you would like anything else. Regards

comment:3 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

Ok thanks. I was just curious whether sbrk existed at all on Apple Silicon Macs. I noticed that on my Intel Mac the log said sbrk was deprecated, and we've seen some other long-deprecated things finally removed on Apple Silicon. But that doesn't appear to be the case here. Rather, the test is just failing because it is trying to use sbrk without including the header where it's declared:

configure:6830: checking that sbrk is (now) non-random
configure:6849: /usr/bin/clang -o conftest -pipe -Os -std=gnu89 -fno-pie -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64  -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -L/opt/local/lib -Wl,-headerpad_max_install_names -fno-pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 conftest.c  >&5
conftest.c:44:19: error: implicit declaration of function 'sbrk' [-Werror,-Wimplicit-function-declaration]
                        fprintf(f,"%u",sbrk(0));
                                       ^
1 error generated.

comment:4 in reply to:  1 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

I will still try updating the port to the latest version.

I'm not able to build 2.6.13 or 2.6.14 at all and filed this bug report about it: https://savannah.gnu.org/bugs/index.php?63844

comment:5 in reply to:  1 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

:info:configure checking that sbrk is (now) non-random... cannot trap sbrk

I've filed a bug report for this: https://savannah.gnu.org/bugs/index.php?63875

Note: See TracTickets for help on using tickets.