Title: | USG buildhelp questions/answers |
Moderator: | SMURF::FILTER |
Created: | Mon Apr 26 1993 |
Last Modified: | Mon Jan 20 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2763 |
Total number of notes: | 5802 |
Date Of Receipt: 27-JUL-1993 13:28:52.56 From: LOCORE::"[email protected]" To: [email protected] CC: Subj: Building files that include other ".c" files A developer here is trying to build a kernel which includes files for SVVS. His technique is to use .c files which include other .c files. He is using the syntax `#include "file"'. Is this possible? Below is a log of the build: /usr/sde/osf1/build/agosminor.nightly/tools/alpha_OSF1/alpha/acc/cc -c -O2 -g3 -DLANGUAGE_C -g3 -G 4 -I -I. -I.. -I../i nclude -DIDENT=BINARY -DDEC2000_300 -DDEC3000_300 -DDEC3000_500 -DDEC7000 -DDEC4000 -DALPHAADU -DSWAPTYPE=1 -DRELEASE='"' 9.0'"' -DVERSION='"'0'"' -DMACH -DOSF -DCOMPAT_43 -DPACKETFILTER -DUFS -DTRN -DRT -DKERNEL -D_KERNEL -D_BSD -signed -no_ excpt -Wb,-static -Wco,-nofloat -Olimit 1000 -D__alpha -Umips -UMIPS ../../../../src/kernel/streamsm/svvs.c /usr/sde/osf1/build/agosminor.nightly/tools/alpha_OSF1/alpha/acc/usr/lib/cmplrs/cc/cfe: Error: ../../../../src/kernel/str eamsm/svvs.c: 132: Cannot open file ../svvs/io/lmodb.c for #include /usr/sde/osf1/build/agosminor.nightly/tools/alpha_OSF1/alpha/acc/usr/lib/cmplrs/cc/cfe: Error: ../../../../src/kernel/str eamsm/svvs.c: 133: Cannot open file ../svvs/io/lmode.c for #include /usr/sde/osf1/build/agosminor.nightly/tools/alpha_OSF1/alpha/acc/usr/lib/cmplrs/cc/cfe: Error: ../../../../src/kernel/str eamsm/svvs.c: 134: Cannot open file ../svvs/io/lmodr.c for #include /usr/sde/osf1/build/agosminor.nightly/tools/alpha_OSF1/alpha/acc/usr/lib/cmplrs/cc/cfe: Error: ../../../../src/kernel/str eamsm/svvs.c: 135: Cannot open file ../svvs/io/lmodt.c for #include /usr/sde/osf1/build/agosminor.nightly/tools/alpha_OSF1/alpha/acc/usr/lib/cmplrs/cc/cfe: Error: ../../../../src/kernel/str eamsm/svvs.c: 155: Cannot open file ../svvs/io/lo.c for #include /usr/sde/osf1/build/agosminor.nightly/tools/alpha_OSF1/alpha/acc/usr/lib/cmplrs/cc/cfe: Error: ../../../../src/kernel/str eamsm/svvs.c: 159: Cannot open file ../svvs/io/tmux.c for #include /usr/sde/osf1/build/agosminor.nightly/tools/alpha_OSF1/alpha/acc/usr/lib/cmplrs/cc/cfe: Error: ../../../../src/kernel/str eamsm/svvs.c: 173: Cannot open file ../svvs/io/tidg.c for #include /usr/sde/osf1/build/agosminor.nightly/tools/alpha_OSF1/alpha/acc/usr/lib/cmplrs/cc/cfe: Error: ../../../../src/kernel/str eamsm/svvs.c: 179: Cannot open file ../svvs/io/tivc.c for #include *** Exit 1 Stop. *** Exit 1 Stop. Rich ---------------------------------------------------------------- Rich Larsen, M/S: UNX TCP/IP: [email protected] USSG/User Env. & Std. Group DECnet: UNXA::LARSEN Digital Equipment Corporation FAX: 908-577-6003 200 Route 9 North Voice: 908-577-6083 Manalapan, New Jersey 07726 DTN: 462
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
241.1 | Re: Building files that include other .c files | SMURF::FILTER | Automatic Posting Software - mail to flume::puck | Tue Jul 27 1993 16:54 | 17 |
Date Of Receipt: 27-JUL-1993 13:44:07.36 From: ALPHA::bstevens "Brian Stevens 27-Jul-1993 1343" To: "Rich Larsen (908) 577-6083 DTN 462-6083 [email protected]" <[email protected]> CC: [email protected], bstevens@DEC:.zko.alpha Subj: Re: Building files that include other ".c" files Including .c files is ok. The failure here is that the file is not found. It needs to be propagated from the src tree to the obj tree, and referenced by the concatenation of the -I directives (from your log) with what you put int the #include. So you will have some Makefile changes in src, src/svvs and src/svvs/io that pushes the .c files to obj/alpha/kernel/svvs/io. Then specify a #include such as <svvs/io/lmodr.c>. You might reference the src/data Makefiles to see how this is done. Brian | |||||
241.2 | Re: Building files that include other .c files | SMURF::FILTER | Automatic Posting Software - mail to flume::puck | Tue Jul 27 1993 16:55 | 12 |
Date Of Receipt: 27-JUL-1993 13:51:35.87 From: FLUME::jmcg "Jim McGinness" To: flume::bstevens, [email protected] CC: [email protected] Subj: Re: Building files that include other ".c" files The .c files should only need to be copied if the intention is to deliver them to the customer on a binary kit. Otherwise, VPATH and -I directives ought to suffice. -- jmcg | |||||
241.3 | Re: Building files that include other .c files | SMURF::FILTER | Automatic Posting Software - mail to flume::puck | Tue Jul 27 1993 16:57 | 11 |
Date Of Receipt: 27-JUL-1993 14:12:01.63 From: LOCORE::"[email protected]" To: [email protected] (Jim McGinness) CC: [email protected], [email protected] Subj: Re: Building files that include other ".c" files Can you you be more specific when you refer to the use of VPATH and the -I directives? -Rich Larsen |