EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Re: e_flex.exe error_base7.0.7 in win64
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Tue, 11 Apr 2023 11:05:49 +0200
Hi Lynn,

On Tue, 11 Apr 2023 at 09:48, lynn <lynn0703 at yeah.net> wrote:
    Now I tried to install epics using mingw. (success once using Visual Stdio, but then failed, so i want to use msys2 ).
    But  the error "ccl.obj e_flex.exe "still came out.
   1) pacman -S mingw-w64-x86_64-toolchain
   2) export EPICS_HOST_ARCH=windows-x64-mingw
3) others and "make"
4) I uninstalled VS and reboot, nothing changed.

Output of make:
cketLib -I../calc -I../cvtFast -I../cppStd -I../cxxTemplates -I../dbmf -I../ellLib -I../env -I../error -I../fdmgr -I../flex -I../freeList -I../gpHash -I../iocsh -I../log -I../macLib -I../misc -I../osi -I../pool -I../ring -I../taskwd -I../timer -I../yacc -I../yacc -I../yajl -I../../../../include/compiler/msvc -I../../../../include/os/WIN32 -I../../../../include         -c ../flex/ccl.c
make[4]: cl: No such file or directory
make[4]: *** No rule to make target 'ccl.obj', needed by 'e_flex.exe'.  Stop.

make[4]: Leaving directory '/home/dell/base-7.0.7/modules/libcom/src/O.windows-x64'

This line shows that your EPICS_HOST_ARCH is still set to windows-x64, which is for the Microsoft compiler.
You need to set ist to use the MinGW compiler, like you were showing further above. This setting must be done in the shell that you run 'make' from.

There is no need to uninstall compilers that you don't use. (My Windows laptop has 4 compiler chains installed.) Setting EPICS_HOST_ARCH correctly and running the compiler settings batch file (in case of the Microsoft compiler) is good enough.

Cheers,
~Ralph


References:
e_flex.exe error_base7.0.7 in win64 lynn via Tech-talk
Re:Re: e_flex.exe error_base7.0.7 in win64 lynn via Tech-talk

Navigate by Date:
Prev: Re:Re: e_flex.exe error_base7.0.7 in win64 lynn via Tech-talk
Next: Re: Adding right-click PV option Kasemir, Kay via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Re:Re: e_flex.exe error_base7.0.7 in win64 lynn via Tech-talk
Next: Fw:Re:Re: e_flex.exe error_base7.0.7 in win64 lynn via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 12 Apr 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·