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

include/trace/define_trace.h:83:43: fatal error: ./trace.h: No such file or directory #1

Closed
ghost opened this issue Feb 18, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 18, 2015

I have the following setup:

  • Ubuntu 14.04 LTS
  • 3.19.0-031900-generic #201502091451 kernel

Trying to compile the driver but get the following error:

LD /tmp/mt7601u/built-in.o
CC [M] /tmp/mt7601u/usb.o
CC [M] /tmp/mt7601u/init.o
CC [M] /tmp/mt7601u/main.o
CC [M] /tmp/mt7601u/mcu.o
CC [M] /tmp/mt7601u/trace.o
In file included from /tmp/mt7601u/trace.h:392:0,
from /tmp/mt7601u/trace.c:19:
include/trace/define_trace.h:83:43: fatal error: ./trace.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.

I guess it has smth to do with defines for tracing in trace.h but I don't know how to fix that.

@ghost
Copy link
Author

ghost commented Feb 18, 2015

Easy fix for those who got the issue:

  • in trace.h find line #define TRACE_INCLUDE_PATH .
  • replace . with path to your source directory ending with /

For example: #define TRACE_INCLUDE_PATH /home/miltador/mt7601u/

@kuba-moo
Copy link
Owner

Strange, that's the standard way to define trace points. the exact line

#define TRACE_INCLUDE_PATH .

is used in Linux kernel 51 times :/ I'm downloading Ubuntu, maybe I'll be able to reproduce this problem.

kuba-moo added a commit that referenced this issue Feb 18, 2015
trace.c requires ./ in the include path. While on it also define
__CHECK_ENDIAN__.

Issue-id: #1
Reported-by: Vasiliy Solovey <miltador@yandex.ua>
Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
@ghost
Copy link
Author

ghost commented Feb 18, 2015

Now it works fine without editing. Thanks!

This issue was closed.
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

1 participant