Opened 4 years ago

Closed 4 years ago

#61208 closed defect (fixed)

aalib: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))'

Reported by: chicagotripp (Altoine Barker) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: chicagotripp (Altoine Barker)
Port: aalib

Description

The port aalib @1.4rc5_5 fails to build with the following output:

1 warning generated.
mv -f .deps/aamktabl.Tpo .deps/aamktabl.Plo
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_aalib/aalib/work/aalib-1.4.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_aalib/aalib/work/aalib-1.4.0/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_aalib/aalib/work/aalib-1.4.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_aalib/aalib/work/aalib-1.4.0" && /usr/bin/make -j16 -w all 
Exit code: 2
Error: Failed to build aalib: command execution failed
DEBUG: Error code: CHILDSTATUS 75868 2
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$callback {*}$nice $fullcmdstring"
    invoked from within
"command_exec -callback portprogress::target_progress_callback build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_aalib/aalib/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gimp failed

Attachments (1)

aalib-main.log (47.0 KB) - added by chicagotripp (Altoine Barker) 4 years ago.
main.log file for aalib

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by chicagotripp (Altoine Barker)

Attachment: aalib-main.log added

main.log file for aalib

comment:1 Changed 4 years ago by chicagotripp (Altoine Barker)

Summary: aalib failure to build on MacOS Big Suraalib failure to build: warning: unsequenced modification and access to 'p1'

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Status: newaccepted
Summary: aalib failure to build: warning: unsequenced modification and access to 'p1'aalib: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))'

The relevant error in the log is:

:info:build aainfo.c:12:2: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
:info:build         exit(1);
:info:build         ^
:info:build aainfo.c:12:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
:info:build 1 error generated.

Implicitly declared functions are a new error in Xcode 12 that we're working our way through fixing. For Catalina you could avoid the problem by downgrading to Xcode 11 but for Big Sur you don't have that option and have to wait until it's fixed.

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In b31c031558b0c92a309bf8f52685d544ba773694/macports-ports (master):

aalib: Fix implicitly declared functions

Closes: #61208

Note: See TracTickets for help on using tickets.