Re: Translation error (out of memory)

new topic     » goto parent     » topic index » view thread      » older message » newer message
Lnettnay said...

I wonder if Linux makes the difference or is it because you're running 4.1. What would also be interesting is to see if Linux and Windows generate the same C code for the same version of EU. I think I'll try looking at the code generated for a cross compile and look for a difference.

Thanks for your input.

Lonny

On 4.1 (the one with memstruct) euc -gcc -con sumtest.ex fails with dozens of errors (too much to be kept in the console buffer). Here are some:

main-.h:531:8: error: unknown type name 'uint8_t' 
 extern uint8_t *poke_addr; 
        ^~~~~~~ 
main-.h:532:8: error: unknown type name 'uint16_t' 
 extern uint16_t *poke2_addr; 
        ^~~~~~~~ 
main-.h:533:8: error: unknown type name 'uint32_t' 
 extern uint32_t *poke4_addr; 
        ^~~~~~~~ 
main-.h:534:8: error: unknown type name 'uint64_t' 
 extern uint64_t *poke8_addr; 
        ^~~~~~~~ 
main-.h:535:8: error: unknown type name 'uintptr_t' 
 extern uintptr_t *pokeptr_addr; 
        ^~~~~~~~~ 
In file included from struct.h:6:0, 
                 from init-.c:4: 
c:/euphoria/include/euphoria.h:30:8: error: redefinition of 'struct s1' 
 struct s1 { 
        ^~ 
In file included from struct.h:6:0, 
                 from init-.c:4: 
c:/euphoria/include/euphoria.h:37:8: error: redefinition of 'struct d' 
 struct d { 
        ^ 
In file included from struct.h:6:0, 
                 from init-.c:4: 
c:/euphoria/include/euphoria.h:42:8: error: redefinition of 'struct routine_list' 
 struct routine_list { 
        ^~~~~~~~~~~~ 
 
In file included from struct.h:6:0, 
                 from init-.c:4: 
c:/euphoria/include/euphoria.h:80:20: error: conflicting types for 'd_ptr' 
 typedef struct d  *d_ptr; 
                    ^~~~~ 
In file included from main-.h:1:0, 
                 from init-.c:2: 
c:/euphoria/include/euphoria.h:80:20: note: previous declaration of 'd_ptr' was here 
 typedef struct d  *d_ptr; 
                    ^~~~~ 
init-.c:1851:32: error: expected ')' before numeric constant 
     _360 = NewDouble((eudouble)4.29496729600000000000e+009L); 
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Couldn't compile file 'init-.c' 
Status: 1 Command: gcc  -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 
-m32 -Ic:/euphoria -ffast-math init-.c 

Jean-Marc

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu