Replies: 15 comments 102 replies
-
We can probably just ifdef these in Uconstants.c. Assuming they aren't really used. |
Beta Was this translation helpful? Give feedback.
-
The second problem is M3_STATIC_ASSERT macro expansion: cm3-boot-unix64le-d5.11.1-20210610.cpp:750:113: error: narrowing conversion of '-1' from 'int' to 'long unsigned int' [-Wnarrowing] |
Beta Was this translation helpful? Give feedback.
-
Get/setown: 7fe42fc static_assert: These error messages are bad, sorry. Or, maybe try: That should isolate the errors. |
Beta Was this translation helpful? Give feedback.
-
Is there a single CPP file available for version d5.11.4? |
Beta Was this translation helpful? Give feedback.
-
I have Python3 3.7.12 and CMake 3.21.3. I'm going to work with version d5.11.4 ;-) |
Beta Was this translation helpful? Give feedback.
-
In Haiku sockaddr_un looks like: `/*
#include <sys/socket.h> struct sockaddr_un { #endif /* _SYS_UN_H */ |
Beta Was this translation helpful? Give feedback.
-
In macro M3_STATIC_ASSERT I temporarily changed [(expr)?1:-1] to [(expr)?1:0]. Compilation of d5.11.1 works fine but unfortunately cm3 executable does not work. I catch runtime error: ` *** runtime error: Abort |
Beta Was this translation helpful? Give feedback.
-
I originally had these warnings: [dknoto@hms005 cm3-d5.11.3]$ make |
Beta Was this translation helpful? Give feedback.
-
With the removal of the #line directives, the situation has definitely improved: g++ -I/boot/system/develop/headers -I/boot/system/develop/headers/private/libs/compat/freebsd_network/compat/ -std=c++17 -fPIC -pipe -m64 -Os -g -c cm3.cpp |
Beta Was this translation helpful? Give feedback.
-
I have four static asserts: 4894117 | M3_STATIC_ASSERT(sizeof(m3_sockaddr_in) == sizeof(sockaddr_in)); We need to match the conversion from the native Haiku to the native M3 and vice versa. But is it used by the compiler? |
Beta Was this translation helpful? Give feedback.
-
BTW. Do you want my patches for cm3-boot-unix64le-d5.11.3 - *. cpp? |
Beta Was this translation helpful? Give feedback.
-
Vim is in Haiku: |
Beta Was this translation helpful? Give feedback.
-
Please slowly ;-) |
Beta Was this translation helpful? Give feedback.
-
In pylib.py, this code:
Change it to just:
? But there is the point, that to build the bootstrap ./boot1.py amd64_linux and the result should work on Haiku. ("64bit little endian Unix"). You shouldn't need the single file bootstrap. |
Beta Was this translation helpful? Give feedback.
-
Hi Jay, I have three more minor matters:
|
Beta Was this translation helpful? Give feedback.
-
Hi,
After a long period of activity in trying to compile CM3 for AMD64/Haiku, today I made another attempt. I managed to fix a lot of problems but there are two left and the first one is irremovable at this point:
../src/builtinOps/Typecode.m3: At global scope:
../src/builtinOps/Typecode.m3:613: error: 'F_GETOWN' was not declared in this scope
../src/builtinOps/Typecode.m3:575: note: in definition of macro 'X'
../src/builtinOps/Typecode.m3:614: error: 'F_SETOWN' was not declared in this scope
../src/builtinOps/Typecode.m3:575: note: in definition of macro 'X'
The F_GETOWN and F_SETOWN flags are not currently supported in Haiku and are not in the fcntl.h file.
Unfortunately, you have to wait for the Haiku team to implement it.
Greetings.
Beta Was this translation helpful? Give feedback.
All reactions