1. version 4 translater error question

C:\EU4\SOURCE>euc -wat eu.ex 
User supplied library does not exist: 
    c:\c\Users\Shawn\Documents\development\hg\4.0\build\exp\eu.a 
C:\EU4\SOURCE> 

Why do I get this error error when the eu.a is located in my c:\eu4\bin directory ?

new topic     » topic index » view message » categorize

2. Re: version 4 translater error question

Did you try setting the location of eu.a in an eu.cfg file? Mine looks like this (on my linux box)

... 
[translate] 
-gcc 
-con 
-com /usr/share/euphoria/ 
-lib /usr/share/euphoria/bin/eu.a 
-lib-pic /usr/share/euphoria/bin/euso.a 
... 


Hope this helps,
Ira

new topic     » goto parent     » topic index » view message » categorize

3. Re: version 4 translater error question

BRyan said...

C:\EU4\SOURCE>euc -wat eu.ex 
User supplied library does not exist: 
    c:\c\Users\Shawn\Documents\development\hg\4.0\build\exp\eu.a 
C:\EU4\SOURCE> 

Why do I get this error error when the eu.a is located in my c:\eu4\bin directory ?

eu.a is the MinGW runtime library. eu.lib is the Watcom version. You have specified -wat in your command line, which indicates that you want the translator to use Watcom.

BTW, in 4.0.4, the translator is a little bit smarter about looking for the library. If you tell it -nobuild or -makefile, it will warn you that it can't find the library, but that won't abort the translation.

Matt

new topic     » goto parent     » topic index » view message » categorize

4. Re: version 4 translater error question

Matt:

The problem are the following:

1. The build libraries are always shipped in the bin directory.

2. config.wat contains the build setup used by the developer of the download.

3. config.gnu contains the build setup used by the developer of the download.

4. If you run configure.bat then It sets up build dir in source dir with eu.cfg
the eu.cfg points the -lib to the build dir for the libs. If you edit the eu.cfg
to point to the bin file it still looks in build directory.

5. How does a user run the configure shell script if they are not running Linux ?

In previous version of the translator all a user had to do was simply run the
translator without the any configuration what so ever.

Most of the users of Euphoria are not going to want to run configure files and
and edit files just to run the translator.

new topic     » goto parent     » topic index » view message » categorize

5. Re: version 4 translater error question

BRyan said...

Most of the users of Euphoria are not going to want to run configure files and
and edit files just to run the translator.

What are you trying to do? The configure.bat and configure scripts are purely for building the euphoria binaries themselves. You do not need to run them or deal with them at all if you simply want to translate your own programs.

The original problem you posted was a result of apparently attempting to use a runtime library for gcc with Watcom. These two compilers do not produce compatible object code or static libraries, so that will never work.

Matt

new topic     » goto parent     » topic index » view message » categorize

6. Re: version 4 translater error question

mattlewis said...
BRyan said...

Most of the users of Euphoria are not going to want to run configure files and
and edit files just to run the translator.

What are you trying to do? The configure.bat and configure scripts are purely for building the euphoria binaries themselves. You do not need to run them or deal with them at all if you simply want to translate your own programs.

The original problem you posted was a result of apparently attempting to use a runtime library for gcc with Watcom. These two compilers do not produce compatible object code or static libraries, so that will never work.

Matt

I'am simply typing ' euc -wat eu.ex 'in the source directory after downloading
euphoria-4.0.3.exe ( Windows installer (standard) ) without changing anything.

When I run the translator it looks like it is using the config.wat build dir to find the lib ??

C:\EU4\SOURCE>euc -wat eu.ex  
User supplied library does not exist:  
    c:\c\Users\Shawn\Documents\development\hg\4.0\build\exp\eu.a  
C:\EU4\SOURCE> 

Here is the config.wat look at the BUILDDIR setting in it

# Configuration for Watcom  
ASSERT=1  
SCP=pscp -C  
SSH=plink -C  
HG=hg  
ARCH=ix86  
EUPHORIA=1  
MANAGED_MEM=1  
DELTREE=del /Q /S  
RM=del /Q  
RMDIR=rmdir /Q/S  
EUDOC=eudoc.exe  
CREOLE=creole.exe  
TRUNKDIR=c:\Users\Shawn\Documents\development\hg\4.0  
BUILDDIR=c:\Users\Shawn\Documents\development\hg\4.0\build\tip  
   

new topic     » goto parent     » topic index » view message » categorize

7. Re: version 4 translater error question

Matt:

The install program places a eu.cfg in the source directory when it installs the program.

I edited the eu.cfg file. It was setup for the developers bulids locations

Now the translator tries to translate eu.ex. It creates a build directory and
and goes thru the one thru ten pass sequence but then when it generates
errors out with the following :

9L' 
init-.c(6268): Note! N2002: 'NewDouble' defined in: c:\EU4\include/euphoria.h(18 
4) 
init-.c(6268): Error! E1009: Expecting ';' but found ')' 
init-.c(6290): Error! E1009: Expecting ')' but found '9.99999999999999860000e-01 
0L' 
init-.c(6290): Note! N2002: 'NewDouble' defined in: c:\EU4\include/euphoria.h(18 
4) 
init-.c(6290): Error! E1009: Expecting ';' but found ')' 
init-.c(6335): Error! E1009: Expecting ')' but found '1.00000000000000000000e-00 
2L' 
init-.c(6335): Note! N2002: 'NewDouble' defined in: c:\EU4\include/euphoria.h(18 
4) 
init-.c(6335): Error! E1009: Expecting ';' but found ')' 
init-.c(6336): Error! E1009: Expecting ')' but found '9.00000000000000000000e+01 
5L' 
init-.c(6336): Note! N2002: 'NewDouble' defined in: c:\EU4\include/euphoria.h(18 
4) 
init-.c(6336): Error! E1147: Too many errors: compilation aborted 
Couldn't compile file 'init-.c' 
Status: 9 Command: wcc386  /dEWINDOWS /bt=nt /mf /w0 /zq /j /zp4 /fp5 /fpi87 /5r 
 /otimra /s /Ic:\EU4 init-.c 
Could not remove directory build-946187\ 

new topic     » goto parent     » topic index » view message » categorize

8. Re: version 4 translater error question

FOUND PROBLEM !

You can't translate eu.ex when you are in the resource directory

This Command works without any editing or changes from Eu4\ the root

C:\EU4>euc -wat \eu4\source\eu.ex

new topic     » goto parent     » topic index » view message » categorize

9. Re: version 4 translater error question

BRyan said...

Matt:

The install program places a eu.cfg in the source directory when it installs the program.

I edited the eu.cfg file. It was setup for the developers bulids locations

Thanks. That's obviously not correct, and is a bug with the way the installer is put together. I was wondering why you had a path with a component named "Shawn." Also, I think you should have both eu.a and eu.lib in your bin dir.

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu