OpenROAD icon indicating copy to clipboard operation
OpenROAD copied to clipboard

MacOS: brew upgrade installed swig 4.4.0 broke the OR compile

Open stefanottili opened this issue 1 month ago • 2 comments

Describe the bug

macOS Tahoe, using homebrew for dependencies: as of Oct 30 2025, brew upgrade installs SWIG Version 4.4.0

build/src/dbSta/src/CMakeFiles/dbSta.dir/dbStaTCL_wrap.cxx:7859:7: error: use of undeclared identifier '$function'; did you mean 'boost_swap_impl::function'?
 7859 |       $function 
      |       ^~~~~~~~~
      |       boost_swap_impl::function

using swig 4.3.0 on wsl ubuntu 22, $function get's replaced with set_delay_calculator_cmd((char const *)arg1);

Expected Behavior

compile using SWIG Version 4.4.0

Environment

macOS Tahoe, homebrew, swig 4.4.0

To Reproduce

use swig 4.4.0

Relevant log output


Screenshots

No response

Additional Context

 7849 #ifdef __cplusplus
 7850 extern "C" {
 7851 #endif  
 7852 SWIGINTERN int
 7853 _wrap_delay_calc_names(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
 7854   StringSeq result;
 7855       
 7856   if (SWIG_GetArgs(interp, objc, objv,":sta::delay_calc_names ") == TCL_ERROR) SWIG_fail;
 7857   { 
 7858     try {
 7859       $function
 7860     }
 7861     catch (std::bad_alloc &) {
 7862       fprintf(stderr, "Error: out of memory.");
 7863       abort();
 7864     }

stefanottili avatar Oct 31 '25 00:10 stefanottili

@sombraSoft please update swig to 4.4 and let me know if you have issues with building OR.

maliberty avatar Oct 31 '25 14:10 maliberty

Any update ?

stefanottili avatar Nov 21 '25 19:11 stefanottili