Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issues on RESCH #2

Open
akrv opened this issue Oct 9, 2019 · 3 comments
Open

Installation issues on RESCH #2

akrv opened this issue Oct 9, 2019 · 3 comments

Comments

@akrv
Copy link

akrv commented Oct 9, 2019

Hi,
I tried to install the measurer.
for this we had to install RESCH.
Apparently, ROSCH is not installing because of RESCH.

i tried to install this version of RESCH and it still wasnt possible.
http://www.ertl.jp/~shinpei/resch/

any help/advice to install would be help.
below, is the installation output

hazem@Hazem-PC:~/ROSCH/Measurer$ make
make[1]: Entering directory '/home/hazem/ROSCH/Measurer/RESCH'
make[2]: Entering directory '/home/hazem/ROSCH/Measurer/RESCH/core'
make -C /lib/modules/4.15.0-65-generic/build
M=/home/hazem/ROSCH/Measurer/RESCH/core modules
make[3]: Entering directory '/usr/src/linux-headers-4.15.0-65-generic'
  CC [M]  /home/hazem/ROSCH/Measurer/RESCH/core/main.o
In file included from
/home/hazem/ROSCH/Measurer/RESCH/core/../include/resch-gpu-core.h:7:0,
                 from /home/hazem/ROSCH/Measurer/RESCH/core/main.c:21:
./include/linux/irqdesc.h:56:25: error: field ‘irq_common_data’ has
incomplete type
  struct irq_common_data irq_common_data;
                         ^
./include/linux/irqdesc.h:57:19: error: field ‘irq_data’ has incomplete type
  struct irq_data  irq_data;
                   ^
./include/linux/irqdesc.h:59:2: error: unknown type name ‘irq_flow_handler_t’
  irq_flow_handler_t handle_irq;
  ^
In file included from ./arch/x86/include/asm/percpu.h:45:0,
                 from ./arch/x86/include/asm/current.h:6,
                 from ./include/linux/sched.h:12,
                 from ./include/linux/uaccess.h:5,
                 from /home/hazem/ROSCH/Measurer/RESCH/core/main.c:12:
./include/linux/irqdesc.h: In function ‘irq_data_to_desc’:
./include/linux/irqdesc.h:121:26: error: dereferencing pointer to
incomplete type ‘struct irq_data’
  return container_of(data->common, struct irq_desc, irq_common_data);
                          ^
./include/linux/kernel.h:947:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^
In file included from
/home/hazem/ROSCH/Measurer/RESCH/core/../include/resch-gpu-core.h:7:0,
                 from /home/hazem/ROSCH/Measurer/RESCH/core/main.c:21:
./include/linux/irqdesc.h: In function ‘generic_handle_irq_desc’:
./include/linux/irqdesc.h:160:2: error: called object is not a function or
function pointer
  desc->handle_irq(desc);
  ^
./include/linux/irqdesc.h: At top level:
./include/linux/irqdesc.h:204:8: error: unknown type name
‘irq_flow_handler_t’
        irq_flow_handler_t handler)
        ^
./include/linux/irqdesc.h:225:6: error: unknown type name
‘irq_flow_handler_t’
      irq_flow_handler_t handler, const char *name)
      ^
./include/linux/irqdesc.h: In function ‘irq_balancing_disabled’:
./include/linux/irqdesc.h:239:38: error: ‘IRQ_NO_BALANCING_MASK’
undeclared (first use in this function)
  return desc->status_use_accessors & IRQ_NO_BALANCING_MASK;
                                      ^
./include/linux/irqdesc.h:239:38: note: each undeclared identifier is
reported only once for each function it appears in
./include/linux/irqdesc.h: In function ‘irq_is_percpu’:
./include/linux/irqdesc.h:247:38: error: ‘IRQ_PER_CPU’ undeclared (first
use in this function)
  return desc->status_use_accessors & IRQ_PER_CPU;
                                      ^
./include/linux/irqdesc.h: In function ‘irq_is_percpu_devid’:
./include/linux/irqdesc.h:255:38: error: ‘IRQ_PER_CPU_DEVID’ undeclared
(first use in this function)
  return desc->status_use_accessors & IRQ_PER_CPU_DEVID;
                                      ^
scripts/Makefile.build:330: recipe for target
'/home/hazem/ROSCH/Measurer/RESCH/core/main.o' failed
make[4]: *** [/home/hazem/ROSCH/Measurer/RESCH/core/main.o] Error 1
Makefile:1571: recipe for target
'_module_/home/hazem/ROSCH/Measurer/RESCH/core' failed
make[3]: *** [_module_/home/hazem/ROSCH/Measurer/RESCH/core] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-4.15.0-65-generic'
Makefile:22: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/hazem/ROSCH/Measurer/RESCH/core'
Makefile:7: recipe for target 'core' failed
make[1]: *** [core] Error 2
make[1]: Leaving directory '/home/hazem/ROSCH/Measurer/RESCH'
Makefile:7: recipe for target 'RESCH' failed
make: *** [RESCH] Error 2
@seboz123
Copy link

Have you solved the problem? I've got the same error.

@akrv
Copy link
Author

akrv commented Nov 19, 2019

We also tried to reach out to the author.
We will update if we get any updates from other channels.

@aditi741997
Copy link

aditi741997 commented Nov 25, 2020

I am also getting the same error on an Ubuntu 16.04 machine. It'll be great if you could share any solution you might've found for this?

Update: I just moved the line #include <linux/irq.h> just above the line #include <linux/irqdesc.h> in file RESCH/include/resch-gpu-core.h and it complied successfully! It seems that these structs are defined in the linux/irq.h header and hence it should be included before including the irqdesc.h header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants