Opened 2 years ago

Closed 2 years ago

#65770 closed defect (fixed)

imlib2 fails on Rosetta due to Doxygen: familiar malloc errors

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, rosetta, snowleopard Cc:
Port: imlib2

Description

Making all in doc
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_imlib2/imlib2/work/imlib2-1.9.0/doc'
rm -rf html man
doxygen
doxygen(38698) malloc: *** error for object 0xa0f15754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0xa0f157c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
warning: Tag 'OUTPUT_TEXT_DIRECTION' at line 102 of file 'Doxyfile' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'CLANG_ASSISTED_PARSING' at line 1118 of file 'Doxyfile' belongs to an option that was not enabled at compile time.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u", or recompile doxygen with this feature enabled.
warning: Tag 'CLANG_ADD_INC_PATHS' at line 1124 of file 'Doxyfile' belongs to an option that was not enabled at compile time.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u", or recompile doxygen with this feature enabled.
warning: Tag 'CLANG_OPTIONS' at line 1132 of file 'Doxyfile' belongs to an option that was not enabled at compile time.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u", or recompile doxygen with this feature enabled.
warning: Tag 'CLANG_DATABASE_PATH' at line 1145 of file 'Doxyfile' belongs to an option that was not enabled at compile time.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u", or recompile doxygen with this feature enabled.
warning: Tag 'LATEX_SOURCE_CODE' at line 1910 of file 'Doxyfile' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'RTF_SOURCE_CODE' at line 2000 of file 'Doxyfile' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'DOCBOOK_PROGRAMLISTING' at line 2105 of file 'Doxyfile' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'CLASS_DIAGRAMS' at line 2292 of file 'Doxyfile' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Changing CLASS_GRAPH option to TEXT because obsolete option CLASS_DIAGRAM was found and set to NO.
doxygen(38698) malloc: *** error for object 0x15542c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x1553928: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x1553890: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x15538dc: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x15537c8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x15536a0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x15535c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x1553630: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x15534f8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x1554200: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x1554380: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x155438c: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
doxygen(38698) malloc: *** error for object 0x15543a8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
make[2]: *** [html/index.html] Bus error
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_imlib2/imlib2/work/imlib2-1.9.0/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_imlib2/imlib2/work/imlib2-1.9.0'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_imlib2/imlib2/work/imlib2-1.9.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_imlib2/imlib2/work/imlib2-1.9.0" && /usr/bin/make -j6 -w all 
Exit code: 2

Attachments (1)

imlib2_10.5.8.log (51.5 KB) - added by barracuda156 2 years ago.
So firstly, the error is not specific to Rosetta, but happens on 10.6 PPC and 10.5.8 alike.

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by barracuda156

Attachment: imlib2_10.5.8.log added

So firstly, the error is not specific to Rosetta, but happens on 10.6 PPC and 10.5.8 alike.

comment:1 Changed 2 years ago by barracuda156

Secondly, it seems that solution proposed by Kencu works – at least on 10.5.8 I have built imlib2 +doc without these errors, once I rebuilt Doxygen with:

platform darwin powerpc {
    legacysupport.redirect_bins doxygen
}

I will reconfirm with some other port which had similar problem and, provided it also works, open a PR for Doxygen.

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

don’t limit the fix to powerpc though. Legacysupport already knows when to use the shim script, eg

https://github.com/macports/macports-ports/blob/98775f8d22ae4fcdc610b3f8f857db5ae75acc47/_resources/port1.0/group/legacysupport-1.1.tcl#L235

comment:3 in reply to:  2 Changed 2 years ago by barracuda156

Replying to kencu:

don’t limit the fix to powerpc though. Legacysupport already knows when to use the shim script, eg

https://github.com/macports/macports-ports/blob/98775f8d22ae4fcdc610b3f8f857db5ae75acc47/_resources/port1.0/group/legacysupport-1.1.tcl#L235

Great, thank you.

comment:4 Changed 2 years ago by barracuda156

Owner: set to barracuda156
Resolution: fixed
Status: newclosed

In bc5a40ac27e0454062963ea3ac196d6de4dfbfad/macports-ports (master):

doxygen: redirect_bins to fix malloc errors with gcc
Fixes: #65814
Fixes: #65770

Note: See TracTickets for help on using tickets.