Opened 2 years ago

Closed 2 years ago

#66071 closed defect (fixed)

Failed to build assimp (macos 13)

Reported by: johnjxw (John Jiang) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc:
Port: assimp

Description (last modified by jmroot (Joshua Root))

Any idea? Thank you!

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_assimp/assimp/work/assimp-5.2.5/code/PostProcessing/ValidateDataStructure.cpp:83:22: error: 'vsprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead. [-Werror,-Wdeprecated-declarations]
:info:build     const int iLen = vsprintf(szBuffer, msg, args);
:info:build                      ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/stdio.h:207:1: note: 'vsprintf' has been explicitly marked deprecated here
:info:build __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead.")
:info:build ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
:info:build         #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
:info:build                                                       ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_assimp/assimp/work/assimp-5.2.5/code/PostProcessing/ValidateDataStructure.cpp:98:22: error: 'vsprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead. [-Werror,-Wdeprecated-declarations]
:info:build     const int iLen = vsprintf(szBuffer, msg, args);
:info:build                      ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/stdio.h:207:1: note: 'vsprintf' has been explicitly marked deprecated here
:info:build __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead.")
:info:build ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
:info:build         #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
:info:build                                                       ^
:info:build 2 errors generated.
:info:build make[2]: *** [code/CMakeFiles/assimp.dir/PostProcessing/ValidateDataStructure.cpp.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_assimp/assimp/work/build'
:info:build make[1]: *** [code/CMakeFiles/assimp.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_assimp/assimp/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_assimp/assimp/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_assimp/assimp/work/build" && /usr/bin/make -j10 -w all VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build assimp: command execution failed
:debug:build Error code: CHILDSTATUS 15756 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_assimp/assimp/main.log for details.

Change History (3)

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

Description: modified (diff)

Please add the full log as an attachment.

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

Never mind, I think I got it.

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

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 87c34df335bce04b64816eac1805d07d70c4d5d7/macports-ports (master):

assimp: disable use of -Werror

Fixes: #66071

Note: See TracTickets for help on using tickets.