All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] LTP build failure with 5.14 on ppc64le
@ 2022-05-20 10:46 samir mulani
  2022-05-20 10:58 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: samir mulani @ 2022-05-20 10:46 UTC (permalink / raw)
  To: ltp


[-- Attachment #1.1: Type: text/plain, Size: 2183 bytes --]

Hi Team,

If anyone is help me with below build error message,

git clone https://github.com/linux-test-project/ltp.git
$ cd ltp
$ make autotools
$ ./configure
$ make


Log,

make -C /lib/modules/5.14.21-150400.19-default/build
M=/Workspace/ltp-master/testcases/kernel/device-drivers/acpi
  CC [M]  /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.o
/Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:
In function 'get_sysfs_path':
/Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:132:11:
error: implicit declaration of function 'acpi_bus_get_device'; did you
mean 'acpi_get_gpe_device'? [-Werror=implicit-function-declaration]
  status = acpi_bus_get_device(handle, &device);
           ^~~~~~~~~~~~~~~~~~~
           acpi_get_gpe_device
/Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:134:40:
error: dereferencing pointer to incomplete type 'struct acpi_device'
   sysfs_path = kobject_get_path(&device->dev.kobj, GFP_KERNEL);
                                        ^~
/Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:
In function 'acpi_test_bus':
/Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:407:11:
error: implicit declaration of function 'acpi_bus_update_power'; did
you mean 'acpi_os_trace_point'?
[-Werror=implicit-function-declaration]
  status = acpi_bus_update_power(device->handle, &state);
           ^~~~~~~~~~~~~~~~~~~~~
           acpi_os_trace_point
cc1: some warnings being treated as errors
make[7]: *** [/usr/src/linux-5.14.21-150400.19/scripts/Makefile.build:272:
/Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.o]
Error 1
make[6]: *** [/usr/src/linux-5.14.21-150400.19/Makefile:1882:
/Workspace/ltp-master/testcases/kernel/device-drivers/acpi] Error 2
make[5]: *** [../../../linux-5.14.21-150400.19/Makefile:220: __sub-make] Error 2
make[4]: [../../../../include/mk/module.mk:62: .dep_modules] Error 2 (ignored)
rm -rf *.mod.c *.o *.ko.unsigned modules.order .tmp* .*.ko .*.cmd Module.symvers
CC testcases/kernel/device-drivers/block/block_dev_user/block_dev


Regards,
Samir M.

[-- Attachment #1.2: Type: text/html, Size: 5640 bytes --]

[-- Attachment #2: Type: text/plain, Size: 60 bytes --]


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] LTP build failure with 5.14 on ppc64le
  2022-05-20 10:46 [LTP] LTP build failure with 5.14 on ppc64le samir mulani
@ 2022-05-20 10:58 ` Cyril Hrubis
  2022-05-20 11:00   ` samir mulani
  0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2022-05-20 10:58 UTC (permalink / raw)
  To: samir mulani; +Cc: ltp

Hi!
> make -C /lib/modules/5.14.21-150400.19-default/build
> M=/Workspace/ltp-master/testcases/kernel/device-drivers/acpi
>   CC [M]  /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.o
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:
> In function 'get_sysfs_path':
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:132:11:
> error: implicit declaration of function 'acpi_bus_get_device'; did you
> mean 'acpi_get_gpe_device'? [-Werror=implicit-function-declaration]
>   status = acpi_bus_get_device(handle, &device);
>            ^~~~~~~~~~~~~~~~~~~
>            acpi_get_gpe_device
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:134:40:
> error: dereferencing pointer to incomplete type 'struct acpi_device'
>    sysfs_path = kobject_get_path(&device->dev.kobj, GFP_KERNEL);
>                                         ^~
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:
> In function 'acpi_test_bus':
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:407:11:
> error: implicit declaration of function 'acpi_bus_update_power'; did
> you mean 'acpi_os_trace_point'?
> [-Werror=implicit-function-declaration]
>   status = acpi_bus_update_power(device->handle, &state);
>            ^~~~~~~~~~~~~~~~~~~~~
>            acpi_os_trace_point
> cc1: some warnings being treated as errors
> make[7]: *** [/usr/src/linux-5.14.21-150400.19/scripts/Makefile.build:272:
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.o]
> Error 1
> make[6]: *** [/usr/src/linux-5.14.21-150400.19/Makefile:1882:
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi] Error 2
> make[5]: *** [../../../linux-5.14.21-150400.19/Makefile:220: __sub-make] Error 2
> make[4]: [../../../../include/mk/module.mk:62: .dep_modules] Error 2 (ignored)
> rm -rf *.mod.c *.o *.ko.unsigned modules.order .tmp* .*.ko .*.cmd Module.symvers
> CC testcases/kernel/device-drivers/block/block_dev_user/block_dev

That's just a LTP kernel module build failure, the modules we have in
LTP does not support all kernel versions and may fail to build. This is
not treated as an error by the build system and when the module fails to
build the test is skipped when tests are executed.

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] LTP build failure with 5.14 on ppc64le
  2022-05-20 10:58 ` Cyril Hrubis
@ 2022-05-20 11:00   ` samir mulani
  0 siblings, 0 replies; 3+ messages in thread
From: samir mulani @ 2022-05-20 11:00 UTC (permalink / raw)
  To: Cyril Hrubis; +Cc: ltp


[-- Attachment #1.1: Type: text/plain, Size: 2602 bytes --]

Hi Cyril,

Thank you for the clarification.

Regards,
Samir M.

On Fri, 20 May 2022 at 16:26, Cyril Hrubis <chrubis@suse.cz> wrote:

> Hi!
> > make -C /lib/modules/5.14.21-150400.19-default/build
> > M=/Workspace/ltp-master/testcases/kernel/device-drivers/acpi
> >   CC [M]
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.o
> >
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:
> > In function 'get_sysfs_path':
> >
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:132:11:
> > error: implicit declaration of function 'acpi_bus_get_device'; did you
> > mean 'acpi_get_gpe_device'? [-Werror=implicit-function-declaration]
> >   status = acpi_bus_get_device(handle, &device);
> >            ^~~~~~~~~~~~~~~~~~~
> >            acpi_get_gpe_device
> >
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:134:40:
> > error: dereferencing pointer to incomplete type 'struct acpi_device'
> >    sysfs_path = kobject_get_path(&device->dev.kobj, GFP_KERNEL);
> >                                         ^~
> >
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:
> > In function 'acpi_test_bus':
> >
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:407:11:
> > error: implicit declaration of function 'acpi_bus_update_power'; did
> > you mean 'acpi_os_trace_point'?
> > [-Werror=implicit-function-declaration]
> >   status = acpi_bus_update_power(device->handle, &state);
> >            ^~~~~~~~~~~~~~~~~~~~~
> >            acpi_os_trace_point
> > cc1: some warnings being treated as errors
> > make[7]: ***
> [/usr/src/linux-5.14.21-150400.19/scripts/Makefile.build:272:
> >
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.o]
> > Error 1
> > make[6]: *** [/usr/src/linux-5.14.21-150400.19/Makefile:1882:
> > /Workspace/ltp-master/testcases/kernel/device-drivers/acpi] Error 2
> > make[5]: *** [../../../linux-5.14.21-150400.19/Makefile:220: __sub-make]
> Error 2
> > make[4]: [../../../../include/mk/module.mk:62: .dep_modules] Error 2
> (ignored)
> > rm -rf *.mod.c *.o *.ko.unsigned modules.order .tmp* .*.ko .*.cmd
> Module.symvers
> > CC testcases/kernel/device-drivers/block/block_dev_user/block_dev
>
> That's just a LTP kernel module build failure, the modules we have in
> LTP does not support all kernel versions and may fail to build. This is
> not treated as an error by the build system and when the module fails to
> build the test is skipped when tests are executed.
>
> --
> Cyril Hrubis
> chrubis@suse.cz
>

[-- Attachment #1.2: Type: text/html, Size: 3480 bytes --]

[-- Attachment #2: Type: text/plain, Size: 60 bytes --]


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-20 11:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 10:46 [LTP] LTP build failure with 5.14 on ppc64le samir mulani
2022-05-20 10:58 ` Cyril Hrubis
2022-05-20 11:00   ` samir mulani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.