Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[erledigt] alsa-utils Probleme
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 469
Location: 09xxx

PostPosted: Fri Dec 15, 2023 10:11 am    Post subject: [erledigt] alsa-utils Probleme Reply with quote

Hallo,

seit einiger Zeit schlägt bei mir ein Update von alsa-utils fehl. Was genau ist da das Problem und wie kann ich das lösen?

Code:

>>> Emerging (7 of 46) media-sound/alsa-utils-1.2.10-r1::gentoo

...

utils.c: In function ‘initfailed’:
utils.c:94:8: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   94 |  (void)write(fp, str, strlen(str));
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
utils.c:95:8: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   95 |  (void)write(fp, ":", 1);
      |        ^~~~~~~~~~~~~~~~~
utils.c:96:8: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   96 |  (void)write(fp, reason, strlen(reason));
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utils.c:97:8: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   97 |  (void)write(fp, ":", 1);
      |        ^~~~~~~~~~~~~~~~~
utils.c:98:8: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   98 |  (void)write(fp, sexitcode, strlen(sexitcode));
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utils.c:99:8: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   99 |  (void)write(fp, "\n", 1);
      |        ^~~~~~~~~~~~~~~~~~

_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux


Last edited by michael_w on Fri Dec 15, 2023 1:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2576
Location: Heidelberg - Germany

PostPosted: Fri Dec 15, 2023 10:37 am    Post subject: Reply with quote

Ich habe das bei mir testweise nochmal gebaut. Habe gleiche Architektur und gleichen Kernel.

Die Warnungen bekomme ich auch, allerdings läuft es trotzdem durch. Welchen GCC nutzt Du?
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Fri Dec 15, 2023 10:57 am    Post subject: Reply with quote

das, was du gezeigt hast sind keine Fehler, sondern warnungen. da wird das build nicht abgebrochen. Suche mal nach "error:", oder poste die ganze log datei.
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 469
Location: 09xxx

PostPosted: Fri Dec 15, 2023 1:06 pm    Post subject: Reply with quote

Christian99 wrote:
das, was du gezeigt hast sind keine Fehler, sondern warnungen. da wird das build nicht abgebrochen. Suche mal nach "error:", oder poste die ganze log datei.


da hast Du Recht, es sind die ersten Warnings, hier das Ende bzw. der Abbruch

Code:

make[1]: Entering directory '/var/tmp/portage/media-sound/alsa-utils-1.2.10-r1/work/alsa-utils-1.2.10/amidi'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include   -O2 -march=znver2 -c -o amidi.o amidi.c
amidi.c: In function ‘sig_handler’:
amidi.c:449:25: error: parameter name omitted
  449 | static void sig_handler(int)
      |                         ^~~
amidi.c: In function ‘main’:
amidi.c:733:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  733 |     write(receive_file, buf, length);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:492: amidi.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-sound/alsa-utils-1.2.10-r1/work/alsa-utils-1.2.10/amidi'
make: *** [Makefile:463: all-recursive] Error 1
 * ERROR: media-sound/alsa-utils-1.2.10-r1::gentoo failed (compile phase):
 *   emake failed


bzgl. gcc
Code:

# eselect gcc list
 [1] x86_64-pc-linux-gnu-9.3.0
 [2] x86_64-pc-linux-gnu-10.3.0 *
 [3] x86_64-pc-linux-gnu-11
 [4] x86_64-pc-linux-gnu-12
 [5] x86_64-pc-linux-gnu-13

_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Fri Dec 15, 2023 1:24 pm    Post subject: Reply with quote

hm, gibt es einen grund, dass du diesen alten gcc verwendest und du soviel versionen installiert hast?
Ich würde mal probieren einen aktuelleren gcc zu verwenden.
Und wenn du sie nicht anderweitig brauchst, kannst du die alten versionen auch deinstallieren.
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 469
Location: 09xxx

PostPosted: Fri Dec 15, 2023 1:54 pm    Post subject: Reply with quote

Christian99 wrote:
Ich würde mal probieren einen aktuelleren gcc zu verwenden.


Danke, hab auf gcc 13 umgestellt und es läuft (immer noch mit den warnings) durch.
_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2576
Location: Heidelberg - Germany

PostPosted: Fri Dec 15, 2023 6:45 pm    Post subject: Reply with quote

GCC-12 würde ich noch stehen lassen. Ich habe ein ebuild gehabt, das sich tatsächlich nicht mit 13 hat bauen lassen. Ich musste auf 12 wechseln. Leider habe ich vergessen mir zu merken welches das war ..
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 469
Location: 09xxx

PostPosted: Fri Dec 15, 2023 9:52 pm    Post subject: Reply with quote

Erdie wrote:
GCC-12 würde ich noch stehen lassen. Ich habe ein ebuild gehabt, das sich tatsächlich nicht mit 13 hat bauen lassen. Ich musste auf 12 wechseln. Leider habe ich vergessen mir zu merken welches das war ..


Danke für den Tipp, aber in weiser Voraussicht habe ich gcc 12 eben auch noch behalten. ;)
_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2576
Location: Heidelberg - Germany

PostPosted: Sat Dec 16, 2023 10:42 am    Post subject: Reply with quote

Kein Ursache. Ich freue mich auch mal helfen zu können statt ständig das Wissen anderer abzugreifen.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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