Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Build failure for pkgπ.c

Closed / Fixed29871ea55c9d56bb35d7cead72af6d16202e4b34Created 5 years agoUpdated 5 years ago
Descriptionplain2021-06-07 16:01:05
On CentOS 7 system, using gcc 4.8.5 I see:

/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:20:1: error: stray ‘\’ in program
 static int    Pkg\u03C0_\u03A0ObjCmd(ClientData clientData,
 ^
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:20:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u03C0_’
 static int    Pkg\u03C0_\u03A0ObjCmd(ClientData clientData,
                   ^
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:20:19: error: stray ‘\’ in program
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:20:19: error: unknown type name ‘u03C0_’
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:42:1: error: stray ‘\’ in program
 Pkg\u03C0_\u03A0ObjCmd(
 ^
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:42:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u03C0_’
 Pkg\u03C0_\u03A0ObjCmd(
     ^
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:42:5: error: stray ‘\’ in program
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:42:5: error: unknown type name ‘u03C0_’
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:80:1: error: stray ‘\’ in program
 Pkg\u03C0_Init(
 ^
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:80:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u03C0_Init’
 Pkg\u03C0_Init(
     ^
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:93:5: error: stray ‘\’ in program
     Tcl_CreateObjCommand(interp, "π", Pkg\u03C0_\u03A0ObjCmd, NULL, NULL);
     ^
/home/dgp/fossil/tcl/unix/dltest/pkgπ.c:93:5: error: stray ‘\’ in program
make[1]: *** [pkgπ.o] Error 1
make[1]: Leaving directory `/local/tmp/dgp/fossil/tcl/unix/dltest'
make: *** [dltest.marker] Error 2
Referenced by1
  • 2e45cd7000Temporary fix for [29871ea55c], by not building pkgπ.c by default: Older gcc (and other) C-compilers cannot handle this. check-in2021-06-07 16:37:28
jan.nijtmanswiki2021-06-07 16:38:13

Yeah, you need a more modern compiler for this ....

For now, it doesn't really matter, just don't build this by default

jan.nijtmans Closed ticket [29871ea55c]. [History diff]2022-04-18 17:30:42
Log in (anonymous is fine) to add a comment.