Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2013-10-10
14:14 • Ticket [f51efe99a7] MinGW build fails on current checkin status still Closed... artifact: 7d41498020 user: jan.nijtmans
14:13
Fix for bug [f51efe99a7]: MinGW build fails on current checkin. And a new test-case which makes the ... check-in: 7abbaed029 user: jan.nijtmans tags: trunk
2013-10-01
08:02 • Closed ticket [f51efe99a7]: MinGW build fails on current checkin plus 4 othe... artifact: 7a12558eb1 user: jan.nijtmans
2013-09-30
10:13 • Ticket [dfc08326e3] Symbols not exported correctly status still Pending with... artifact: e3ea1f22cc user: jan.nijtmans
09:12 • Pending ticket [f51efe99a7]: MinGW build fails on current checkin plus 5 oth... artifact: 12cd2e64f9 user: jan.nijtmans
09:03
Fix [f51efe99a7] by reverting [371bcd0714] check-in: 8ee49da609 user: jan.nijtmans tags: trunk
2013-09-29
17:55 • New ticket [f51efe99a7] MinGW build fails on current checkin. artifact: 6742396e6a user: tombert

MinGW build fails on current checkin

Closed / Fixedf51efe99a741c875bc9081c4cd5aa947786f43f7Created 13 years agoUpdated 13 years ago
Descriptionplain2013-09-29 17:55:02
Win7, MinGW, gcc 4.7.2
thx!

gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-s
tatement  -I"/d/CM.git/tcltk86/rcompile/tcl/compat/zlib" -I"/d/CM.git/tcltk86/rc
ompile/tcl/generic" -DTCL_TOMMATH -DMP_PREC=4 -I"/d/CM.git/tcltk86/rcompile/tcl/
libtommath" -I"/d/CM.git/tcltk86/rcompile/tcl/win" -pipe -DTCL_BROKEN_MAINARGS -
DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRIN
G=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_AL
LOC=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_
INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO
_SEH=1 -DEXCEPTION_DISPOSITION=int -DHAVE_WINNT_IGNORE_VOID=1 -DHAVE_CAST_TO_UNI
ON=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DNDEBUG=1 -DTCL_CFG_OPT
IMIZED=1    -DBUILD_tcl "tclWinTime.c" -o tclWinTime.o
windres -o tcl.res.o   --include "/d/CM.git/tcltk86/rcompile/tcl/generic" --incl
ude "/d/CM.git/tcltk86/rcompile/tcl/win" "tcl.rc"
gcc -shared -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE  -o tcl86.dll -pipe -s
tatic-libgcc        -Wl,--out-implib,libtcl86.a regcomp.o regexec.o regfree.o re
gerror.o tclAlloc.o tclAssembly.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o
 tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompCmdsGR.o tclCo
mpCmdsSZ.o tclCompExpr.o tclCompile.o tclConfig.o tclDate.o tclDictObj.o tclEnco
ding.o tclEnsemble.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tc
lGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIO
GT.o tclIORChan.o tclIORTrans.o tclIOSock.o tclIOUtil.o tclLink.o tclLiteral.o t
clListObj.o tclLoad.o tclMain.o tclMain2.o tclNamesp.o tclNotify.o tclOO.o tclOO
Basic.o tclOOCall.o tclOODefineCmds.o tclOOInfo.o tclOOMethod.o tclOOStubInit.o
tclObj.o tclOptimize.o tclPanic.o tclParse.o tclPathObj.o tclPipe.o tclPkg.o tcl
PkgConfig.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclRe
sult.o tclScan.o tclStringObj.o tclStrToD.o tclStubInit.o tclThread.o tclThreadA
lloc.o tclThreadJoin.o tclThreadStorage.o tclTimer.o tclTomMathInterface.o tclTr
ace.o tclUtf.o tclUtil.o tclVar.o tclZlib.o bncore.o bn_reverse.o bn_fast_s_mp_m
ul_digs.o bn_fast_s_mp_sqr.o bn_mp_add.o bn_mp_add_d.o bn_mp_and.o bn_mp_clamp.o
 bn_mp_clear.o bn_mp_clear_multi.o bn_mp_cmp.o bn_mp_cmp_d.o bn_mp_cmp_mag.o bn_
mp_cnt_lsb.o bn_mp_copy.o bn_mp_count_bits.o bn_mp_div.o bn_mp_div_d.o bn_mp_div
_2.o bn_mp_div_2d.o bn_mp_div_3.o bn_mp_exch.o bn_mp_expt_d.o bn_mp_grow.o bn_mp
_init.o bn_mp_init_copy.o bn_mp_init_multi.o bn_mp_init_set.o bn_mp_init_set_int
.o bn_mp_init_size.o bn_mp_karatsuba_mul.o bn_mp_karatsuba_sqr.o bn_mp_lshd.o bn
_mp_mod.o bn_mp_mod_2d.o bn_mp_mul.o bn_mp_mul_2.o bn_mp_mul_2d.o bn_mp_mul_d.o
bn_mp_neg.o bn_mp_or.o bn_mp_radix_size.o bn_mp_radix_smap.o bn_mp_read_radix.o
bn_mp_rshd.o bn_mp_set.o bn_mp_set_int.o bn_mp_shrink.o bn_mp_sqr.o bn_mp_sqrt.o
 bn_mp_sub.o bn_mp_sub_d.o bn_mp_to_unsigned_bin.o bn_mp_to_unsigned_bin_n.o bn_
