Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928293 - net-misc/r8125-9.011.01-r1 won't build with kernel 6.8.x
Summary: net-misc/r8125-9.011.01-r1 won't build with kernel 6.8.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Karlson2k
URL:
Whiteboard:
Keywords: PullRequest
: 928303 928983 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-31 14:28 UTC by Iade Gesso
Modified: 2024-04-19 18:56 UTC (History)
5 users (show)

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


Attachments
full build log (build.log,27.55 KB, text/x-log)
2024-03-31 14:28 UTC, Iade Gesso
Details
emerge --ìinfo net-misc/r8125 (emergeinfo.txt,15.00 KB, text/plain)
2024-03-31 14:28 UTC, Iade Gesso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iade Gesso 2024-03-31 14:28:22 UTC
Created attachment 889087 [details]
full build log

After upgraging my kernel to 6.8.1, building the r8125 module fails with the following error:

# cmd_gen_objtooldep /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_firmware.o
   { echo ; echo '/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_firmware.o: $(wildcard ./tools/objtool/objtool)' ; } >> /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/.r8125_firmware.o.cmd
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.c: In function ‘rtl8125_get_rss_hash_opts’:
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.c:59:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
   59 |                 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.c:61:9: note: here
   61 |         case UDP_V4_FLOW:
      |         ^~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.c:62:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
   62 |                 if (tp->rss_flags & RTL_8125_RSS_FLAG_HASH_UDP_IPV4)
      |                    ^
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.c:65:9: note: here
   65 |         case IPV4_FLOW:
      |         ^~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.c:69:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
   69 |                 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.c:71:9: note: here
   71 |         case UDP_V6_FLOW:
      |         ^~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.c:72:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
   72 |                 if (tp->rss_flags & RTL_8125_RSS_FLAG_HASH_UDP_IPV6)
      |                    ^
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.c:75:9: note: here
   75 |         case IPV6_FLOW:
      |         ^~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:2396:6: warning: no previous prototype for ‘ClearEthPhyOcpBit’ [-Wmissing-prototypes]
 2396 | void ClearEthPhyOcpBit(struct rtl8125_private *tp, u16 addr, u16 mask)
      |      ^~~~~~~~~~~~~~~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:2405:6: warning: no previous prototype for ‘SetEthPhyOcpBit’ [-Wmissing-prototypes]
 2405 | void SetEthPhyOcpBit(struct rtl8125_private *tp,  u16 addr, u16 mask)
      |      ^~~~~~~~~~~~~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/rtl_eeprom.c:96:5: warning: no previous prototype for ‘rtl8125_eeprom_cmd_done’ [-Wmissing-prototypes]
   96 | int rtl8125_eeprom_cmd_done(struct rtl8125_private *tp)
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c: In function ‘rtl8125_get_drvinfo’:
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:4794:17: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
 4794 |                 strlcpy(info->fw_version, rtl_fw->version,
      |                 ^~~~~~~
      |                 strscpy
# cmd_gen_objtooldep /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/rtltool.o
   { echo ; echo '/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/rtltool.o: $(wildcard ./tools/objtool/objtool)' ; } >> /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/.rtltool.o.cmd
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c: At top level:
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:6243:35: error: initialization of ‘int (*)(struct net_device *, struct ethtool_rxfh_param *)’ from incompatible pointer type ‘int (*)(struct net_device *, u32 *, u8 *, u8 *)’ {aka ‘int (*)(struct net_device *, unsigned int *, unsigned char *, unsigned char *)’} [-Werror=incompatible-pointer-types]
 6243 |         .get_rxfh               = rtl8125_get_rxfh,
      |                                   ^~~~~~~~~~~~~~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:6243:35: note: (near initialization for ‘rtl8125_ethtool_ops.get_rxfh’)
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:6244:35: error: initialization of ‘int (*)(struct net_device *, struct ethtool_rxfh_param *, struct netlink_ext_ack *)’ from incompatible pointer type ‘int (*)(struct net_device *, const u32 *, const u8 *, const u8)’ {aka ‘int (*)(struct net_device *, const unsigned int *, const unsigned char *, const unsigned char)’} [-Werror=incompatible-pointer-types]
 6244 |         .set_rxfh               = rtl8125_set_rxfh,
      |                                   ^~~~~~~~~~~~~~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:6244:35: note: (near initialization for ‘rtl8125_ethtool_ops.set_rxfh’)
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:6902:6: warning: no previous prototype for ‘rtl8125_apply_firmware’ [-Wmissing-prototypes]
 6902 | void rtl8125_apply_firmware(struct rtl8125_private *tp)
      |      ^~~~~~~~~~~~~~~~~~~~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:13349:1: warning: no previous prototype for ‘rtl8125_enable_msix’ [-Wmissing-prototypes]
13349 | rtl8125_enable_msix(struct rtl8125_private *tp)
      | ^~~~~~~~~~~~~~~~~~~
/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.c:13377:6: warning: no previous prototype for ‘rtl8125_dump_msix_tbl’ [-Wmissing-prototypes]
13377 | void rtl8125_dump_msix_tbl(struct rtl8125_private *tp)
      |      ^~~~~~~~~~~~~~~~~~~~~
# cmd_gen_objtooldep /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.o
   { echo ; echo '/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_rss.o: $(wildcard ./tools/objtool/objtool)' ; } >> /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/.r8125_rss.o.cmd
# cmd_gen_objtooldep /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/rtl_eeprom.o
   { echo ; echo '/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/rtl_eeprom.o: $(wildcard ./tools/objtool/objtool)' ; } >> /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/.rtl_eeprom.o.cmd
# cmd_gen_objtooldep /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_ptp.o
   { echo ; echo '/tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_ptp.o: $(wildcard ./tools/objtool/objtool)' ; } >> /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/.r8125_ptp.o.cmd
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src/r8125_n.o] Error 1
make[2]: *** [/usr/src/linux-6.8.1-gentoo/Makefile:1921: /tmp/portage/net-misc/r8125-9.011.01-r1/work/r8125-9.011.01/src] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-6.8.1-gentoo'
make: *** [Makefile:188: modules] Error 2


