Compile ec.ecf in EiffelStudio

63 views
Skip to first unread message

Jimmy Johnson

unread,
Feb 3, 2015, 3:59:46 PM2/3/15
to eiffelst...@googlegroups.com

I have completed the steps listed at https://dev.eiffel.com/Compiling_EiffelStudio, but "Compiling EiffelStudio" fails.  When attempting to use EiffelStudio or the command line I get a VD00: General configuration parsing error...Could not open file: /framework/cli_writer/cli_writer.ecf...

What am I missing?

Below the tail end of quick_confiture, the error message, my environment variables, and file permissions:

/bin/rm -f meltdump

if test -f meltdump; then \

/bin/mv meltdump meltdump~; fi

cc -o meltdump meltdump.o   -lm

quick_configure terminated.

jjjs-iMac:C jjj$ cd ..

jjjs-iMac:14.05_dev jjj$ cd Eiffel/Ace

jjjs-iMac:Ace jjj$ ec -config ec.ecf -target bench -c_compile

Eiffel Compilation Manager

Version 14.05.9.5417 GPL Edition - macosx-x86-64


-------------------------------------------------------------------------------


Error code: VD00


General configuration parsing error.

What to do: fix the configuration file.


Could not open file: /framework/cli_writer/cli_writer.ecf

$EIFFEL_SRC\framework\cli_writer\cli_writer.ecf

Configuration: /Users/jjj/14.05_dev/Eiffel/Ace/ec.ecf


-------------------------------------------------------------------------------


Press <Return> to resume compilation or <Q> to quit

q

jjjs-iMac:Ace jjj$ cd ..

jjjs-iMac:Eiffel jjj$ cd ..

jjjs-iMac:14.05_dev jjj$ cd fr

framework/    free_add_ons/ 

jjjs-iMac:14.05_dev jjj$ cd ..

jjjs-iMac:~ jjj$ ls

14.05_dev Eiffel User Files Pictures jj_downloads

Desktop Library Public jj_source

Documents Movies VirtualBox VMs z_eifgens

Downloads Music foo

jjjs-iMac:~ jjj$ cd 14.05

-bash: cd: 14.05: No such file or directory

jjjs-iMac:~ jjj$ cd 14.05_dev/

jjjs-iMac:14.05_dev jjj$ 

jjjs-iMac:14.05_dev jjj$ 

jjjs-iMac:14.05_dev jjj$ 

jjjs-iMac:14.05_dev jjj$ 

jjjs-iMac:14.05_dev jjj$ 

jjjs-iMac:14.05_dev jjj$ 

jjjs-iMac:14.05_dev jjj$ 

jjjs-iMac:14.05_dev jjj$ printenv

TERM_PROGRAM=Apple_Terminal

SHELL=/bin/bash

TERM=xterm-256color

TMPDIR=/var/folders/1m/l9dyttnn1yjbcpdv_bwgvvbm0000gn/T/

Apple_PubSub_Socket_Render=/tmp/launch-5boudO/Render

TERM_PROGRAM_VERSION=326

TERM_SESSION_ID=B84A8078-82AA-427A-9301-6EF19C7D6D0D

USER=jjj

ISE_EIFFEL=/Applications/MacPorts/Eiffel_14.05

SSH_AUTH_SOCK=/tmp/launch-00Wkob/Listeners

__CF_USER_TEXT_ENCODING=0x1F5:0:0

PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Applications/MacPorts/Eiffel_14.05/studio/spec/macosx-x86-64/bin:/Applications/MacPorts/Eiffel_14.05/library/gobo/svn/../spec/macosx-x86-64/bin

__CHECKFIX1436934=1

ISE_PLATFORM=macosx-x86-64

PWD=/Users/jjj/14.05_dev

EIFFEL_SCR=14.05_dev

LANG=en_US.UTF-8

SHLVL=1

HOME=/Users/jjj

LOGNAME=jjj

DISPLAY=/tmp/launch-rRrWLm/org.macosforge.xquartz:0

