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

build will fail on ubuntu20.04 #260

Closed
gwnet opened this issue Jun 23, 2020 · 1 comment
Closed

build will fail on ubuntu20.04 #260

gwnet opened this issue Jun 23, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@gwnet
Copy link

gwnet commented Jun 23, 2020

below is the build error on the ubuntu 20.04 server

[ 93%] Built target testPlugin
make[3]: Entering directory '/home/intel/wayne/standalone-linux-io-tracer/build/release'
make[3]: Leaving directory '/home/intel/wayne/standalone-linux-io-tracer/build/release'
[ 95%] Built target testPluginClient
make[3]: Entering directory '/home/intel/wayne/standalone-linux-io-tracer/build/release'
make[3]: Leaving directory '/home/intel/wayne/standalone-linux-io-tracer/build/release'
make[3]: Entering directory '/home/intel/wayne/standalone-linux-io-tracer/build/release'
[ 96%] Generating ../../../../source/kernel/iotrace.ko
make[4]: Entering directory '/usr/src/linux-headers-5.4.0-37-generic'
In file included from /home/intel/wayne/standalone-linux-io-tracer/source/kernel/trace_bdev.c:12:
/home/intel/wayne/standalone-linux-io-tracer/source/kernel/trace_bdev.c: In function ‘iotrace_bdev_remove’:
/home/intel/wayne/standalone-linux-io-tracer/source/kernel/config.h:249:35: error: too many arguments to function ‘lookup_bdev’
  249 | #define IOTRACE_LOOKUP_BDEV(path) lookup_bdev(path, 0)
      |                                   ^~~~~~~~~~~
/home/intel/wayne/standalone-linux-io-tracer/source/kernel/trace_bdev.c:233:12: note: in expansion of macro ‘IOTRACE_LOOKUP_BDEV’
  233 |     bdev = IOTRACE_LOOKUP_BDEV(path);
      |            ^~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/huge_mm.h:8,
                 from ./include/linux/mm.h:587,
                 from ./include/linux/bvec.h:13,
                 from ./include/linux/blk_types.h:10,
                 from ./include/linux/genhd.h:19,
                 from ./include/linux/blkdev.h:11,
                 from /home/intel/wayne/standalone-linux-io-tracer/source/kernel/trace_bdev.h:9,
                 from /home/intel/wayne/standalone-linux-io-tracer/source/kernel/trace_bdev.c:6:
./include/linux/fs.h:2715:29: note: declared here
 2715 | extern struct block_device *lookup_bdev(const char *);
      |                             ^~~~~~~~~~~
make[5]: *** [scripts/Makefile.build:275: /home/intel/wayne/standalone-linux-io-tracer/source/kernel/trace_bdev.o] Error 1
make[4]: *** [Makefile:1719: /home/intel/wayne/standalone-linux-io-tracer/source/kernel] Error 2
make[4]: Leaving directory '/usr/src/linux-headers-5.4.0-37-generic'
make[3]: *** [source/kernel/CMakeFiles/traceModule.dir/build.make:78: ../../source/kernel/iotrace.ko] Error 2
make[3]: Leaving directory '/home/intel/wayne/standalone-linux-io-tracer/build/release'
make[2]: *** [CMakeFiles/Makefile2:1763: source/kernel/CMakeFiles/traceModule.dir/all] Error 2
make[2]: Leaving directory '/home/intel/wayne/standalone-linux-io-tracer/build/release'
make[1]: *** [Makefile:152: all] Error 2
make[1]: Leaving directory '/home/intel/wayne/standalone-linux-io-tracer/build/release'
make: *** [Makefile:40: all] Error 2
intel@wcp116:~/wayne/standalone-linux-io-tracer$ 
@mmkayPL mmkayPL self-assigned this Jun 23, 2020
@mmkayPL mmkayPL added the bug Something isn't working label Jun 23, 2020
mmkayPL added a commit to mmkayPL/standalone-linux-io-tracer that referenced this issue Jun 24, 2020
@gwnet
Copy link
Author

gwnet commented Jul 2, 2020

verified passed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants