Giter Club home page Giter Club logo

Comments (4)

norayr avatar norayr commented on September 14, 2024

this is checked both with 1.1 and 1.95 versions.

from compiler.

norayr avatar norayr commented on September 14, 2024

with ADRINT branch, compilation issues:

noch@debed /tmp/ocat $ /opt/voc/bin/voc -m test.Mod 
test.Mod  compiling test.  Main program.  1311 chars.
In file included from test.c:8:0:
test.c: In function ‘EnumPtrs’:
test.c:26:19: warning: passing argument 2 of ‘SYSTEM_ENUMR’ from incompatible pointer type
  __ENUMR(&test_R, Texts_Reader__typ, 72, 1, P);
                   ^
/opt/voc/2/include/SYSTEM.h:323:57: note: in definition of macro ‘__ENUMR’
 #define __ENUMR(adr, typ, size, n, P) SYSTEM_ENUMR(adr, typ, (address)(size), (address)(n), P)
                                                         ^
/opt/voc/2/include/SYSTEM.h:301:13: note: expected ‘int64 *’ but argument is of type ‘int32 *’
 extern void SYSTEM_ENUMR  (void *adr, address *typ, address size, address n, void (*P)());

however R.eot becomes TRUE on x86_64 when it has to. (:

from compiler.

dcwbrown avatar dcwbrown commented on September 14, 2024

Hmm. Texts_Reader_typ is declared on line 181 of Texts.c as 'address_'. And SYSTEM_ENUMR expects an 'address_', so initially I'm stumped.
I don't get the compiler warning on my build in cygwin.
The error suggests that texts.c was compiled with address=int32, and SYSTEM.H with address=int64. I can't easily see how that would be possible.
To guarantee a clean build you can do

  1. make uninstall
    then check that opt/voc has been removed, and remove it manually if not.
  2. make full
    Then rm test.[ch] test.sym test.o etc. before trying voc again.

from compiler.

dcwbrown avatar dcwbrown commented on September 14, 2024

Oops, markdown! both those 'address's should be 'address*'.

from compiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.