ysbaddaden / gc

A garbage collector for Crystal
95 stars 6 forks source link

Make on macOS Mojave #9

Closed proyb6 closed 5 years ago

proyb6 commented 5 years ago

Trying out:

Ss-MacBook-Pro:immix s$ make -B CUSTOM=-DNDEBUG
cc -c -DNDEBUG -g -fPIC -O3 -Wall -Wextra -pedantic -std=c99 -Iinclude -funwind-tables -o build/immix.o src/immix.c
cc -c -DNDEBUG -g -fPIC -O3 -Wall -Wextra -pedantic -std=c99 -Iinclude -funwind-tables -o build/global_allocator.o src/global_allocator.c
cc -c -DNDEBUG -g -fPIC -O3 -Wall -Wextra -pedantic -std=c99 -Iinclude -funwind-tables -o build/local_allocator.o src/local_allocator.c
cc -c -DNDEBUG -g -fPIC -O3 -Wall -Wextra -pedantic -std=c99 -Iinclude -funwind-tables -o build/collector.o src/collector.c
src/collector.c:215:30: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'void *' [-Wint-conversion]
    Collector_addRoots(self, GC_DATA_START, GC_DATA_END, ".data");
                             ^~~~~~~~~~~~~
include/config.h:38:23: note: expanded from macro 'GC_DATA_START'
#define GC_DATA_START get_etext()
                      ^~~~~~~~~~~
src/collector.c:164:51: note: passing argument to parameter 'top' here
void GC_Collector_addRoots(Collector *self, void *top, void *bottom, __attribute__((__unused__)) const char *source) {
                                                  ^
src/collector.c:215:45: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'void *' [-Wint-conversion]
    Collector_addRoots(self, GC_DATA_START, GC_DATA_END, ".data");
                                            ^~~~~~~~~~~
include/config.h:39:21: note: expanded from macro 'GC_DATA_END'
#define GC_DATA_END get_edata()
                    ^~~~~~~~~~~
src/collector.c:164:62: note: passing argument to parameter 'bottom' here
void GC_Collector_addRoots(Collector *self, void *top, void *bottom, __attribute__((__unused__)) const char *source) {
                                                             ^
src/collector.c:216:30: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'void *' [-Wint-conversion]
    Collector_addRoots(self, GC_BSS_START, GC_BSS_END, ".bss");
                             ^~~~~~~~~~~~
include/config.h:40:22: note: expanded from macro 'GC_BSS_START'
#define GC_BSS_START get_edata()
                     ^~~~~~~~~~~
src/collector.c:164:51: note: passing argument to parameter 'top' here
void GC_Collector_addRoots(Collector *self, void *top, void *bottom, __attribute__((__unused__)) const char *source) {
                                                  ^
src/collector.c:216:44: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'void *' [-Wint-conversion]
    Collector_addRoots(self, GC_BSS_START, GC_BSS_END, ".bss");
                                           ^~~~~~~~~~
include/config.h:41:20: note: expanded from macro 'GC_BSS_END'
#define GC_BSS_END get_end()
                   ^~~~~~~~~
src/collector.c:164:62: note: passing argument to parameter 'bottom' here
void GC_Collector_addRoots(Collector *self, void *top, void *bottom, __attribute__((__unused__)) const char *source) {
                                                             ^
4 warnings generated.
cc -c -DNDEBUG -g -fPIC -O3 -Wall -Wextra -pedantic -std=c99 -Iinclude -funwind-tables -o build/hash.o src/hash.c
ar -rc immix.a build/immix.o build/global_allocator.o build/local_allocator.o build/collector.o build/hash.o
ysbaddaden commented 5 years ago

As stated on the README: only linux/glibc is supported. See #6