Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] nushell fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mrfabiolo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2011
Posts: 92

PostPosted: Sat Apr 27, 2024 8:27 am    Post subject: [SOLVED] nushell fails to compile Reply with quote

Code:
$ sudo emerge -a nushell

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.46 s (backtrack: 0/20).

[ebuild  N     ] app-shells/nushell-0.91.0  USE="-dataframe -debug -extra"

Would you like to merge these packages? [Yes/No]

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-shells/nushell-0.91.0::gentoo
 * nushell-0.91.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                    [ ok ]
 * addr2line-0.21.0.crate BLAKE2B SHA512 size ;-) ...                                                                                                   [ ok ]
 * adler32-1.2.0.crate BLAKE2B SHA512 size ;-) ...                                                                                                      [ ok ]
 * adler-1.0.2.crate BLAKE2B SHA512 size ;-) ...                                                                                                        [ ok ]
 * ahash-0.7.7.crate BLAKE2B SHA512 size ;-) ...                                                                                                        [ ok ]
 * ahash-0.8.7.crate BLAKE2B SHA512 size ;-) ...                                                                                                        [ ok ]
 * aho-corasick-1.1.2.crate BLAKE2B SHA512 size ;-) ...                                                                                                 [ ok ]
 * alloc-no-stdlib-2.0.4.crate BLAKE2B SHA512 size ;-) ...                                                                                              [ ok ]
 * alloc-stdlib-0.2.2.crate BLAKE2B SHA512 size ;-) ...                                                                                                 [ ok ]
 * allocator-api2-0.2.16.crate BLAKE2B SHA512 size ;-) ...                                                                                              [ ok ]
 * alphanumeric-sort-1.5.3.crate BLAKE2B SHA512 size ;-) ...                                                                                            [ ok ]
 * android-tzdata-0.1.1.crate BLAKE2B SHA512 size ;-) ...                                                                                               [ ok ]
 * android_system_properties-0.1.5.crate BLAKE2B SHA512 size ;-) ...                                                                                    [ ok ]
 * ansi-str-0.8.0.crate BLAKE2B SHA512 size ;-) ...                                                                                                     [ ok ]
 * ansitok-0.2.0.crate BLAKE2B SHA512 size ;-) ...                                                                                                      [ ok ]
 * anstream-0.6.11.crate BLAKE2B SHA512 size ;-) ...                                                                                                    [ ok ]
 * anstyle-parse-0.2.3.crate BLAKE2B SHA512 size ;-) ...                                                                                                [ ok ]
 * anstyle-query-1.0.2.crate BLAKE2B SHA512 size ;-) ...                                                                                                [ ok ]
 * anstyle-wincon-3.0.2.crate BLAKE2B SHA512 size ;-) ...                                                                                               [ ok ]
 * anstyle-1.0.4.crate BLAKE2B SHA512 size ;-) ...                                                                                                      [ ok ]
 * arboard-3.3.0.crate BLAKE2B SHA512 size ;-) ...                                                                                                      [ ok ]
 * argminmax-0.6.1.crate BLAKE2B SHA512 size ;-) ...                                                                                                    [ ok ]

[...]

 * Loading winnow-0.5.35.crate into Cargo registry ...                                                                                                  [ ok ]
 * Loading winreg-0.52.0.crate into Cargo registry ...                                                                                                  [ ok ]
 * Loading winresource-0.1.17.crate into Cargo registry ...                                                                                             [ ok ]
 * Loading wl-clipboard-rs-0.8.0.crate into Cargo registry ...                                                                                          [ ok ]
 * Loading wyz-0.5.1.crate into Cargo registry ...                                                                                                      [ ok ]
 * Loading x11rb-protocol-0.12.0.crate into Cargo registry ...                                                                                          [ ok ]
 * Loading x11rb-0.12.0.crate into Cargo registry ...                                                                                                   [ ok ]
 * Loading xattr-1.3.1.crate into Cargo registry ...                                                                                                    [ ok ]
 * Loading xxhash-rust-0.8.8.crate into Cargo registry ...                                                                                              [ ok ]
 * Loading yansi-0.5.1.crate into Cargo registry ...                                                                                                    [ ok ]
 * Loading zerocopy-derive-0.7.32.crate into Cargo registry ...                                                                                         [ ok ]
 * Loading zerocopy-0.7.32.crate into Cargo registry ...                                                                                                [ ok ]
 * Loading zip-0.6.6.crate into Cargo registry ...                                                                                                      [ ok ]
 * Loading zstd-safe-7.0.0.crate into Cargo registry ...                                                                                                [ ok ]
 * Loading zstd-sys-2.0.9+zstd.1.5.5.crate into Cargo registry ...                                                                                      [ ok ]
 * Loading zstd-0.13.0.crate into Cargo registry ...                                                                                                    [ ok ]
