Comments (4)
this is checked both with 1.1 and 1.95 versions.
from compiler.
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.
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
- make uninstall
then check that opt/voc has been removed, and remove it manually if not. - make full
Then rm test.[ch] test.sym test.o etc. before trying voc again.
from compiler.
Oops, markdown! both those 'address's should be 'address*'.
from compiler.
Related Issues (20)
- x11 examples HOT 1
- runtime should kill when assigning to an unallocated pointer (was: returning pointer to a local variable) HOT 21
- uninitialized variable usage warning
- stabs debug format is not supported at least on one aarch64 platform. HOT 2
- Create Directory HOT 7
- pointer to record broken
- warning: implicit declaration of function
- Wrong Position when error occured HOT 2
- update gcc string to consider MODULES environment variable
- MOD issue HOT 21
- Improved C language interface HOT 11
- passing VAR s: POINTER TO ARRAY OF CHAR passes compilation but later doesn't compile in C HOT 2
- libvoc-02.so not found after make full HOT 1
- Files.WriteSet wrong type in SYSTEM.VAL HOT 3
- Make does not properly uninstall: typo in variable name HOT 1
- Error in WITH statement with pointers to related type extended records HOT 7
- Documentation of voc internals HOT 7
- Negative array indices are permitted, sometimes produce segmentation fault HOT 1
- err 16 MODULE expected on Ubuntu 24.04 HOT 1
- voc code generation for __SETOF macro.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compiler.