Opened 5 years ago

Closed 2 years ago

#59115 closed defect (fixed)

libssh2 @1.9.0 fails to build on PPC Mac OS X 10.5.8 because '#pragma GCC diagnostic not allowed inside functions'

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: Gminfly
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard Cc:
Port: libssh2

Description

  CC       x11.o
x11.c: In function ‘main’:
x11.c:328: error: #pragma GCC diagnostic not allowed inside functions
x11.c:329: error: #pragma GCC diagnostic not allowed inside functions
x11.c:333: error: #pragma GCC diagnostic not allowed inside functions
make[2]: *** [x11.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_libssh2/libssh2/work/libssh2-1.9.0/example'
make[1]: *** [all] Error 2

Attachments (1)

main.log (26.9 KB) - added by ballapete (Peter "Pete" Dyballa) 5 years ago.
Main.log from PPC Leopard

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Leopard

comment:1 Changed 5 years ago by ballapete (Peter "Pete" Dyballa)

It built with configure.compiler=macports-gcc-6.

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Cc: normen@… removed
Owner: set to Gminfly
Status: newassigned

comment:3 Changed 3 years ago by barracuda156

Same error on 10.6.8 for x86_64 with gcc-4.2:

x11.c: In function ‘main’:
x11.c:328: error: #pragma GCC diagnostic not allowed inside functions
x11.c:329: error: #pragma GCC diagnostic not allowed inside functions
x11.c:333: error: #pragma GCC diagnostic not allowed inside functions
make[1]: *** [x11.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  CCLD     ssh2
make[1]: Leaving directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libssh2/libssh2/work/libssh2-1.10.0/example'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libssh2/libssh2/work/libssh2-1.10.0'
Command failed:  cd "/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libssh2/libssh2/work/libssh2-1.10.0" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: Failed to build libssh2: command execution failed

With gcc11 the build succeeds though.

Last edited 3 years ago by barracuda156 (previous) (diff)

comment:4 Changed 2 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.