Project

General

Profile

Include full example how to compile and set environment for Oberon

Added by Florian Negele about 3 years ago

Ivan Ivanov wrote:

Florian, please include to doc full example, wath run compile anf set env for Oberon. Best practics -- all parameters for compiler set over enviroument.

out.sym: fatal error: failed to open symbol file
./Test00.mod:3:8: note: while importing module 'Out'

Since the filename of your example contains a forward slash, I am assuming you run the compiler under Linux and have downloaded its source code:

  1. Build the compiler using "make hosttarget", see readme file.
  2. Compile your code using "utilities/ecsd Test00.Mod", see Section 3.7 of the manual [1].
  3. Optional: Install the compiler using "sudo make install" such that ecsd is available from everywhere and the source code no longer necessary, see readme file.

[1] https://ecs.openbrace.org/manual/manualse14.html


Replies (2)

RE: Include full example how to compile and set environment for Oberon - Added by Sergey Durmanov over 2 years ago

I try to build ecs in android termux environment (clang-15), but failed:

~/ecs $ make all
In file included from cdopt.cpp:22:
In file included from ./cdgenerator.hpp:22:
./code.hpp:206:25: fatal error: use of class template 'TypeModel' requires template arguments
using Value = typename TypeModel::Value;
^
./code.hpp:134:19: note: template is declared here
struct ECS::Code::TypeModel : Type
^
1 error generated.
make: *** [makefile:668: tools/cdopt.o] Error 1

RE: Include full example how to compile and set environment for Oberon - Added by Florian Negele over 2 years ago

Please consider submitting bug reports for this kind of issues, but thanks nevertheless. See issue #630 for a temporary fix.

    (1-2/2)