1. Error When Compiling with EUC

I'm getting the following error when trying to compile a program. I'm requesting support to tell me what I need to do to resolve this issue.

Thank you! smile

Compiling  71% sort.c 
Compiling  75% scinot.c 
Compiling  80% settings.c 
Compiling  84% console.c 
Compiling  88% eumem.c 
Compiling  93% cache.c 
Compiling  97% helper.c 
Linking 100% ..\uninstall-src.exe 
c:/euphoria/bin/eu.a(be_runtime.o):be_runtime.c:(.text+0x1d0): undefined reference to `__ms_vsnprintf' 
c:/euphoria/bin/eu.a(be_runtime.o):be_runtime.c:(.text+0x1db9): undefined reference to `_time32' 
c:/euphoria/bin/eu.a(be_runtime.o):be_runtime.c:(.text+0x1dc9): undefined reference to `_localtime32' 
c:/euphoria/bin/eu.a(be_runtime.o):be_runtime.c:(.text+0x23f2): undefined reference to `_time32' 
c:/euphoria/bin/eu.a(be_runtime.o):be_runtime.c:(.text+0x2402): undefined reference to `_localtime32' 
C:/TDM-GCC-32/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: c:/euphoria/bin/eu.a(be_runtime.o): bad reloc address 0x4 in section `.data' 
C:/TDM-GCC-32/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation 
collect2.exe: error: ld returned 1 exit status 
Unable to link C:\Bitnami\wampstack-5.6.24-0\apache2\htdocs\files\uninstall-src.exe 
Status: 1 Command: gcc -o C:/Bitnami/WAMPST~1.24-/apache2/htdocs/files/uninstall-src.exe  init-.o uninstall-src.o main-.o filesys.o datetime.o dll.o machine.o memory.o types.o get.o io.o text.o convert.o search.o sequence.o sort.o scinot.o 
settings.o console.o eumem.o cache.o helper.o   c:/euphoria/bin/eu.a -m32 

new topic     » topic index » view message » categorize

2. Re: Error When Compiling with EUC

euphoric said...

I'm getting the following error when trying to compile a program. []

too much different version compiler built eu,a causing a linking error? might have to rebuild euphoria with the same compiler

are you building a 32bit program with a 64 bit euphoria in the path?

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

3. Re: Error When Compiling with EUC

ne1uno said...
euphoric said...

I'm getting the following error when trying to compile a program. []

too much different version compiler built eu,a causing a linking error? might have to rebuild euphoria with the same compiler

are you building a 32bit program with a 64 bit euphoria in the path?

I'm not sure. I'll check! Thank you.

Follow-up: My version of euc is 4.1.0 development, 32-bit Windows. Running Windows 10 on this PC.

I don't know what else to check to answer your question.

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

4. Re: Error When Compiling with EUC

euphoric said...
ne1uno said...
euphoric said...

I'm getting the following error when trying to compile a program. []

too much different version compiler built eu,a causing a linking error? might have to rebuild euphoria with the same compiler

are you building a 32bit program with a 64 bit euphoria in the path?

I'm not sure. I'll check! Thank you.

Follow-up: My version of euc is 4.1.0 development, 32-bit Windows. Running Windows 10 on this PC.

I don't know what else to check to answer your question.

you may be able to build just the library. assuming you have the source dir. hg clone and update or grab the zip of a similar version. configure may want to know the path to hg if it can't find it.

configure 
make library 
then copy eu.a to the bin dir of euphoria

you may also get the source distribution from the download page. and bind is another option if you just need an executable.

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

5. Re: Error When Compiling with EUC

Hello everybody, I meet exactly the same problem when compiling vith gcc and Eu 4.1 under Windows 10

C:\Euphoria\demo>euc -gcc animal.ex 
Build directory: build-007763\ 
Translating code, pass: 1 2 3  generating 
Compiling with GCC 
Compiling  14% init-.c 
Compiling  57% animal.c 
Compiling  85% main-.c 
Linking 100% ..\animal.exe 
C:/Euphoria/bin/eu.a(be_machine.o):be_machine.c:(.text+0x94) : référence indéfinie vers « __ms_vsnprintf » 
C:/Euphoria/bin/eu.a(be_w.o):be_w.c:(.text+0xbc3) : référence indéfinie vers « __ms_vsnprintf » 
C:/Euphoria/bin/eu.a(be_w.o):be_w.c:(.text+0xbe4) : référence indéfinie vers « __ms_vsnprintf » 
C:/Euphoria/bin/eu.a(be_runtime.o):be_runtime.c:(.text+0x1d0) : référence indéfinie vers « __ms_vsnprintf » 
collect2.exe: error: ld returned 1 exit status 
Unable to link C:\Euphoria\demo\animal.exe 
Status: 1 Command: gcc -o C:/Euphoria/demo/animal.exe  init-.o animal.o main-.o   C:/Euphoria/bin/eu.a -m32 

