Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[portage]Pobleme compilation net-wireless/rtl8821cu (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
cinzilla
n00b
n00b


Joined: 26 Nov 2018
Posts: 23

PostPosted: Fri Nov 04, 2022 1:24 pm    Post subject: [portage]Pobleme compilation net-wireless/rtl8821cu (résolu) Reply with quote

Bonjour à tous et toutes.
Suite à une absence de plusieurs mois, j'ai eu une très grosse mis à jour à faire sur mon installation de gentoo (600 et quelques)
J'ai eu quelques soucis qui sont d'hors et déjà réglés.
Seul reste un problème au niveau de la compilation de net-wireless/rtl8821cu-20211114 nécessaire a l'execution de genkernel all (oui je sais c'est pas beau).
voici le retour de emerge --info '=net-wireless/rtl8821cu-20211114::calculate'
Code:

Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-12, glibc-2.36-r5, 5.15.12-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.12-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-10400_CPU_@_2.90GHz-with-glibc2.36
KiB Mem:    16237404 total,  13652868 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 02 Nov 2022 09:30:01 +0000
Head commit of repository gentoo: 718a9ac34efec4b73160ddde7114531540b321b9
Timestamp of repository calculate: Mon, 31 Oct 2022 13:08:54 +0000
Head commit of repository calculate: f719dd6a0f066eb06c469dcbf0a72d456c780a69

Timestamp of repository dlang: Thu, 20 Oct 2022 06:32:07 +0000
Head commit of repository dlang: 25e64340a16a9d6644f4421ed20437dd0ee24fe5

Timestamp of repository guru: Tue, 01 Nov 2022 10:31:46 +0000
Head commit of repository guru: 9a05d6b5931829de84383061e842bda701cb5862

Timestamp of repository steam-overlay: Thu, 20 Oct 2022 06:32:14 +0000
Head commit of repository steam-overlay: f40a22632e77a46be0153821f4a7f7847029533b

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
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.36.0-r1::gentoo
dev-lang/python:           3.10.8_p1::gentoo, 3.11.0::gentoo
dev-lang/rust:             1.64.0-r1::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.63.3::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          252::gentoo
sys-devel/autoconf:        2.71-r4::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             12.2.1_p20221008::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            15.0.3::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.0::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

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

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

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

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

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

ACCEPT_KEYWORDS="amd64 ~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/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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/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="-march=native -O2 -pipe"
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="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups curl dbus dri dts dvd dvdr encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt qt5 readline sdl seccomp spell split-usr ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" 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="mmx mmxext sse sse2" 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="evdev" KERNEL="linux" L10N="fr" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" 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, 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

=================================================================
                        Package Settings
=================================================================

net-wireless/rtl8821cu-20211114::calculate was built with the following:
USE="-dist-kernel" ABI_X86="(64)"

et le retour de cat /var/tmp/portage/net-wireless/rtl8821cu-20211114/temp/build.log

https://pastebin.com/fc2Mqt1X

Merci d'avance
_________________
I5 10400 + 16Go RAM + ssd 240Go + HDD 1To == gentoo profile desktop + systemd + I3gaps
USE="pulseaudio qt opengl jpeg curl acpi lm_sensors dbus systemd dvd alsa cdr gtk networkmanager -sdl -wayland -ipv6 -openrc X "


Last edited by cinzilla on Mon Nov 07, 2022 7:19 pm; edited 2 times in total
Back to top
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3169
Location: Paris

PostPosted: Mon Nov 07, 2022 2:16 pm    Post subject: Reply with quote

Bonjour,

Peux-tu STP mettre ton titre en conformité avec les règles en usage sur notre forum (Le format choisi est : [THEME] description (état))?

Merci.
_________________
-TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT)
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1904
Location: 127.0.0.1

PostPosted: Mon Nov 07, 2022 3:42 pm    Post subject: Reply with quote

Salut,

Code:
/var/tmp/portage/net-wireless/rtl8821cu-20211114/work/rtl8821CU-121ee81893e5ee20e5ae6e6ed9f519552527743f/os_dep/linux/os_intfs.c: In function ‘rtw_net_set_mac_address’:
/var/tmp/portage/net-wireless/rtl8821cu-20211114/work/rtl8821CU-121ee81893e5ee20e5ae6e6ed9f519552527743f/os_dep/linux/os_intfs.c:1219:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 1219 |         _rtw_memcpy(pnetdev->dev_addr, sa->sa_data, ETH_ALEN); /* set mac addr to net_device */
      |                     ~~~~~~~^~~~~~~~~~


Code:

/var/tmp/portage/net-wireless/rtl8821cu-20211114/work/rtl8821CU-121ee81893e5ee20e5ae6e6ed9f519552527743f/os_dep/osdep_service.c: In function ‘thread_exit’:
/var/tmp/portage/net-wireless/rtl8821cu-20211114/work/rtl8821CU-121ee81893e5ee20e5ae6e6ed9f519552527743f/os_dep/osdep_service.c:1297:9: error: implicit declaration of function ‘complete_and_exit’ [-Werror=implicit-function-declaration]
 1297 |         complete_and_exit(comp, 0);
      |         ^~~~~~~~~~~~~~~~~

Tu utilises un ebuild de l'overlay calculate. Il y a un ebuild pour une version plus récente dans l'overlay guru. Je commencerai par essayer cette version plus récente si j'étais toi.
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1904
Location: 127.0.0.1

PostPosted: Mon Nov 07, 2022 4:27 pm    Post subject: Reply with quote

