Wed Dec 12, 2018 10:06 pm
Login Register Lost Password? Contact Us


standalong compiler ecl file error

Comments and questions related to the Enterprise Control Language

Tue Nov 27, 2018 3:32 pm Change Time Zone

I installed the HPCC 7.0 on my laptop and tried to compiler a ecl file using command:
C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\bin>eclcc C:\Users\NAMEJX\Desktop\test\test1.ecl
I got the following error:
LOGGING: could not open file 'C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\bin\eclcc.log' for output
Error: LOGGING: could not open file 'C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\bin\eclcc.log' for output

any help? Thank you
jfeng@ln
 
Posts: 3
Joined: Tue Nov 27, 2018 3:26 pm

Tue Nov 27, 2018 8:30 pm Change Time Zone

jfeng@ln,

I just looked at that directory in my 7.0 installation and see that it's marked as "Read Only" (applying to all files within it) -- which would explain why you got that error. Try changing that setting.

HTH,

Richard
rtaylor
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1396
Joined: Wed Oct 26, 2011 7:40 pm

Wed Nov 28, 2018 12:09 pm Change Time Zone

Thank you, Richard. It seems Visual Studio issue.
I tried to install Visual Studio 2017 professional. Then, I ran the command:
eclcc hello2.ecl
I got the following error:
C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\bin>eclcc hello2.ecl
a.out(0,0): error C3000: Compile/Link failed for a.out (see '\\172.29.128.31\c$\Program Files (x86)\HPCCSystems\7.0.0\clienttools\bin\eclcc.log' for details)

---------- compiler output --------------
Error: Could not locate a supported version of visual studio.

--------- end compiler output -----------
1 error, 0 warning



the information from the eclcc.log as following:

00000000 2018-11-28 06:33:34 2884 5544 Loading plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\auditlib.dll[lib_auditlib] version = AUDITLIB 1.0.1
00000001 2018-11-28 06:33:34 2884 5544 Loading plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\debugservices.dll[lib_debugservices] version = DEBUGSERVICES 1.0.1
00000002 2018-11-28 06:33:34 2884 5544 Plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\dmetaphone.dll exports getECLPluginDefinition but does not export ECL - not loading
00000003 2018-11-28 06:33:34 2884 5544 Loading plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\fileservices.dll[lib_fileservices] version = FILESERVICES 2.1.4
00000004 2018-11-28 06:33:34 2884 5544 Loading plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\logging.dll[lib_logging] version = LOGGING 1.0.1
00000005 2018-11-28 06:33:34 2884 5544 Loading plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\parselib.dll[lib_parselib] version = PARSELIB 1.0.1
00000006 2018-11-28 06:33:34 2884 5544 Loading plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\stringlib.dll[lib_stringlib] version = STRINGLIB 1.1.14
00000007 2018-11-28 06:33:34 2884 5544 Loading plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\timelib.dll[lib_timelib] version = TIMELIB 1.0.0
00000008 2018-11-28 06:33:34 2884 5544 Loading plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\unicodelib.dll[lib_unicodelib] version = UNICODELIB 1.1.06
00000009 2018-11-28 06:33:34 2884 5544 Loading plugin C:\Program Files (x86)\HPCCSystems\7.0.0\clienttools\plugins\workunitservices.dll[lib_WORKUNITSERVICES] version = WORKUNITSERVICES 1.0.2
0000000A 2018-11-28 06:33:34 2884 5544 Adding library: eclrtl
0000000B 2018-11-28 06:33:34 2884 5544 Adding object file: a.out.res
0000000C 2018-11-28 06:33:34 2884 5544 addSourceFile a.out.cpp
0000000D 2018-11-28 06:33:34 2884 5544 Compiling a.out
0000000E 2018-11-28 06:33:34 2884 5544 Remove temporaries
0000000F 2018-11-28 06:33:34 2884 5544 Could not remove file 'a.out.exp'
00000010 2018-11-28 06:33:34 2884 5544 Could not remove file 'a.out.lib'
00000011 2018-11-28 06:33:34 2884 5544 Failed to compile a.out
00000012 2018-11-28 06:33:34 2884 5544
---------- compiler output --------------
Error: Could not locate a supported version of visual studio.


--------- end compiler output -----------
jfeng@ln
 
Posts: 3
Joined: Tue Nov 27, 2018 3:26 pm

Fri Nov 30, 2018 9:25 am Change Time Zone

There is a batch file cl.bat and link.bat that is used to set up the path to the windows compilers. It may be that isn't correctly detecting that version of visual studio.

VS2017 changed the installation so that environment variables were not set up by default. If VS150COMNTOOLS is not defined that batch file checks for a file
%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat
and if it is present it suggests you run it first. Can you locate that file (VsDevCmd.bat) on your system, and let me know the full path?

If you run that batch file before calling eclcc it should work.
ghalliday
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 180
Joined: Wed May 18, 2011 9:48 am


Return to ECL

Who is online

Users browsing this forum: Bing [Bot] and 1 guest