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

GNU Make makefiles recursion reaches outside of Harbour source tree during build #380

Open
alcz opened this issue Jan 31, 2025 · 0 comments

Comments

@alcz
Copy link
Contributor

alcz commented Jan 31, 2025

If a file with name known to the build system is placed in a HOME directory of a UNIX system e.g.:
/home/user/runner.prg
Let's make the contents of the file clear, so the demo is obvious:
#error "ITSABUG"
Harbour build is in the
/home/user/harbour
cd /home/user/harbour && make

Harbour build will fail

../../../../../bin/linux/gcc/harbour ../../../../../../runner.prg  -i../../../../../include -n1 -q0 -w3 -es2 -kmo -i- -l
../../../../../../runner.prg(1) Error E0019  #error '"ITSABUG"'
1 error

No code generated.
make[3]: *** [../../../../../config/rules.mk:147: ../../../runner.c] Error 1
make[2]: *** [../../config/lib.mk:68: descend] Error 2
make[1]: *** [../config/dir.mk:71: vm] Error 2
make: *** [config/dir.mk:71: src] Error 2

Quite funny, but i'm not in mood on tackling it now.

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