>>> Source unpacked in /var/tmp/portage/app-shells/nushell-0.91.0/work
>>> Preparing source in /var/tmp/portage/app-shells/nushell-0.91.0/work/nushell-0.91.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-shells/nushell-0.91.0/work/nushell-0.91.0 ...
 * Configured with: --features stable
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-shells/nushell-0.91.0/work/nushell-0.91.0 ...
 * cargo build --release --features stable --workspace
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -C target-cpu=native opt-level=3 --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1)
  --- stderr
  error: multiple input filenames provided (first two filenames are `-` and `opt-level=3`)

 * ERROR: app-shells/nushell-0.91.0::gentoo failed (compile phase):
 *   cargo build failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2543:  Called cargo_src_compile '--workspace'
 *   environment, line 1495:  Called die
 * The specific snippet of code:
 *       "${@}" || die "cargo build failed"
 *
 * If you need support, post the output of `emerge --info '=app-shells/nushell-0.91.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-shells/nushell-0.91.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-shells/nushell-0.91.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-shells/nushell-0.91.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-shells/nushell-0.91.0/work/nushell-0.91.0'
 * S: '/var/tmp/portage/app-shells/nushell-0.91.0/work/nushell-0.91.0'

>>> Failed to emerge app-shells/nushell-0.91.0, Log file:

>>>  '/var/tmp/portage/app-shells/nushell-0.91.0/temp/build.log'

 * Messages for package app-shells/nushell-0.91.0:

 * ERROR: app-shells/nushell-0.91.0::gentoo failed (compile phase):
 *   cargo build failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2543:  Called cargo_src_compile '--workspace'
 *   environment, line 1495:  Called die
 * The specific snippet of code:
 *       "${@}" || die "cargo build failed"
 *
 * If you need support, post the output of `emerge --info '=app-shells/nushell-0.91.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-shells/nushell-0.91.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-shells/nushell-0.91.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-shells/nushell-0.91.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-shells/nushell-0.91.0/work/nushell-0.91.0'
 * S: '/var/tmp/portage/app-shells/nushell-0.91.0/work/nushell-0.91.0'


Code:
$ emerge --info '=app-shells/nushell-0.91.0::gentoo'
Portage 3.0.61 (python 3.11.9-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-13, glibc-2.38-r13, 6.6.28-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.28-gentoo-dist-x86_64-11th_Gen_Intel-R-_Core-TM-_i5-1135G7_@_2.40GHz-with-glibc2.38
KiB Mem:    16150900 total,  12245796 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 27 Apr 2024 07:30:00 +0000
Head commit of repository gentoo: 8f3934b93fe85f146d9d2d0aad418c883161de0a
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust-bin:         1.75.0::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.4::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r13::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-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3

Binary Repositories:

binhost
    priority: 9999
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64-v3

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
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 getbinpkg ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j7"
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"
RUSTFLAGS="-C target-cpu=native opt-level=3"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cryptsetup cups dbus dist-kernel dri dts dvd dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nvenc ogg opengl openmp pam pango pcre pdf pipewire png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vdpau vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="BPF WebAssembly" 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" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS


Last edited by mrfabiolo on Sun Apr 28, 2024 9:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30954
Location: here

PostPosted: Sat Apr 27, 2024 9:28 am    Post subject: Reply with quote

I think the problem is your additional RUSTFLAGS (-C target-cpu=native opt-level=3), try to remove them.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2727

PostPosted: Sat Apr 27, 2024 10:04 am    Post subject: Reply with quote

Yes, the 2nd option is missing its -C, aka rather than
Code:
RUSTFLAGS="-C target-cpu=native opt-level=3"
should be:
Code:
RUSTFLAGS="-C target-cpu=native -C opt-level=3"
...but opt-level=3 is default with release profiles so you don't actually need to pass that. So I'd just do:
Code:
RUSTFLAGS="-C target-cpu=native"
You can also remove the space if you feel it's less confusing (makes it more like a "single" option), aka:
Code:
RUSTFLAGS="-Ctarget-cpu=native"
Back to top
View user's profile Send private message
mrfabiolo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2011
Posts: 92

PostPosted: Sun Apr 28, 2024 9:18 pm    Post subject: Reply with quote

You guys are great. That solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum