File size: 3,718 Bytes
660c0b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# OpenROAD Build From Sources

Subcategory: Compilation error

## Conversation

### sebinho
Hello Guys,

I am using ArchLinux and I have been using OpenROAD from an install package from the AUR. 
This install does not seem to work anymore (it was working on my setup a couple of weeks ago).

So I am trying to build from sources but I get the same errors as I get with the AUR package:
```

[ 74%] Building CXX object src/gui/CMakeFiles/gui.dir/src/scriptWidget.cpp.o

In file included from /home/zed/repos/OpenROAD/src/gui/src/tclCmdInputWidget.h:50,

                 from /home/zed/repos/OpenROAD/src/gui/src/scriptWidget.cpp:49:

/home/zed/repos/OpenROAD/build/src/gui/tclSwig.h: In function ‘int SWIG_Tcl_GetArgs(Tcl_Interp*, int, Tcl_Obj* const*, const char*, ...)’:

/home/zed/repos/OpenROAD/build/src/gui/tclSwig.h:1623:11: error: ‘Tcl_Size’ was not declared in this scope; did you mean ‘Tcl_Time’?

 1623 |           Tcl_Size *vlptr = (Tcl_Size *) va_arg(ap, void *);

      |           ^~~~~~~~

      |           Tcl_Time

/home/zed/repos/OpenROAD/build/src/gui/tclSwig.h:1623:21: error: ‘vlptr’ was not declared in this scope; did you mean ‘vptr’?

 1623 |           Tcl_Size *vlptr = (Tcl_Size *) va_arg(ap, void *);

      |                     ^~~~~

      |                     vptr

/home/zed/repos/OpenROAD/build/src/gui/tclSwig.h:1623:40: error: expected primary-expression before ‘)’ token

 1623 |           Tcl_Size *vlptr = (Tcl_Size *) va_arg(ap, void *);

      |                                        ^

make[2]: *** [src/gui/CMakeFiles/gui.dir/build.make:226: src/gui/CMakeFiles/gui.dir/src/scriptWidget.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

[ 74%] Building CXX object src/rcx/src/CMakeFiles/rcxUnitTest.dir/__/test/ext2dBoxTest.cpp.o

In file included from /home/zed/repos/OpenROAD/build/src/gui/gui_autogen/UVLADIE3JM/../../../../../src/gui/src/tclCmdInputWidget.h:50,

                 from /home/zed/repos/OpenROAD/build/src/gui/gui_autogen/UVLADIE3JM/moc_tclCmdInputWidget.cpp:10,

                 from /home/zed/repos/OpenROAD/build/src/gui/gui_autogen/mocs_compilation.cpp:23:

/home/zed/repos/OpenROAD/build/src/gui/tclSwig.h: In function ‘int SWIG_Tcl_GetArgs(Tcl_Interp*, int, Tcl_Obj* const*, const char*, ...)’:

/home/zed/repos/OpenROAD/build/src/gui/tclSwig.h:1623:11: error: ‘Tcl_Size’ was not declared in this scope; did you mean ‘Tcl_Time’?

 1623 |           Tcl_Size *vlptr = (Tcl_Size *) va_arg(ap, void *);

      |           ^~~~~~~~

      |           Tcl_Time

/home/zed/repos/OpenROAD/build/src/gui/tclSwig.h:1623:21: error: ‘vlptr’ was not declared in this scope; did you mean ‘vptr’?

 1623 |           Tcl_Size *vlptr = (Tcl_Size *) va_arg(ap, void *);

      |                     ^~~~~

      |                     vptr

/home/zed/repos/OpenROAD/build/src/gui/tclSwig.h:1623:40: error: expected primary-expression before ‘)’ token

 1623 |           Tcl_Size *vlptr = (Tcl_Size *) va_arg(ap, void *);

      |                                        ^

[ 74%] Linking CXX executable dpl_test

```

Seems to be something related to Swig with TCL. Does anybody know what the problem is?

Thanks for your help



### maliberty
What version of TCL and swig do you have installed?

### maliberty
Perhaps something is different in 4.2.1 as with 4.1.0 I don't see any used of Tcl_Size in tclSwig.h.  Is it possible for you to downgrade?

### stefanottili
Does anybody know how to downgrade swig on MacOS M1 homebrew ?

The current SWIG Version 4.2.1 causes the same error here.

Can be worked around by commenting out the two offending lines, they seem to be in an error path ...