mocaccinoOS / mocaccino

:musical_score: where magic happens
72 stars 7 forks source link

lang/ruby: ARM support #43

Closed geaaru closed 9 months ago

geaaru commented 3 years ago

On compile ruby under ARM fails on link coroutine and other POSIX functions:

linking miniruby
rb_mjit_header.h updated
/lib/gcc/armv7a-mocaccino-linux-musleabihf/9.2.0/../../../../armv7a-mocaccino-linux-musleabihf/bin/ld: cont.o: in function `coroutine_initialize_main':
cont.c:(.text+0x45c): undefined reference to `getcontext'
/lib/gcc/armv7a-mocaccino-linux-musleabihf/9.2.0/../../../../armv7a-mocaccino-linux-musleabihf/bin/ld: cont.o: in function `coroutine_initialize':
cont.c:(.text+0x528): undefined reference to `makecontext'
/lib/gcc/armv7a-mocaccino-linux-musleabihf/9.2.0/../../../../armv7a-mocaccino-linux-musleabihf/bin/ld: cont.o: in function `coroutine_transfer':
cont.c:(.text+0x588): undefined reference to `swapcontext'
collect2: error: ld returned 1 exit status
make: *** [Makefile miniruby] Error 1
The command '/bin/sh -c wget https://cache.ruby-lang.org/pub/${PACKAGE_NAME}/2.7/${PACKAGE_NAME}-${PACKAGE_VERSION}.tar.gz && tar -xvf ${PACKAGE_NAME}-${PACKAGE_VERSION}.tar.gz && mv ${PACKAGE_NAME}-${PACKAGE_VERSION} ${PACKAGE_NAME} && cd ${PACKAGE_NAME} && mkdir -p /${PACKAGE_NAME} && ./configure --prefix=/usr && make -j8 && make DESTDIR=/${PACKAGE_NAME} install && cp -rfv /${PACKAGE_NAME}/* / && cd .. && rm -rf ruby' returned a non-zero code: 2
: exit status 2
 Bailing out

Temporary we convert the package as virtual package without files until will be fixed.

joostruis commented 9 months ago

closing