Comments (3)
gcc version 13.2.0 on Windows 10 with MSYS2 20240113
from cyclone.
If I add
-Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-implicit-function-declaration -D_POSIX_MONOTONIC_CLOCK
(I added the disabled warning just to find the problems faster ;))
and in time.c
#ifdef CLOCK_MONOTONIC
clock_gettime(CLOCK_MONOTONIC, &now);
#else
clock_gettime(CLOCK_REALTIME, &now);
#endif
then I got everything compiled but unfortunately ran into another issue
C:/home/sw/msys64/usr/include/sys/errno.h:18: warning: "errno" redefined
18 | #define errno (__errno())
|
In file included from C:/home/sw/msys64/ucrt64/lib/gcc/x86_64-w64-mingw32/13.2.0/include/stddef.h:1,
from C:/home/sw/msys64/usr/include/sys/cdefs.h:47,
from C:/home/sw/msys64/usr/include/sys/types.h:21,
from C:/home/sw/msys64/usr/local/include/ck_malloc.h:31,
from C:/home/sw/msys64/usr/local/include/ck_hs.h:31,
from runtime.c:11:
C:/home/sw/msys64/ucrt64/include/stddef.h:19: note: this is the location of the previous definition
19 | #define errno (_errno())
|
In file included from runtime.c:19:
C:/home/sw/msys64/usr/include/ctype.h:66:17: error: expected ';', ',' or ')' before numeric constant
66 | #define _X 0100
| ^~~~
make: *** [Makefile:85: libcyclone.a] Error 1
I will continue my investigations
from cyclone.
Next thing I for the sake of building I commented out
/#define _X 0100/
in ctype .h maybe it is defined somewhere else
and added runtime.c the
#ifdef CLOCK_MONOTONIC
clock_gettime(CLOCK_MONOTONIC, &now);
#else
clock_gettime(CLOCK_REALTIME, &now);
#endif
Now I get to the final link step ...
and run into some undefined references :(
---[ Concurrency Kit has installed successfully.
'Makefile.config.msys2' -> 'Makefile.config'
cc cyclone.c -O2 -fPIC -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-implicit-function-declaration -D_POSIX_MONOTONIC_CLOCK -Iinclude -L. -I/usr/local/include -I/usr/include -L/usr/local/lib -c -o cyclone.o
cc cyclone.o scheme/base.o scheme/read.o scheme/write.o scheme/case-lambda.o scheme/char.o scheme/complex.o scheme/cxr.o scheme/eval.o scheme/file.o scheme/inexact.o scheme/lazy.o scheme/load.o scheme/process-context.o scheme/repl.o scheme/time.o scheme/cyclone/common.o scheme/cyclone/libraries.o scheme/cyclone/macros.o scheme/cyclone/transforms.o scheme/cyclone/ast.o scheme/cyclone/cps-optimizations.o scheme/cyclone/cgen.o scheme/cyclone/util.o scheme/cyclone/pretty-print.o scheme/cyclone/hashset.o scheme/cyclone/primitives.o libs/cyclone/concurrent.o libs/cyclone/foreign.o libs/cyclone/match.o libs/cyclone/test.o srfi/1.o srfi/2.o srfi/18.o srfi/27.o srfi/28.o srfi/60.o srfi/69.o srfi/106.o srfi/111.o srfi/113.o srfi/117.o srfi/121.o srfi/128.o srfi/132.o srfi/133.o srfi/143.o -pthread -lcyclone -lck -lm -lcyclonebn -ldl -L. -L/usr/local/lib -L/mingw64/lib -o cyclone
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: scheme/base.o:base.c:(.rdata$.refptr._impure_ptr[.ref
ptr._impure_ptr]+0x0): undefined reference to _impure_ptr' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x38a9): undefined reference to
shutdown'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3ab1): undefined reference
to recv' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3b6c): undefined reference to
send'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3c21): undefined reference
to __errno' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3c3a): undefined reference to
accept'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3e54): undefined reference
to getaddrinfo' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3e79): undefined reference to
socket'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3e93): undefined reference
to bind' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3ea9): undefined reference to
freeaddrinfo'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3eb5): undefined reference
to listen' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x3f63): undefined reference to
gai_strerror'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x4055): undefined reference
to getaddrinfo' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x407f): undefined reference to
socket'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x4097): undefined reference
to connect' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x40ad): undefined reference to
freeaddrinfo'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: srfi/106.o:106.c:(.text+0x417b): undefined reference
to gai_strerror' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(runtime.o):runtime.c:(.text+0x2d5f): u ndefined reference to
__errno'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(runtime.o):runtime.c:(.text+0x2d69): u
ndefined reference to __errno' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(runtime.o):runtime.c:(.text+0x4e75): u ndefined reference to
select'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(runtime.o):runtime.c:(.text+0x51c0): u
ndefined reference to __errno' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(runtime.o):runtime.c:(.text+0xcd53): u ndefined reference to
__errno'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(runtime.o):runtime.c:(.text+0xcd81): u
ndefined reference to __errno' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(runtime.o):runtime.c:(.text+0xcd92): u ndefined reference to
errno'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(runtime.o):runtime.c:(.rdata$.refptr.
ctype[.refptr.ctype]+0x0): undefined reference to _ctype_' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(mstreams.o):mstreams.c:(.text+0xd3): u ndefined reference to
__errno'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(mstreams.o):mstreams.c:(.text+0x121):
undefined reference to __errno' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(mstreams.o):mstreams.c:(.text+0x213): undefined reference to
__errno'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(mstreams.o):mstreams.c:(.text+0x261):
undefined reference to __errno' C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(mstreams.o):mstreams.c:(.text+0x327): undefined reference to
__errno'
C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(mstreams.o):mstreams.c:(.text+0x349):
more undefined references to __errno' follow C:/home/sw/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./libcyclone.a(hashset.o):hashset.c:(.text+0x255): un defined reference to
__assert_func'
from cyclone.
Related Issues (20)
- Invalid equality between positive and negative infinity HOT 1
- Rationals (not supported) cause Cyclone to give some confusing answers HOT 2
- Add code formatting tooling / CI HOT 2
- Optimize memory allocation for symbols
- Evaluating `1#` results in `#f`? HOT 8
- Latest rational unit tests broken on mac OS HOT 1
- `truncate-quotient` should return exact number where possible HOT 1
- Allow reader to support #i / #e for rational numbers
- Add unit testing for runtime
- -I / -A not working for lib-dirs in $HOME HOT 3
- Improve CI release tooling
- Does Cyclone Scheme have a method of handling dates? HOT 3
- +i and -i are not bound; (sqrt -1) evaluates to NAN HOT 3
- Trigonometric functions do not generate complex results
- string->number does not handle complex numbers
- Memory usage and tail calls HOT 11
- ConcurrencyKit Release 0.7.2 HOT 1
- Add flag to turn off beta expansion
- Apply in icyc HOT 5
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 cyclone.