Opened 3 months ago

Last modified 3 months ago

#65819 assigned defect

jasper @3.0.6_0 fails to build with gcc12: jas_types.h: error: conflicting types for 'max_align_t'; have 'long double'

Reported by: barracuda156 Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: ballapete (Peter "Pete" Dyballa)
Port: jasper

Description

:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_icc.h:73,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/base/jas_icc.c:68:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:187:25: error: conflicting types for 'max_align_t'; have 'long double'
:info:build   187 |     typedef long double max_align_t;
:info:build       |                         ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:76:
:info:build /opt/local/lib/gcc12/gcc/powerpc-apple-darwin10/12.2.0/include/stddef.h:434:3: note: previous declaration of 'max_align_t' with type 'max_align_t'
:info:build   434 | } max_align_t;
:info:build       |   ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_malloc.h:80,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_init.h:73,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/base/jas_debug.c:68:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:187:25: error: conflicting types for 'max_align_t'; have 'long double'
:info:build   187 |     typedef long double max_align_t;
:info:build       |                         ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:76:
:info:build /opt/local/lib/gcc12/gcc/powerpc-apple-darwin10/12.2.0/include/stddef.h:434:3: note: previous declaration of 'max_align_t' with type 'max_align_t'
:info:build   434 | } max_align_t;
:info:build       |   ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/base/jas_iccdata.c:69:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:187:25: error: conflicting types for 'max_align_t'; have 'long double'
:info:build   187 |     typedef long double max_align_t;
:info:build       |                         ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:76:
:info:build /opt/local/lib/gcc12/gcc/powerpc-apple-darwin10/12.2.0/include/stddef.h:434:3: note: previous declaration of 'max_align_t' with type 'max_align_t'
:info:build   434 | } max_align_t;
:info:build       |   ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_cm.h:77,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/base/jas_cm.c:74:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:187:25: error: conflicting types for 'max_align_t'; have 'long double'
:info:build   187 |     typedef long double max_align_t;
:info:build       |                         ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:76:
:info:build /opt/local/lib/gcc12/gcc/powerpc-apple-darwin10/12.2.0/include/stddef.h:434:3: note: previous declaration of 'max_align_t' with type 'max_align_t'
:info:build   434 | } max_align_t;
:info:build       |   ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_math.h:80,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/base/jas_getopt.c:77:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:187:25: error: conflicting types for 'max_align_t'; have 'long double'
:info:build   187 |     typedef long double max_align_t;
:info:build       |                         ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:76:
:info:build /opt/local/lib/gcc12/gcc/powerpc-apple-darwin10/12.2.0/include/stddef.h:434:3: note: previous declaration of 'max_align_t' with type 'max_align_t'
:info:build   434 | } max_align_t;
:info:build       |   ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_malloc.h:80,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_init.h:73,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/base/jas_image.c:76:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:187:25: error: conflicting types for 'max_align_t'; have 'long double'
:info:build   187 |     typedef long double max_align_t;
:info:build       |                         ^~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-3.0.6/src/libjasper/include/jasper/jas_types.h:76:
:info:build /opt/local/lib/gcc12/gcc/powerpc-apple-darwin10/12.2.0/include/stddef.h:434:3: note: previous declaration of 'max_align_t' with type 'max_align_t'
:info:build   434 | } max_align_t;
:info:build       |   ^~~~~~~~~~~
:info:build cc1: note: unrecognized command-line option '-Wno-tautological-constant-out-of-range-compare' may have been intended to silence earlier diagnostics
:info:build make[2]: *** [src/libjasper/CMakeFiles/libjasper.dir/base/jas_iccdata.c.o] Error 1

Attachments (1)

jasper.log (45.5 KB) - added by barracuda156 3 months ago.

Download all attachments as: .zip

Change History (7)

Changed 3 months ago by barracuda156

Attachment: jasper.log added

comment:1 Changed 3 months ago by barracuda156

Summary: jasper fails to build with gcc12: jas_types.h: error: conflicting types for 'max_align_t'; have 'long double'jasper @3.0.6_0 fails to build with gcc12: jas_types.h: error: conflicting types for 'max_align_t'; have 'long double'

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

Cc: ballapete added

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

On PPC Leopard, Mac OS X 10.5.8, variant jasper +heif builds as well with GCC 7 and without the max_align_t.patch.

comment:4 Changed 3 months ago by mascguy (Christopher Nielsen)

@jmroot committed the following fix, earlier today. Does this solve the issue?

https://github.com/macports/macports-ports/commit/b4dbb52ae1014b4c0d191e8f63ac0346f0b0db08

comment:5 in reply to:  4 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

Replying to mascguy:

@jmroot committed the following fix, earlier today. Does this solve the issue?

https://github.com/macports/macports-ports/commit/b4dbb52ae1014b4c0d191e8f63ac0346f0b0db08

How can I download this patch?

comment:6 in reply to:  4 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

Replying to mascguy:

@jmroot committed the following fix, earlier today. Does this solve the issue?

https://github.com/macports/macports-ports/commit/b4dbb52ae1014b4c0d191e8f63ac0346f0b0db08

No! This is actually the cause of all the trouble. It redefines max_align_t as I describe in #65858. And this patch is already activated in Portfile. Leaving this patch away JasPer is built. At least on PPC Leopard, Mac OS X 10.5.8.

Note: See TracTickets for help on using tickets.