Full build log and emerge --info in the attachments.

Iade
Comment 1 Iade Gesso 2024-03-31 14:28:51 UTC
Created attachment 889088 [details]
emerge --ìinfo net-misc/r8125
Comment 2 Karlson2k 2024-03-31 17:36:55 UTC
*** Bug 928303 has been marked as a duplicate of this bug. ***
Comment 3 Iade Gesso 2024-04-14 12:40:06 UTC
Hi,
same issue in kernel 6.8.6.

Iade
Comment 4 Iade Gesso 2024-04-14 20:28:23 UTC
UPDATE: Newest 9.013.02 version builds fine. I downloaded it from Realtek website and I built it directly from sources.

Iade
Comment 5 Karlson2k 2024-04-16 16:52:46 UTC
*** Bug 928983 has been marked as a duplicate of this bug. ***
Comment 6 Karlson2k 2024-04-16 17:06:36 UTC
The PR for version 9.013.02 has been published.
Comment 7 Larry the Git Cow gentoo-dev 2024-04-18 10:53:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82798ecb788646dabc394df2c6066c257cb3a826

commit 82798ecb788646dabc394df2c6066c257cb3a826
Author:     Karlson2k (Evgeny Grin) <k2k@narod.ru>
AuthorDate: 2024-04-16 16:54:32 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2024-04-18 10:48:30 +0000

    net-misc/r8125: new upstream version 9.013.02
    
    Bug: https://bugs.gentoo.org/928293
    Bug: https://bugs.gentoo.org/928303
    Closes: https://github.com/gentoo/gentoo/pull/36281
    Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 net-misc/r8125/Manifest              |  1 +
 net-misc/r8125/r8125-9.013.02.ebuild | 37 ++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
Comment 8 Karlson2k 2024-04-19 15:16:31 UTC
Could you please check with the newest version in gentoo repo?
Comment 9 Iade Gesso 2024-04-19 18:54:03 UTC
(In reply to Karlson2k from comment #8)
> Could you please check with the newest version in gentoo repo?

Hi,
now it builds fine... I will test it to check if it causes some issues during boot, because when I built it directly from official .tar.bz2 it causes my kernel hanging after rebootin the system.

I will update you soon!


Thanks,

Iade
Comment 10 Karlson2k 2024-04-19 18:56:01 UTC
Closing this bug as it was about broken build, which is fixed now.
If the driver causes run-time problems, please open another bug.