Quelle version de sys-kernel/linux-headers as-tu sur ton système ? Tu es en ~amd64, je suppose donc que c'est la version 6.0.
Or, dans les kernels >= 5.17, la fonction exportée complete_and_exit a été renommée et retravaillée.
D'où le :
Code:

error: implicit declaration of function ‘complete_and_exit’

Il y a eu un commit à ce propos le 22 mars dans le dépôt de rtl8821CU.
Si tu essaies l'ebuild de l'overlay GURU (qui date du 15 avril), je pense que çà devrait compiler.
Back to top
View user's profile Send private message
cinzilla
n00b
n00b


Joined: 26 Nov 2018
Posts: 23

PostPosted: Mon Nov 07, 2022 5:10 pm    Post subject: Reply with quote

Après vérification, la version de sys-kernel-linux-headers est bien la 6. Néanmoins lorsque je tente de compiler la version de l'overlay guru j'ai également des erreurs.

https://pastebin.com/zCNFHk0A
_________________
I5 10400 + 16Go RAM + ssd 240Go + HDD 1To == gentoo profile desktop + systemd + I3gaps
USE="pulseaudio qt opengl jpeg curl acpi lm_sensors dbus systemd dvd alsa cdr gtk networkmanager -sdl -wayland -ipv6 -openrc X "
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1904
Location: 127.0.0.1

PostPosted: Mon Nov 07, 2022 5:59 pm    Post subject: Reply with quote

C'est une autre erreur :
Code:

/var/tmp/portage/net-wireless/rtl8821cu-0_pre20220409/work/rtl8821CU-8c2226a74ae718439d56248bd2e44ccf717086d5/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/var/tmp/portage/net-wireless/rtl8821cu-0_pre20220409/work/rtl8821CU-8c2226a74ae718439d56248bd2e44ccf717086d5/os_dep/linux/ioctl_cfg80211.c:420:9: error: too few arguments to function ‘cfg80211_ch_switch_notif


https://github.com/brektrou/rtl8821CU/issues/194

Quote:

it seems there was some refactoring of the networking in general as well as WiFi in 5.19.

D'autres drivers similaires ont été patchés pour le même type d'erreurs.
Tu utilises un kernel 5.15. La solution la plus simple dans ton cas serait de downgrader les linux-headers en version 5.15-r3 et de retenter la compilation avec l'ebuild de calculate.
Si çà marche, tu devras donc éviter l'upgrade des linux-headers et du kernel tant que ce pilote ne sera pas patché pour fonctionner avec les kernels plus récents.
Back to top
View user's profile Send private message
cinzilla
n00b
n00b


Joined: 26 Nov 2018
Posts: 23

PostPosted: Mon Nov 07, 2022 6:24 pm    Post subject: Reply with quote

Pardonne mon ignorance, mais lorsque je tente de downgrader linux-headers je me heurte a ce message.
Code:
It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


J'ai penser qu'en masquant linux-headers-6.0 ça fonctionnerait mais je pense ne pas avoir bien compris cette notion de package masked

Par contre (je ne sais pas si c'est lié et je comptais m'y intéresser après) mais lors de ma grosse maj le pc a planté j'ai du redémarrer et depuis je n'arrive plus à booter qu'en mode dépannage et uniquement sur le kernel 5.15. C'est pour cela que je compile depuis ce noyau
_________________
I5 10400 + 16Go RAM + ssd 240Go + HDD 1To == gentoo profile desktop + systemd + I3gaps
USE="pulseaudio qt opengl jpeg curl acpi lm_sensors dbus systemd dvd alsa cdr gtk networkmanager -sdl -wayland -ipv6 -openrc X "


Last edited by cinzilla on Mon Nov 07, 2022 6:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1904
Location: 127.0.0.1

PostPosted: Mon Nov 07, 2022 6:36 pm    Post subject: Reply with quote

Que donne :
Code:

# emerge -pv1 =sys-kernel/linux-headers-5.15-r3
Back to top
View user's profile Send private message
cinzilla
n00b
n00b


Joined: 26 Nov 2018
Posts: 23

PostPosted: Mon Nov 07, 2022 6:39 pm    Post subject: Reply with quote

ca donne ca
Code:
[ebuild     UD ] sys-kernel/linux-headers-5.15-r3::gentoo [6.0::gentoo] USE="-headers-only" 0 KiB

Total: 1 package (1 downgrade), Size of downloads: 0 KiB

_________________
I5 10400 + 16Go RAM + ssd 240Go + HDD 1To == gentoo profile desktop + systemd + I3gaps
USE="pulseaudio qt opengl jpeg curl acpi lm_sensors dbus systemd dvd alsa cdr gtk networkmanager -sdl -wayland -ipv6 -openrc X "
Back to top
View user's profile Send private message
cinzilla
n00b
n00b


Joined: 26 Nov 2018
Posts: 23

PostPosted: Mon Nov 07, 2022 6:41 pm    Post subject: Reply with quote

ok super linux-headers sont downgradé.
Et j'ai pu compiler rtl8821cu.
Merci de ton aide
_________________
I5 10400 + 16Go RAM + ssd 240Go + HDD 1To == gentoo profile desktop + systemd + I3gaps
USE="pulseaudio qt opengl jpeg curl acpi lm_sensors dbus systemd dvd alsa cdr gtk networkmanager -sdl -wayland -ipv6 -openrc X "
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1904
Location: 127.0.0.1

PostPosted: Mon Nov 07, 2022 7:11 pm    Post subject: Reply with quote

Tu peux donc marquer le titre du sujet comme (résolu).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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