Opened 12 months ago

Closed 12 months ago

Last modified 3 months ago

#67332 closed defect (worksforme)

htop @3.2.2 does not build on PPC Leopard/Mac OS X 10.5.8 because libunwind lacks declarations and definitions

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: leopard ppc Cc: cal@…
Port: htop

Description

	/usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -Wall -Wcast-align -Wcast-qual -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -pedantic -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR="\"/opt/local/etc\"" -I"./darwin" -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR -I/opt/local/include -pipe -Os -arch ppc -MT CRT.o -MD -MP -MF $depbase.Tpo -c -o CRT.o CRT.c &&\
	mv -f $depbase.Tpo $depbase.Po
In file included from CRT.c:32:
/opt/local/include/libunwind.h:23:7: warning: "__clang__" is not defined
CRT.c: In function ‘print_backtrace’:
CRT.c:1081: error: ‘unw_getcontext’ is unavailable (declared at /opt/local/include/libunwind.h:102)
CRT.c:1084: error: ‘unw_init_local’ is unavailable (declared at /opt/local/include/libunwind.h:103)
CRT.c:1088: error: ‘unw_step’ is unavailable (declared at /opt/local/include/libunwind.h:104)
CRT.c:1090: error: ‘unw_get_reg’ is unavailable (declared at /opt/local/include/libunwind.h:105)
CRT.c:1096: error: ‘unw_get_proc_name’ is unavailable (declared at /opt/local/include/libunwind.h:121)
CRT.c:1103: error: ‘unw_get_proc_info’ is unavailable (declared at /opt/local/include/libunwind.h:118)
CRT.c:1104: warning: cast to pointer from integer of different size
CRT.c:1114: error: ‘unw_is_signal_frame’ is unavailable (declared at /opt/local/include/libunwind.h:120)
CRT.c:1117: warning: format ‘%#14lx’ expects type ‘long unsigned int’, but argument 4 has type ‘unw_word_t’
CRT.c:1117: warning: format ‘%#lx’ expects type ‘long unsigned int’, but argument 7 has type ‘unw_word_t’
CRT.c: In function ‘CRT_handleSIGSEGV’:
CRT.c:1130: warning: declaration of ‘signal’ shadows a global declaration
/usr/include/sys/signal.h:413: warning: shadowed declaration is here
make[1]: *** [CRT.o] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_htop/htop/work/htop-3.2.2'

Attachments (2)

main.log (31.8 KB) - added by ballapete (Peter "Pete" Dyballa) 12 months ago.
Main.log from PPC Leopard
main.2.log (36.6 KB) - added by ballapete (Peter "Pete" Dyballa) 3 months ago.
Main.log from PPC Leopard, Mac OS X 10.5.8, here version 3.3 of htop

Download all attachments as: .zip

Change History (7)

Changed 12 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Leopard

comment:1 Changed 12 months ago by neverpanic (Clemens Lang)

Resolution: worksforme
Status: newclosed

Sorry, I don't support Power PC machines on ports maintained by me any more. I will apply patches to fix this if you can provide them, but not invest time to develop them myself.

Feel free to open a pull request.

comment:2 Changed 12 months ago by ballapete (Peter "Pete" Dyballa)

The unavailable library functions have all __attribute__((unavailable)) set from pre-compiler.

Last edited 12 months ago by ballapete (Peter "Pete" Dyballa) (previous) (diff)

comment:3 Changed 12 months ago by ballapete (Peter "Pete" Dyballa)

It builds with configure.compiler=macports-gcc-7.

comment:4 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

The same failure happens with htop @3.3.0:

	/usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -std=c99 -pedantic -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR -I/opt/local/include -Wall -Wcast-align -Wcast-qual -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR="\"/opt/local/etc\"" -I"./darwin" -pipe -Os -arch ppc -MT CRT.o -MD -MP -MF $depbase.Tpo -c -o CRT.o CRT.c &&\
	mv -f $depbase.Tpo $depbase.Po
In file included from CRT.c:34:
/opt/local/include/libunwind.h:23:7: warning: "__clang__" is not defined
CRT.c: In function ‘print_backtrace’:
CRT.c:1134: error: ‘unw_getcontext’ is unavailable (declared at /opt/local/include/libunwind.h:102)
CRT.c:1137: error: ‘unw_init_local’ is unavailable (declared at /opt/local/include/libunwind.h:103)
CRT.c:1141: error: ‘unw_step’ is unavailable (declared at /opt/local/include/libunwind.h:104)
CRT.c:1143: error: ‘unw_get_reg’ is unavailable (declared at /opt/local/include/libunwind.h:105)
CRT.c:1149: error: ‘unw_get_proc_name’ is unavailable (declared at /opt/local/include/libunwind.h:121)
CRT.c:1156: error: ‘unw_get_proc_info’ is unavailable (declared at /opt/local/include/libunwind.h:118)
CRT.c:1157: warning: cast to pointer from integer of different size
CRT.c:1166: error: ‘unw_is_signal_frame’ is unavailable (declared at /opt/local/include/libunwind.h:120)
CRT.c:1169: warning: format ‘%#14lx’ expects type ‘long unsigned int’, but argument 4 has type ‘unw_word_t’
CRT.c:1169: warning: format ‘%#lx’ expects type ‘long unsigned int’, but argument 7 has type ‘unw_word_t’
CRT.c: In function ‘CRT_handleSIGSEGV’:
CRT.c:1182: warning: declaration of ‘signal’ shadows a global declaration
/usr/include/sys/signal.h:413: warning: shadowed declaration is here
make[1]: *** [CRT.o] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_htop/htop/work/htop-3.3.0'

Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.2.log added

Main.log from PPC Leopard, Mac OS X 10.5.8, here version 3.3 of htop

comment:5 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

It built on PPC Leopard, Mac OS X 10.5.6with GCC7:

  htop @3.2.2_0 requested_variants='' platform='darwin 9' archs='ppc' date='2023-04-29T21:45:07+0200'
  htop @3.3.0_1 (active) requested_variants='' platform='darwin 9' archs='ppc' date='2024-02-11T09:49:49+0100'
Note: See TracTickets for help on using tickets.