Build failure on MinGW

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Build failure on MinGW

clemo
Hi,

I try to build Insight-6.8-1 on MinGW current version for Windows XP Pro. Compilation fails on SEH:

tclWinChan.o: in function 'Tcl_MakeFileChannel':
C:\MinGW\msys\1.0\home\mips\arm-none-eabi\install\build\tcl\win/../../../insight
-6.8-1/tcl/win/tclWinChan.c:1052: undefined reference 'ESP'
C:\MinGW\msys\1.0\home\mips\arm-none-eabi\install\build\tcl\win/../../../insight
-6.8-1/tcl/win/tclWinChan.c:1052: undefined reference 'EBP'
C:\MinGW\msys\1.0\home\mips\arm-none-eabi\install\build\tcl\win/../../../insight
-6.8-1/tcl/win/tclWinChan.c:1067: undefined reference 'ESP'
C:\MinGW\msys\1.0\home\mips\arm-none-eabi\install\build\tcl\win/../../../insight
-6.8-1/tcl/win/tclWinChan.c:1067: undefined reference 'EBP'
collect2: ld returned 1 exit status
make[3]: *** [tcl84.dll] Error 1
make[3]: Leaving directory `/home/mips/arm-none-eabi/install/build/tcl/win'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mips/arm-none-eabi/install/build/tcl'
make[1]: *** [all-tcl] Error 2
make[1]: Leaving directory `/home/mips/arm-none-eabi/install/build'
make: *** [all] Error 2

This is my configure command:

$ ./configure --target=arm-none-eabi \
              --prefix=/mingw \
              --enable-interwork \
              --enable-multilib \
              --with-gnu-ld \
              --with-gnu-as \
              --disable-werror

Someone knows how to fix this?

Thanks,
Clemens


     
Reply | Threaded
Open this post in threaded view
|

Re: Build failure on MinGW

Keith Seitz
On 11/10/2010 09:07 AM, Clemens Valens wrote:
> I try to build Insight-6.8-1 on MinGW current version for Windows XP Pro. Compilation fails on SEH:

Hi,

I can only offer some generic advice right now. There has been some
discussion of mingw on the mailing list. Have you investigated that?

Otherwise, off the top of my head: I'm pretty sure that the repo's
built-in Tcl is a no-go on Windows except for Cygwin. As I recall, other
mingw users were using some sort of system-installed Tcl/Tk/Itcl.

In any case, I would encourage you to try a CVS/GIT snapshot of the repo
instead of 6.8. One of these days, I'll get around to trying a 7.1
release...

/me thinks aloud
Hmm... My wife is now working, and her Windows box is largely unused
nowadays...

/me goes to install VNC on it

I will let you know if I figure out anything. I'm going to try to get
insight CVS built on this thing.

Keith
Reply | Threaded
Open this post in threaded view
|

Re: Build failure on MinGW

clemo
I tried to follow the instructions from here (including CVS snaphot):
http://sourceware.org/ml/insight/2010-q3/msg00015.html
but they are not detailed enough for me.
I installed ActiveTCL and did manage to compile TCL & TK without errors on MinGW, but what am I supposed to do with it? (I am unfortunately not a linux specialist.)

The build now fails with this error:

Configuring in ./libgui

<snipped lots of config things>

checking for Tcl configuration... configure: WARNING: Can't find Tcl configurati
on definitions
checking for existence of # no Tcl configs found/tclConfig.sh... could not find
# no Tcl configs found/tclConfig.sh
checking for Tk configuration... configure: WARNING: Can't find Tk configuration
 definitions
checking for existence of # no Tk configs found/tkConfig.sh... could not find #
no Tk configs found/tkConfig.sh
checking for Tcl headers... configure: error: could not find Tcl headers
make[1]: *** [configure-libgui] Error 1
make[1]: Leaving directory `/home/mips/arm-none-eabi/install/build'
make: *** [all] Error 2

I guess I can fix this if only I knew what to do with my TCL/TK build.

Clemens



     
Reply | Threaded
Open this post in threaded view
|

Re: Build failure on MinGW

clemo
I managed to get a bit further by putting my TCL/TK build results in the MinGW\msys\1.0\lib (.a & .sh) and MinGW\msys\1.0\bin (dll & exe) folders. Now I have this error:

gcc -DHAVE_CONFIG_H -I. -I../../../insight-7.0.50-20091130/libgui/src -I..  -I/home/mips/arm-none-eabi/include -I/home/mips/arm-none-eabi/install/tcl8.5.9/generic -I/home/mips/arm-none-eabi/install/tcl8.5.9/win -I/home/mips/arm-none-eabi/install/tk8.5.9/generic -I/home/mips/arm-none-eabi/install/tk8.5.9/win  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=
int -DHAVE_WINNT_IGNORE_VOID=1 -DHAVE_ALLOCA_GCC_INLINE=1 -DHAVE_CAST_TO_UNION=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAV
E_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 -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE
_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -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_UXTHEME_
H=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1  -DTBL_VERSION=\"2.7\" -DTBL_COMMAND=\"table\" -DTBL_RUNTIME=\"tkTable.tcl\" -DTBL_RUNTIME_DIR=\"/home/mips/arm-none
-eabi/share/redhat/gui\" -DSTATIC_BUILD    -g -O2 -D__USE_MINGW_ACCESS -c ../../../insight-7.0.50-20091130/libgui/src/tclwinprint.c
In file included from ../../../insight-7.0.50-20091130/libgui/src/tclwinprint.c:13:0:
C:/MinGW/msys/1.0/home/mips/arm-none-eabi/install/tk8.5.9/generic/tk.h:78:23: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make[4]: *** [tclwinprint.o] Error 1
make[4]: Leaving directory `/home/mips/arm-none-eabi/install/build/libgui/src'
make[4]: Entering directory `/home/mips/arm-none-eabi/install/build/libgui'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/mips/arm-none-eabi/install/build/libgui'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mips/arm-none-eabi/install/build/libgui'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mips/arm-none-eabi/install/build/libgui'
make[1]: *** [all-libgui] Error 2
make[1]: Leaving directory `/home/mips/arm-none-eabi/install/build'
make: *** [all] Error 2


