termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

addpkg(main/cyclone): 0.36.0

Open tqfx opened this issue 1 year ago • 8 comments

Close #20535

tqfx avatar Jun 16 '24 16:06 tqfx

Looking at @cattokomo's work, it seems like libck doesn't work for arm. Maybe some of the other patches can be useful for getting i686 building. https://github.com/cattokomo/termux-packages/tree/add-libck-cyclone/packages/cyclone

TomJo2000 avatar Jun 16 '24 16:06 TomJo2000

@TomJo2000 About arm support for libck, there's on-going issue available in the repository, to be exact concurrencykit/ck#231.

fuzzko avatar Jun 16 '24 16:06 fuzzko

I'd say we blacklist arm for now, and if there's a PR made to fix it we can either cherry pick that patch, or enable it in the next version.

TomJo2000 avatar Jun 16 '24 17:06 TomJo2000

$ winds
Error: Unable to open output memory stream: 0
Call history, most recent first:
[1] libs/util.sld:string-join
[2] scheme/base.sld:foldl
[3] scheme/base.sld:reverse
[4] scheme/base.sld:fast-string=?
[5] libs/util.sld:trim-trailing-slash
[6] libs/util.sld:->string
[7] scheme/base.sld:fast-string=?
[8] libs/util.sld:trim-trailing-slash
[9] libs/util.sld:->string

tqfx avatar Jun 16 '24 18:06 tqfx

~ $ winds install json
Downloading json 0.1.0...
Downloading packrat 0.2.0...
Building and installing packrat...
gc_move: bad tag obj=0x7fd9d9c4f0 obj.tag=50
An error occurred (Could not compile file /data/data/com.termux/files/usr/tmp/packrat513249163/cyclone/packrat.sld. Return code 256)

tqfx avatar Jun 18 '24 15:06 tqfx

~ $ winds install json
Downloading json 0.1.0...
Downloading packrat 0.2.0...
Building and installing packrat...
gc_move: bad tag obj=0x7fd9d9c4f0 obj.tag=50
An error occurred (Could not compile file /data/data/com.termux/files/usr/tmp/packrat513249163/cyclone/packrat.sld. Return code 256)

Fixed with workaround.

tqfx avatar Jun 23 '24 07:06 tqfx

test on device

~/.../cyclone/src $ make test
./cyclone -I libs -COPT '-Iinclude' -CLNK '-L.' tests/base.scm
./tests/base
[1mvector literals: [0m..
[32m2 out of 2 (100.0%)[39m tests passed in 0.0 seconds.
[1mstrings: [0m.
[32m1 out of 1 (100.0%)[39m test passed in 0.0 seconds.
[1mmake-list: [0m.
[32m1 out of 1 (100.0%)[39m test passed in 0.0 seconds.
[1mrationals: [0m....
[32m4 out of 4 (100.0%)[39m tests passed in 0.0 seconds.
[1mnumeric operations - floor, truncate, : [0m...................................
[32m35 out of 35 (100.0%)[39m tests passed in 0.0 seconds.
[1mexact: [0m.....
[32m5 out of 5 (100.0%)[39m tests passed in 0.0 seconds.
[1mrecords: [0m..
[32m2 out of 2 (100.0%)[39m tests passed in 0.0 seconds.
[1massoc: [0m......
[32m6 out of 6 (100.0%)[39m tests passed in 0.0 seconds.
[1mmember: [0m......
[32m6 out of 6 (100.0%)[39m tests passed in 0.0 seconds.
rm -rf tests/base tests/base.c tests/base.o
./cyclone -I libs -COPT '-Iinclude' -CLNK '-L.' tests/test.scm
./tests/test
[1massert: [0m.
[32m1 out of 1 (100.0%)[39m test passed in 0.0 seconds.
[1mnot: [0m.
[32m1 out of 1 (100.0%)[39m test passed in 0.0 seconds.
rm -rf tests/test tests/test.c tests/test.o
./cyclone -I libs -COPT '-Iinclude' -CLNK '-L.' tests/threading.scm
./tests/threading
[1mthread-join!: [0m.
[32m1 out of 1 (100.0%)[39m test passed in 0.0 seconds.
rm -rf tests/threading tests/threading.c tests/threading.o
./cyclone -I libs -COPT '-Iinclude' -CLNK '-L.' tests/unit-tests.scm
./tests/unit-tests


(138 tests passed with no errors)
rm -rf tests/unit-tests tests/unit-tests.c tests/unit-tests.o

tqfx avatar Jun 23 '24 07:06 tqfx

Marking this as draft, let's wait until https://github.com/concurrencykit/ck/issues/231 is being resolved.

twaik avatar Oct 19 '24 12:10 twaik

  • The libck maintainer has provided a patch for it, you can grab it from the latest comment in concurrencykit/ck#231

fuzzko avatar Jan 04 '25 13:01 fuzzko