Summary: | dev-scheme/racket: Crossdev failed to cross compile to x86 from amd64 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lemon Lime <torsi> |
Component: | Current packages | Assignee: | Scheme Project <scheme> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Lemon Lime
2023-09-24 15:41:57 UTC
Please attach a full build log. (In reply to Mike Gilbert from comment #1) > Please attach a full build log. I apologize, here it is: * Package: dev-scheme/racket-8.9:0/8.9 * Repository: gentoo * Maintainer: scheme@gentoo.org * Upstream: https://github.com/racket/racket/issues/ * USE: abi_x86_32 chez doc elibc_glibc futures iconv jit kernel_linux ncurses places threads x86 * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking racket-8.9-src-builtpkgs.tgz to /usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/work >>> Source unpacked in /usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/work >>> Preparing source in /usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/work/racket-8.9/src ... >>> Source prepared. >>> Configuring source in /usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/work/racket-8.9/src ... * Configuring Zuo in /usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/work/racket-8.9/src/zuo * econf: updating racket-8.9/src/lt/config.guess with /usr/share/gnuconfig/config.guess * econf: updating racket-8.9/src/lt/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=i686-asus-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --docdir=/usr/share/doc/racket-8.9 --htmldir=/usr/share/doc/racket-8.9/html --libdir=/usr/lib configure: loading site script /usr/share/config.site configure: loading site script /usr/share/config.site.d/80crossdev.conf configure: loading site script /usr/share/crossdev/include/site/linux configure: loading site script /usr/share/crossdev/include/site/linux-gnu configure: loading site script /usr/share/crossdev/include/site/i686-linux-gnu checking whether make sets $(MAKE)... yes checking for i686-asus-linux-gnu-gcc... i686-asus-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-asus-linux-gnu-gcc accepts -g... yes checking for i686-asus-linux-gnu-gcc option to accept ISO C89... none needed configure: zuo libraries to embed: "zuo" configure: creating ./config.status config.status: creating Makefile config.status: creating main.zuo * Configuring Racket in /usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/work/racket-8.9/src * econf: updating racket-8.9/src/lt/config.guess with /usr/share/gnuconfig/config.guess * econf: updating racket-8.9/src/lt/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=i686-asus-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --disable-shared --disable-strip --docdir=/usr/share/doc/racket-8.9 --enable-libs --enable-cs --enable-csonly --enable-docs --enable-iconv --enable-curses === Racket CS enabled configure: loading site script /usr/share/config.site configure: loading site script /usr/share/config.site.d/80crossdev.conf configure: loading site script /usr/share/crossdev/include/site/linux configure: loading site script /usr/share/crossdev/include/site/linux-gnu configure: loading site script /usr/share/crossdev/include/site/i686-linux-gnu checking build system type... x86_64-pc-linux-gnu checking host system type... i686-asus-linux-gnu checking target system type... i686-asus-linux-gnu === iconv enabled === curses enabled === CS executables without suffix enabled === Installation of static libraries (if any) enabled === Debug-symbol stripping disabled checking for i686-asus-linux-gnu-gcc... i686-asus-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-asus-linux-gnu-gcc accepts -g... yes checking for i686-asus-linux-gnu-gcc option to accept ISO C89... none needed checking for fmod in -lm... yes checking for dlopen in -ldl... yes checking for i686-asus-linux-gnu-ranlib... i686-asus-linux-gnu-ranlib checking for i686-asus-linux-gnu-ar... yes checking how to run the C preprocessor... i686-asus-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking iconv is usable... yes checking for nl_langinfo (CODESET)... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking term.h usability... yes checking term.h presence... yes checking for term.h... yes checking curses is usable... yes -lncurses -ltinfo checking for libz... yes checking for liblz4... no Building own liblz4 checking size of void *... 4 configure: creating ./config.status config.status: creating Makefile config.status: creating cs_config.h >>> Source configured. >>> Compiling source in /usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/work/racket-8.9/src ... make -j4 mkdir -p bin i686-asus-linux-gnu-gcc -O2 -DZUO_LIB_PATH='"'".././zuo/lib"'"' -o bin/zuo ./zuo/zuo.c bin/zuo . all don't know how to run scheme in targets-at {2} in build-one in loop in module->hash make: *** [Makefile:18: all] Error 1 * ERROR: dev-scheme/racket-8.9::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-scheme/racket-8.9::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-scheme/racket-8.9::gentoo'`. * The complete build log is located at '/usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/temp/build.log'. * The ebuild environment file is located at '/usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/temp/environment'. * Working directory: '/usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/work/racket-8.9/src' * S: '/usr/i686-asus-linux-gnu/tmp/portage/dev-scheme/racket-8.9/work/racket-8.9/src' I searched the racket repository on Github. In theory, this is the only line where it has that error: https://github.com/racket/racket/blob/ca0e5f588a0bfa501e5559b5e00059e294cd95d6/racket/src/cs/c/build.zuo#L75 Hi Lemon Lime.
Is bin/zuo runnable?
> bin/zuo -h
I had not dealt wth cross-compiling Racket but looking at the scheme code I think we should be doing pre-setup specific to cross.
For now it it satisfies you you can use Raket's raco-cross tool to cross-compile Rakcet code.
I might look into this issue more in foreseeable future.
(In reply to Maciej Barć from comment #4) > Hi Lemon Lime. > > Is bin/zuo runnable? > > > bin/zuo -h > Output: -bash: bin/zuo: No such file or directory It seems like zuo is not installed in my system. I should note, I was trying to crossdev-compile racket on a system that does not have racket installed itself. It didn't occur to me that racket needed to be installed on a system in order to crossdev compile it (this has worked fine with other packages before). I will try to install racket and THEN crossdeving it; to see if it works. Maybe that's where the issue is. I'll update this thread with my results. Thanks for your kind reply (In reply to Lemon Lime from comment #5) > Output: > -bash: bin/zuo: No such file or directory Are you launching it from build dir? > It didn't occur to me that racket needed to be installed on a system in > order to crossdev compile it (this has worked fine with other packages > before). That's not what I meant at all. (In reply to Maciej Barć from comment #6) > > It didn't occur to me that racket needed to be installed on a system in > > order to crossdev compile it (this has worked fine with other packages > > before). > > That's not what I meant at all. I apologize for the misunderstanding. I did not mean to say that you said that. It was just a hypothesis of mine. > (In reply to Lemon Lime from comment #5) > > Output: > > -bash: bin/zuo: No such file or directory > > Are you launching it from build dir? What do you mean with build directory? I am not familiar with that term. I simply run emerge-i686-asus-linux-gnu racket. |