I do have a file tk8.5.9/xlib/X11/Xlib.h
Do I have to set a path or something?

Clemens

--- On Thu, 11/11/10, Clemens Valens <[hidden email]> wrote:

> From: Clemens Valens <[hidden email]>
> Subject: Re: Build failure on MinGW
> To: "Keith Seitz" <[hidden email]>
> Cc: [hidden email]
> Date: Thursday, November 11, 2010, 7:05 PM
> I tried to follow the instructions
> from here (including CVS snaphot):
> http://sourceware.org/ml/insight/2010-q3/msg00015.html
> but they are not detailed enough for me.
> I installed ActiveTCL and did manage to compile TCL &
> TK without errors on MinGW, but what am I supposed to do
> with it? (I am unfortunately not a linux specialist.)
>
> The build now fails with this error:
>
> Configuring in ./libgui
>
> <snipped lots of config things>
>
> checking for Tcl configuration... configure: WARNING: Can't
> find Tcl configurati
> on definitions
> checking for existence of # no Tcl configs
> found/tclConfig.sh... could not find
> # no Tcl configs found/tclConfig.sh
> checking for Tk configuration... configure: WARNING: Can't
> find Tk configuration
>  definitions
> checking for existence of # no Tk configs
> found/tkConfig.sh... could not find #
> no Tk configs found/tkConfig.sh
> checking for Tcl headers... configure: error: could not
> find Tcl headers
> make[1]: *** [configure-libgui] Error 1
> make[1]: Leaving directory
> `/home/mips/arm-none-eabi/install/build'
> make: *** [all] Error 2
>
> I guess I can fix this if only I knew what to do with my
> TCL/TK build.
>
> Clemens
>
>
>
>      
>



Reply | Threaded
Open this post in threaded view
|

Re: Build failure on MinGW

Keith Seitz
On 11/11/2010 02:21 PM, Clemens Valens wrote:
> I managed to get a bit further by putting my TCL/TK build results in
> the MinGW\msys\1.0\lib (.a&  .sh) and MinGW\msys\1.0\bin (dll&  exe)
> folders. Now I have this error:

Here is finally some good news... I have just built/installed/run
insight -- using ONLY sourceware-supplied sources (i.e., no ActiveState
Tcl necessary) on mingw w/msys!

There are a few little problems, and I hope to have patches for those
committed in the next day or two. Mind you, I also haven't tested it
exhaustively -- just stepped through gdb with register, console, locals,
stack, breakpoints windows open. Just a sanity check.

Keith

PS. Do you want to pursue your current course w/ActiveState tcl? If so,
I'll need to see the configure/build logs...
Reply | Threaded
Open this post in threaded view
|

Re: Build failure on MinGW

clemo

> Here is finally some good news... I have just
> built/installed/run insight -- using ONLY
> sourceware-supplied sources (i.e., no ActiveState Tcl
> necessary) on mingw w/msys!
>
> There are a few little problems, and I hope to have patches
> for those committed in the next day or two. Mind you, I also
> haven't tested it exhaustively -- just stepped through gdb
> with register, console, locals, stack, breakpoints windows
> open. Just a sanity check.
>
> Keith
>
> PS. Do you want to pursue your current course w/ActiveState
> tcl? If so, I'll need to see the configure/build logs...
>

Hi Keith,

first of all, thank you very much for the effort you are putting in this! Maybe you should buy your wife an i-Pad, then you can keep her Windows machine.

To be honest I would prefer a solution with only sourceware-supplied sources. I think it would be better not to have to rely on (a lot of) external components, it is allready complicated enough the way it is now. But that's just my humble opinion. The ActiveState Tcl solution is probably very nice & useful for lots of people.

P.S. If I manage to build a working Windows executable, would I be allowed to put it up for downloading? (for free of course)

Clemens



     
Reply | Threaded
Open this post in threaded view
|

Re: Build failure on MinGW

guotong1988
This post has NOT been accepted by the mailing list yet.
This post was updated on .
In reply to this post by clemo
Hi I meet the same problem !

Do you resolve this problem?



Thank you very much.

779222056@qq.com