Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879561 - dev-util/flutter-3.3.7 installs but doesn't compile with Android Studio
Summary: dev-util/flutter-3.3.7 installs but doesn't compile with Android Studio
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-04 12:40 UTC by deim
Modified: 2022-11-08 10:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
acct-group/flutter and dev-util/flutter (flutter_ebuilds.tar.xz,2.12 KB, application/x-xz)
2022-11-04 12:43 UTC, deim
Details
log of Android Studio running Flutter demo (android-studio-error.log,31.85 KB, text/x-log)
2022-11-04 12:47 UTC, deim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description deim 2022-11-04 12:40:18 UTC
Flutter is promising development tool.
I found base overlay ebuild, upgraded it and it installs fine.
Problem is with exporting Android App

Reproducible: Always

Steps to Reproduce:
1. install flutter - custom ebuild (with -android flag - we're gonna use android-studio tools), android-studio
2. flutter doctor -v
3. everything needed is OK
4. try to build flutter app (e.g. in android-studio)
Actual Results:  
flutter doctor -v
[✓] Flutter (Channel stable, 3.3.7, on Gentoo Linux 5.19.8-gentoo-systemd, locale cs_CZ.UTF-8)
    • Flutter version 3.3.7 on channel stable at /opt/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e99c9c7cd9 (3 days ago), 2022-11-01 16:59:00 -0700
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /mnt/HDD4/FREE/android/android
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /mnt/HDD4/FREE/android/android
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 14.0.6
    • cmake version 3.24.2
    • ninja version 1.11.1
    • pkg-config version 1.8.0

[✓] Android Studio (version 2021.3)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 70.2.3
    • Dart plugin version 213.7433
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] Connected device (2 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
    • Linux (desktop)         • linux         • linux-x64   • Gentoo Linux 5.19.8-gentoo-systemd

[✓] HTTP Host Availability
    • All required HTTP hosts are available

[        ] FAILURE: Build failed with an exception.
[   +4 ms] * Where:
[        ] Script '/opt/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1159
[        ] * What went wrong:
[        ] Execution failed for task ':app:compileFlutterBuildDebug'.
[        ] > Process 'command '/opt/flutter/bin/flutter'' finished with non-zero exit value 1

Expected Results:  
proceeding without errors

It would be nice to have chance to develop Flutter apps on Gentoo - officially.
I think I'm so close but can't get it.

I'll enclose ebuild and android-studio log

Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-11.3.0, glibc-2.35-r8, 5.19.8-gentoo-systemd x86_64)
=================================================================
System uname: Linux-5.19.8-gentoo-systemd-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-glibc2.35
KiB Mem:    32298508 total,   4523160 free
KiB Swap:   41943036 total,  41939172 free
Timestamp of repository gentoo: Fri, 04 Nov 2022 05:30:01 +0000
Head commit of repository gentoo: e9100c7c514918a3d8535050ccc5434a8017fb95

Timestamp of repository steam-overlay: Wed, 24 Aug 2022 05:02:42 +0000
Head commit of repository steam-overlay: 8b05e59621ebcb56a84fd4cab93d546094a1f08c

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r4::gentoo
dev-lang/python:           3.10.8_p1::gentoo
dev-lang/rust-bin:         1.64.0-r1::gentoo
dev-util/cmake:            3.24.2::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.4::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6-r1::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.cz.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-flto=8 -O2 -pipe -march=native -mtune=haswell"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="* /etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-flto=8 -O2 -pipe -march=native -mtune=haswell"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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="-flto=8 -O2 -pipe -march=native -mtune=haswell"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-flto=8 -O2 -pipe -march=native -mtune=haswell"
GENTOO_MIRRORS="ftp://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.linux.cz/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs en cs_CZ"
MAKEOPTS="-j9 -l9"
PKGDIR="/usr/packages"
PORTAGE_COMPRESS="plzip"
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="X a52 aac aacplus acl acpi aes alsa amd64 apng appindicator audiofile avx avx2 bluetooth bmp branding broadway bzip2 cairo calf caps cdda cdr clang cli colord connman consolekit corefonts crypt cups dav1d dbus designer dri dri2 dri3 dts dvd dvdr encode exif faac faad fdk ffmpeg fftw flac fluidsynth fortran frei0r fuse gdbm gif gimp glx gnutls gpm graphicsmagick gstreamer gtk gui harfbuzz hddtemp heif ico iconv icu imagemagick ipv6 jack java jemalloc jpeg jpeg2k jpegxl json ladspa lame lash lcms libglvnd libnotify libsamplerate libtirpc lilypond llvm lto lv2 lz4 lzma mad matroska mda-lv2 midi minizip mmx mmxext mng mp3 mp4 mpeg mtp multilib ncurses nfs nfsv41 nls nptl ocr ogg openal opencl opencv opengl openimageio openmp openvpn opus pam pango pcre pdf pgo pipewire png policykit portaudio postscript ppds psd pulseaudio python qt5 rav1e raw readline s3tc samba sdl seccomp sndfile speex spell split-usr sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg svt-av1 swiftshader system-mesa systemd test-rust tex4ht tga theora threads tiff timidity truetype udev udisks unicode upower usb utempter v4l vaapi vala vlc vorbis vpx vulkan wavpack webp wireguard wma-fixed wmf wxwidgets x264 x265 xattr xcb xcf xetex xml xorg xpm xv xvid zamaudio zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" 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="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 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 pc" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="cs en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access autoindex brotli browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi stub_status http_dav http_dav_ext" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby27" SANE_BACKENDS="plustek" USERLAND="GNU" UWSGI_PLUGINS="cache carbon cheaper_busyness corerouter fastrouter http logfile logsocket mongodblog nagios ping rawrouter redislog router_basicauth router_cache router_expires router_hash router_http router_memcached router_metrics router_redirect router_redis router_rewrite router_static router_uwsgi rpc rrdtool rsyslog signal spooler sslrouter symcall syslog transformation_chunked transformation_gzip transformation_offload transformation_tofile ugreen zergpool systemd_logger" VIDEO_CARDS="intel i965 crocus" 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, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 deim 2022-11-04 12:43:04 UTC
Created attachment 827083 [details]
acct-group/flutter and dev-util/flutter

dev-util/flutter 3.3.5 3.3.6 3.3.7
Comment 2 deim 2022-11-04 12:47:38 UTC
Created attachment 827085 [details]
log of Android Studio running Flutter demo
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-06 05:57:35 UTC
If I'm understanding this right, I think it's something to discuss on IRC (#gentoo-dev-help) as it constitutes trying to make an ebuild, rather than a bug in something in the repository.
Comment 4 deim 2022-11-08 10:26:20 UTC
Ah sorry for my misunderstand I though It's for new packages that could be included. And it seem it's for new packages included.
Anyway I solved the issue:
https://stackoverflow.com/questions/74359102/flutter-cant-build-or-run-no-linux-no-android-app-linux-host-gentoo-machin/74359103#74359103
Need to only modify ebuild do do this automatically and it's probably easy ebuild to include :-)