GOBO=/Applications/MacPorts/Eiffel_14.05/library/gobo/svn

SECURITYSESSIONID=186a4

_=/usr/bin/printenv

OLDPWD=/Users/jjj

jjjs-iMac:14.05_dev jjj$ 

jjjs-iMac:14.05_dev jjj$ 

jjjs-iMac:14.05_dev jjj$ cd framework/cli_writer

jjjs-iMac:cli_writer jjj$ ls -l

total 32

drwxrwxrwx  11 jjj  staff   374 Feb  3 01:12 Clib

-rw-rw-rw-   1 jjj  staff   682 Feb  3 01:12 build.eant

-rw-rw-rw-   1 jjj  staff  2581 Feb  3 01:12 cli_writer-safe.ecf

-rw-rw-rw-   1 jjj  staff  2511 Feb  3 01:12 cli_writer.ecf

-rw-rw-rw-   1 jjj  staff    15 Feb  3 01:12 cli_writer.lic

drwxrwxrwx   4 jjj  staff   136 Feb  3 01:12 implementation

drwxrwxrwx   7 jjj  staff   238 Feb  3 01:12 meta_data

drwxrwxrwx  16 jjj  staff   544 Feb  3 01:12 pe_file

drwxrwxrwx   3 jjj  staff   102 Feb  3 01:12 sample

jjjs-iMac:cli_writer jjj$ 

Jocelyn Fiat

unread,
Feb 3, 2015, 5:24:11 PM2/3/15
to eiffelst...@googlegroups.com
According to the output, the environment variable EIFFEL_SRC is not set.

-- Jocelyn


--
For more messaging options, visit this group at http://forum.eiffel.com.
Information on the Eiffelstudio project: http://dev.eiffel.com.



--
Jocelyn
------------------------------------------------------------------------
Eiffel Software
805-685-1006
http://www.eiffel.com
Customer support: http://support.eiffel.com
User group: http://groups.eiffel.com/join
------------------------------------------------------------------------

Jimmy Johnson

unread,
Feb 3, 2015, 5:58:42 PM2/3/15
to eiffelst...@googlegroups.com
My initial reaction was, "How did you know this from the output?"  What output?  The message from the compiler?

Ah, I see I have EIFFEL_SCR instead of EIFFEL_SRC.  But, could you tell from the VD00:  "Could not open file" message that that was the error?

Thanks,
jjj

Jimmy Johnson

unread,
Feb 3, 2015, 6:58:21 PM2/3/15
to eiffelst...@googlegroups.com
I tried to fix it.  What's wrong now?
Below is the new error followed by the contents of my .profile file


jjjs-iMac:Ace jjj$ ec -config ec.ecf -target bench -c_compile

Eiffel Compilation Manager

Version 14.05.9.5417 GPL Edition - macosx-x86-64


-------------------------------------------------------------------------------


Error code: VD00


General configuration parsing error.

What to do: fix the configuration file.


Could not open file: /Users/jjj/14.05_dev/Eiffel/Ace/14.05_dev/framework/cli_writer/cli_writer.ecf

$EIFFEL_SRC\framework\cli_writer\cli_writer.ecf

Configuration: /Users/jjj/14.05_dev/Eiffel/Ace/ec.ecf


-------------------------------------------------------------------------------



# MacPorts Installer addition on 2015-01-26_at_20:38:38: adding an appropriate PATH variable for use with MacPorts.

export PATH="/opt/local/bin:/opt/local/sbin:$PATH"

# Finished adapting your PATH environment variable for use with MacPorts.



#additions for Eiffel

export ISE_PLATFORM=macosx-x86-64 

export ISE_EIFFEL=/Applications/MacPorts/Eiffel_14.05 

export GOBO=$ISE_EIFFEL/library/gobo/svn 

export PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin:$GOBO/../spec/$ISE_PLATFORM/bin

#end additions for Eiffel


#additions for Compiling Eiffel

export EIFFEL_SRC=14.05_dev

