The compilation seems to fail in the hash module: >>> 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 emerge info: Portage 3.0.49 (python 3.11.5-final-0, default/linux/amd64/17.1/hardened, gcc-12, glibc-2.37-r3, 6.1.53-gentoo-dist-hardened x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.1.53-gentoo-dist-hardened-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-glibc2.37 KiB Mem: 12158800 total, 10613164 free KiB Swap: 4194300 total, 4194300 free Timestamp of repository gentoo: Sun, 24 Sep 2023 13:00:01 +0000 Head commit of repository gentoo: 17dc418d705f6c470a585a1f79392f795f206a33 Timestamp of repository lemon-lime: Thu, 14 Sep 2023 05:49:40 +0000 Head commit of repository lemon-lime: d07d6de0a898d3aeb735ff54d1f26efa5d0cf1c0 sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.40 p5) 2.40.0 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.11.5::gentoo dev-util/cmake: 3.26.5-r2::gentoo dev-util/meson: 1.2.1-r1::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.48::gentoo sys-apps/sandbox: 2.37::gentoo sys-devel/autoconf: 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.6::gentoo sys-devel/gcc: 12.3.1_p20230526::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/llvm: 16.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes lemon-lime location: /var/db/repos/lemon-lime sync-type: git sync-uri: https://github.com/gentoo-mirror/lemon-lime.git masters: gentoo volatile: False crossdev location: /var/db/repos/crossdev masters: gentoo priority: 10 volatile: False ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="https://gentoo.c3sl.ufpr.br/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://mirror.clarkson.edu/gentoo/ https://mirrors.mit.edu/gentoo-distfiles/ https://gentoo.osuosl.org/" LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j3" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="acl amd64 bzip2 cet cli crypt dri fortran gdbm hardened iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp test-rust unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="x86_64 i386" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
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.