From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079058315753.tru64-unix-managers.marc@archive.invalid> From: "MacDonell, Dennis" Date: Thu, 08 Jul 1999 05:29:40 +0000 To: tru64-unix-managers Subject: Trying to setup gpc but I get errors during "make LANGUAGES=pasca l" X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079058315753 Hi, I'm on a DEC Station 3000/600 with Digital UNIX V4.0E (Rev. 1091). I've copied down a lot of gnu stuff in preparation for compiling gcc-2.8.1 with gpc and g77. All the utilities compiled OK, except for bison which required a definition for __STDC__ to compile properly. However when I try to compile gcc with the following directory structure gcc gcc/p gcc/f I am having problems, that I hope someone out there might be able to help me with. The first problem is a couple of warnings that appeared right at the start of the command "make LANGUAGES=c". These warnings look fairly ignorable cc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config \ -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/alpha-dec-osf4.0e/2.8.1/include\" \ -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/include/g++\" \ -DOLD_GPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \ -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \ -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/alpha-dec-osf4.0e/2.8.1/sys-inc lude\" \ -DTOOL_INCLUDE_DIR=\"/usr/local/alpha-dec-osf4.0e/include\" \ -c `echo ./cccp.c | sed 's,^\./,,'` cc: Warning: cccp.c, line 1306: In this statement, the expression "simplify_filename(...)" modifies "i", a nd fetches its value in a computation that is not used to produce the modified value without an intervenin g sequence point. This behavior is undefined. (undefvarfetch) simplify_filename (pend_includes[i] = argv[++i]); ------------^ cc: Warning: cccp.c, line 1312: In this statement, the expression "simplify_filename(...)" modifies "i", a nd fetches its value in a computation that is not used to produce the modified value without an intervenin g sequence point. This behavior is undefined. (undefvarfetch) simplify_filename (pend_files[i] = argv[++i]); ------------^ The code this applies to looks something like this 1301 case 'i': 1302 if (!strcmp (argv[i], "-include")) { 1303 if (i + 1 == argc) 1304 fatal ("Filename missing after `-include' option"); 1305 else 1306 simplify_filename (pend_includes[i] = argv[++i]); 1307 } 1308 if (!strcmp (argv[i], "-imacros")) { 1309 if (i + 1 == argc) 1310 fatal ("Filename missing after `-imacros' option"); 1311 else 1312 simplify_filename (pend_files[i] = argv[++i]); 1313 } The second problem was with errors that result during the command "make LANGUAGES=pascal" cc -c -DIN_GCC -DGPC -g -I. -I.. -I. -I./.. -I./../config -I./../../include gpc-common.c cc -c -DIN_GCC -DGPC -g -I. -I.. -I. -I./.. -I./../config -I./../../include gpc-convert.c cc -c -DIN_GCC -DGPC -g -I. -I.. -I. -I./.. -I./../config -I./../../include gpc-decl.c cc -c -DIN_GCC -DGPC -g -I. -I.. -I. -I./.. -I./../config -I./../../include gpc-lang.c cc: Error: gpc-lang.c, line 174: Missing ";". (nosemi) extern tree static_ctors ATTRIBUTE_UNUSED, static_dtors ATTRIBUTE_UNUSED; ---------------------------^ cc: Error: gpc-lang.c, line 176: Missing ";". (nosemi) tree void_list_node ATTRIBUTE_UNUSED = ----------------------^ cc: Error: gpc-lang.c, line 199: In this statement, "static_dtors" is not declared. (undeclared) if (static_dtors) ------^ *** Exit 1 Stop. The code that this applies to looks like this 171 void 172 finish_file () 173 { 174 extern tree static_ctors ATTRIBUTE_UNUSED, static_dtors ATTRIBUTE_UNUSED; 175 extern tree build_function_call PROTO((tree, tree)); 176 tree void_list_node ATTRIBUTE_UNUSED = 177 build_tree_list (NULL_TREE, void_type_node); 178 #ifndef ASM_OUTPUT_CONSTRUCTOR 179 if (static_ctors) 180 { 181 tree fnname = get_file_function_name ('I'); 182 start_function (void_list_node, 183 build_parse_node (CALL_EXPR, fnname, void_list_node, 184 NULL_TREE), 185 NULL_TREE, NULL_TREE, 0); 186 fnname = DECL_ASSEMBLER_NAME (current_function_decl); Hope someone knows whats going on, because I certainly don't. Perhaps I should get hold of the code after its been through the preprocessor. Dennis ------------------------------------------------ Dennis Macdonell | Systems Administrator | AUSLIG | "Bad is never em: mcdonell@auslig.gov.au | good until worse ph: 02 6201 4326 | happens" fax: 02 6201 4377 | ------------------------------------------------