#end additions for Compiling Eiffel




On Tuesday, February 3, 2015 at 5:24:11 PM UTC-5, Jocelyn Fiat wrote:

Emmanuel Stapf

unread,
Feb 4, 2015, 3:29:27 AM2/4/15
to eiffelst...@googlegroups.com

You are wrongly defining $EIFFEL_SRC

 

export EIFFEL_SRC=14.05_dev

 

It should read:

 

export EIFFEL_SRC=/Users/jjj/14.05_dev

 

Manu

 

--

Jimmy Johnson

unread,
Feb 4, 2015, 11:16:55 AM2/4/15
to eiffelst...@googlegroups.com, ma...@eiffel.com
Thank you.  A least now I can explore the classes in EiffelStudio.

But I get a linker error.  The last few lines of the output is below:


/Applications/MacPorts/Eiffel_14.05/EiffelStudio.app/Contents/MacOS/../Resources/../../../studio/spec/macosx-x86-64/include/eif_types.h:252:20: note: expanded from macro 'it_p'
#define it_p  item.p
                   ^
In file included from big_file_C7_c.c:39:
./gt210.c:18816:13: warning: expression result unused [-Wunused-value]
         ((arg1), (arg2));
                   ^~~~
./gt210.c:18795:20: note: expanded from macro 'arg2'
#define arg2 arg2x.it_i4
             ~~~~~~^~~~~
/Applications/MacPorts/Eiffel_14.05/EiffelStudio.app/Contents/MacOS/../Resources/../../../studio/spec/macosx-x86-64/include/eif_types.h:243:20: note: expanded from macro 'it_i4'
#define it_i4 item.i4
                   ^~
1 warning generated.
2 warnings generated.
Undefined symbols for architecture x86_64:
  "_eif_store_object", referenced from:
      _eif_net_basic_store in libmtnet.a(MTstorable.o)
      _eif_net_independent_store in libmtnet.a(MTstorable.o)
      _eif_net_general_store in libmtnet.a(MTstorable.o)
  "_rt_setup_store", referenced from:
      _store_append in libmtwcompiler.a(MTwpstore.o)
  "_rt_store_object", referenced from:
      _parsing_store in libmtwcompiler.a(MTwpstore.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ec] Error 1

Emmanuel Stapf [ES]

unread,
Feb 4, 2015, 11:30:16 AM2/4/15
to Jimmy Johnson, eiffelst...@googlegroups.com

Hi

The issue here is that you need 15.01 to compile the latest source code. You can get it from https://ftp.eiffel.com/pub/download/15.01

Regards
Manu

Jimmy Johnson

unread,
Feb 17, 2015, 5:21:48 PM2/17/15
to eiffelst...@googlegroups.com, jjj...@g.uky.edu
I can now compile ec.ecf in EiffelStudio and explore the classes.  How do I run it?  Can I run it in EiffelStudio and trace the execution?  I tried setting the working directory to location of an ecf file and used the name of the ecf file as arguments.

Emmanuel Stapf

unread,
Feb 18, 2015, 2:49:56 AM2/18/15
to eiffelst...@googlegroups.com

When you press run it launches ec without argument. So to launch the gui of EiffelStudio, you need to provide the -gui command line option. To specify a config file you need to provide the -config option followed by the path to the ECF.

 

Manu

 

From: eiffelst...@googlegroups.com [mailto:eiffelst...@googlegroups.com] On Behalf Of Jimmy Johnson
Sent: Tuesday, February 17, 2015 23:22
To: eiffelst...@googlegroups.com
Cc: jjj...@g.uky.edu
Subject: Re: [EiffelStudio Dev] Compile ec.ecf in EiffelStudio

 

I can now compile ec.ecf in EiffelStudio and explore the classes.  How do I run it?  Can I run it in EiffelStudio and trace the execution?  I tried setting the working directory to location of an ecf file and used the name of the ecf file as arguments.

--

Reply all
Reply to author
Forward
0 new messages