Ich weiss, dass die Frage bloed klingt. ;)
Warum kann der gcc eine Datei nicht finden, die er laut Makefile
compilieren soll und die auch vorhanden ist ?
Etwas anschaulicher:
im Makefile (o2c, falls sich damit schon mal jemand rumgeaergert haben
sollte...) steht folgendes:
...
o2c_stage0:
if [ -f obj.distrib ]; then \
-rm -rf obj; mv obj.distrib obj; rm -f obj/*.[o]; \
fi
-rm -f o2c_stage0 o2c_stage1 o2c_stage2 o2c all
# check the hardcoded type sizes against the C types
gcc -o sizes system/sizes.c
./sizes
...
Problem:
jesse(at)marvin:~/o2c-1.11>make
if [ -f obj.distrib ]; then -rm -rf obj; mv obj.distrib obj; rm -f
obj/*.[o]; fi
rm -f o2c_stage0 o2c_stage1 o2c_stage2 o2c all
gcc -o sizes system/sizes.c
gcc: system/sizes.c: No such file or directory
gcc: No input files specified
*** Error code 1
Stop.
jesse(at)marvin:~/o2c-1.11>ls -l system/sizes.c
-rw-r--r-- 1 jesse users 2504 Jan 8 19:21 system/sizes.c
Noch schöner:
jesse(at)marvin:~/o2c-1.11>gcc -o sizes system/sizes.c
jesse(at)marvin:~/o2c-1.11>ls -l sizes
13730 26 -rwxr--rwx 1 jesse users 12996 Mar 29 16:28 sizes
Das passiert mir sowohl at home, als auch an der Uni, aber nur auf
den FreeBSD-Rechnern. Zumindest auf HP-UX gab es keinerlei Probleme.
Suspekt, suspekt.
Roland, völlig vor einem Rätsel stehend.
-- "Who the hell is General Failure?" - "And why is he reading my harddisk?" -- +---------------------------------------------------------------------+ | Roland (rj,-) Jesse, <jesse(at)hppool.cs.uni-magdeburg.de> | | stud.rer.nat. et phil. http://www.cs.uni-magdeburg.de/~jesse/ | +------ pgp public key via keyserver or mail with subject ##key ------+Received on Fri 29 Mar 1996 - 16:46:36 CET