Please, if you have an idea tell me !

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

6. Re: Error When Compiling with EUC

clkeriolet said...

Please, if you have an idea tell me !

Which GCC compiler have you installed?

-Greg

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

7. Re: Error When Compiling with EUC

ghaberek said...
clkeriolet said...

Please, if you have an idea tell me !

Which GCC compiler have you installed?

Greg, I'm using TDM-GCC. Here's output of gcc -v:

PS C:\Users\FOADDEV> gcc -v 
Using built-in specs. 
COLLECT_GCC=C:\TDM-GCC-32\bin\gcc.exe 
COLLECT_LTO_WRAPPER=C:/TDM-GCC-32/bin/../libexec/gcc/mingw32/5.1.0/lto-wrapper.exe 
Target: mingw32 
Configured with: ../../../src/gcc-5.1.0/configure --build=mingw32 --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ 
--enable-libgomp --enable-lto --enable-graphite --enable-libstdcxx-debug --enable-threads=posix --enable-version-specifi 
c-runtime-libs --enable-fully-dynamic-string --enable-libstdcxx-threads --enable-libstdcxx-time --with-gnu-ld --disable- 
werror --disable-nls --disable-win32-registry --disable-symvers --enable-cxx-flags='-fno-function-sections -fno-data-sec 
tions -DWINPTHREAD_STATIC' --prefix=/mingw32tdm --with-local-prefix=/mingw32tdm --with-pkgversion=tdm-1 --enable-sjlj-ex 
ceptions --with-bugurl=http://tdm-gcc.tdragon.net/bugs 
Thread model: posix 
gcc version 5.1.0 (tdm-1) 

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

8. Re: Error When Compiling with EUC

euphoric said...

Greg, I'm using TDM-GCC. Here's output of gcc -v:

PS C:\Users\FOADDEV> gcc -v 
Using built-in specs. 
COLLECT_GCC=C:\TDM-GCC-32\bin\gcc.exe 

If you're on a 64-bit version of Windows, make sure you're using TDM-GCC-64 instead. It can compile to 32-bit and 64-bit.

-Greg

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

9. Re: Error When Compiling with EUC

ghaberek said...
euphoric said...

Greg, I'm using TDM-GCC. Here's output of gcc -v:

PS C:\Users\FOADDEV> gcc -v 
Using built-in specs. 
COLLECT_GCC=C:\TDM-GCC-32\bin\gcc.exe 

If you're on a 64-bit version of Windows, make sure you're using TDM-GCC-64 instead. It can compile to 32-bit and 64-bit.

I think I tried both... I will try again.

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

10. Re: Error When Compiling with EUC

euphoric said...

I think I tried both... I will try again.

I've got a fresh Windows 10 Pro 64-bit virtual machine here. I downloaded the Euphoria 4.1 beta 2 for Windows and the TDM-GCC-64 5.1.0 and installed both.

PATH=C:\Euphoria\bin;C:\TDM-GCC-64\bin 

I ran the following PowerShell command to compile all of the demos.

cd C:\Euphoria\demo 
Get-ChildItem -File *.ex | Foreach { euc $_.Name } 

Everything built just fine with the exception of dsearch.ex.

Build directory: build-031649\ 
C:\Euphoria\demo\dsearch.ex:120 
<0074>:: Errors resolving the following references: 
    'open_dll' (dsearch.ex:120) is not a builtin. 
 
        return eu:open_dll(name) 
                         ^ 

-Greg

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

11. Re: Error When Compiling with EUC

ghaberek said...

Everything built just fine...

I've got the 64-bit version installed now. It still doesn't work. Seems worse. grin

I tried euc guru.ex, and even that fails spectacularly.

I guess I need to wipe my entire PC and reinstall everything, because I have no idea how to diagnose this.

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

12. Re: Error When Compiling with EUC

Thanks a lot Greg, As you said my Windows 10 was 64 bit - I have downloaded TDM-GCC-64 and fantastic it Works ! (a least with color.ex) I shall try now on my own software . (I cross my fingers !) (a few days after) ->My soft compile perfectly, Youpee ! The future is fully open ...

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

Search



Quick Links

User menu

Not signed in.

Misc Menu