#1 Makefile error

open
nobody
5
2004-09-30
2004-09-30
Roger
No

Just posting this really quick (gotta go!) to give you
heads up that your makefile errors when compiling the
module outside of the kernel tree.

garmin_gps-0.14 # ./compile.sh /usr/src/linux/
mkdir -p /home/roger/src/garmin_gps-0.14/.tmp_versions
make -f scripts/Makefile.build
obj=/home/roger/src/garmin_gps-0.14
rm -f /home/roger/src/garmin_gps-0.14/built-in.o; ar
rcs /home/roger/src/garmin_gps-0.14/built-in.o
make[1]: *** No rule to make target
`/home/roger/src/garmin_gps-0.14/garmin_gps.c', needed
by `/home/roger/src/garmin_gps-0.14/garmin_gps.o'. Stop.
make: *** [_module_/home/roger/src/garmin_gps-0.14] Error 2
make -rR -f /usr/src/linux-2.6.8.1/scripts/Makefile.modinst

Discussion

  • Roger
    Roger
    2004-10-06

    Logged In: YES
    user_id=348797

    I responded directly to the maintainer/author with the
    resolution.

    Turns out I first started building for "in kernel", in turn,
    this confused the build script & files when the building for
    "outside the kernel".

    Simply removing all temp files or all the files (& untarring
    the source tarball again) resolved the problem.