mp_toom_mul.o bn_mp_toom_sqr.o bn_mp_toradix_n.o bn_mp_unsigned_bin_size.o bn_mp
_xor.o bn_mp_zero.o bn_s_mp_add.o bn_s_mp_mul_digs.o bn_s_mp_sqr.o bn_s_mp_sub.o
 tclWin32Dll.o tclWinChan.o tclWinConsole.o tclWinSerial.o tclWinError.o tclWinF
Cmd.o tclWinFile.o tclWinInit.o tclWinLoad.o tclWinNotify.o tclWinPipe.o tclWinS
ock.o tclWinThrd.o tclWinTime.o  tcl.res.o -lnetapi32 -lkernel32 -luser32 -ladva
pi32 -lws2_32 /d/CM.git/tcltk86/rcompile/tcl/compat/zlib/win32/zdll.lib
tclExecute.o:tclExecute.c:(.text+0x3f9d): undefined reference to `_imp__Tcl_GetO
bjectFromObj'
tclExecute.o:tclExecute.c:(.text+0x3fda): undefined reference to `_imp__Tcl_GetO
bjectFromObj'
tclExecute.o:tclExecute.c:(.text+0x4044): undefined reference to `_imp__Tcl_GetO
bjectFromObj'
d:/programs/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: t
clExecute.o: bad reloc address 0x3f4 in section `.rdata'
collect2.exe: error: ld returned 1 exit status
make: *** [tcl86.dll] Error 1
bash-3.1$
Referenced by3
jan.nijtmansplain2013-09-30 09:12:44
My MinGW compile gives a lot of warnings like:

C:/Localdata/workspace/tcl8.6/generic/tclOO.c:2927:1: warning: 'Tcl_GetObjectCom
mand' redeclared without dllimport attribute: previous dllimport ignored [-Wattr
ibutes]
 Tcl_GetObjectCommand(
 ^
C:/Localdata/workspace/tcl8.6/generic/tclOO.c:2934:1: warning: 'Tcl_GetObjectAsC
lass' redeclared without dllimport attribute: previous dllimport ignored [-Wattr
ibutes]

And then the same error.

Reverted [371bcd0714], assigned to dkf.
jan.nijtmans Closed ticket [f51efe99a7]. [History diff]2013-10-01 08:02:55
jan.nijtmanswiki2013-10-10 14:14:15

Commit [187f341932] broke this again, but less visible: Itcl compiled OK on MinGW, but tdbcpostgres stil didn't:

$ make gcc -DPACKAGE_NAME=\"tdbcpostgres\" -DPACKAGE_TARNAME=\"tdbcpostgres\" -DPACKAGE _VERSION=\"1.0.0\" -DPACKAGE_STRING=\"tdbcpostgres\ 1.0.0\" -DPACKAGE_BUGREPORT= \"\" -DPACKAGE_URL=\"\" -DBUILD_tdbcpostgres=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_ TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_ H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 - DHAVE_LONG_LONG=1 -DSIZEOF_LONG_LONG=8 -DSIZEOF_LONG=4 -DDONT_TD_VOID=1 -D_WIN32 =1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION =int -DHAVE_WINNT_IGNORE_VOID=1 -DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -I/Localdata/workspac e/tclplus/pkgs/tdbc/generic -I"/Localdata/workspace/tclplus/generic" -pipe - O2 -fomit-frame-pointer -DNDEBUG -Wall -c `echo /Localdata/workspace/tclplus/p kgs/tdbcpostgres/generic/tdbcpostgres.c` -o tdbcpostgres.o gcc -DPACKAGE_NAME=\"tdbcpostgres\" -DPACKAGE_TARNAME=\"tdbcpostgres\" -DPACKAGE _VERSION=\"1.0.0\" -DPACKAGE_STRING=\"tdbcpostgres\ 1.0.0\" -DPACKAGE_BUGREPORT= \"\" -DPACKAGE_URL=\"\" -DBUILD_tdbcpostgres=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_ TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_ H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 - DHAVE_LONG_LONG=1 -DSIZEOF_LONG_LONG=8 -DSIZEOF_LONG=4 -DDONT_TD_VOID=1 -D_WIN32 =1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION =int -DHAVE_WINNT_IGNORE_VOID=1 -DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -I/Localdata/workspac e/tclplus/pkgs/tdbc/generic -I"/Localdata/workspace/tclplus/generic" -pipe - O2 -fomit-frame-pointer -DNDEBUG -Wall -c `echo /Localdata/workspace/tclplus/p kgs/tdbcpostgres/generic/pqStubInit.c` -o pqStubInit.o rm -f tdbcpostgres100.dll gcc -shared -o tdbcpostgres100.dll tdbcpostgres.o pqStubInit.o -L/Localdata/work space/tclplus/win/pkgs/tdbc -ltdbcstub100 -L/Localdata/workspace/tclplus/win/pkg s/tdbc -ltdbcstub100 -lws2_32 "/Localdata/workspace/tclplus/win/libtclstub86.a" -static-libgcc tdbcpostgres.o:tdbcpostgres.c:(.text+0xa7f): undefined reference to `Tcl_ObjectC ontextObject' tdbcpostgres.o:tdbcpostgres.c:(.text+0xa8f): undefined reference to `Tcl_ObjectG etMetadata' tdbcpostgres.o:tdbcpostgres.c:(.text+0xdcc): undefined reference to `Tcl_ObjectC ontextObject' tdbcpostgres.o:tdbcpostgres.c:(.text+0xddc): undefined reference to `Tcl_ObjectG etMetadata' .....

I fixed that in [a795ebaacf], but [f5738a4c37] broke it again. Therefore I decided to make a test-case for this problem, which makes it visible on UNIX as well.

Should finally be fixed now in [7abbaed029].

Log in (anonymous is fine) to add a comment.