Title: | DECC |
Notice: | General DEC C discussions |
Moderator: | TLE::D_SMITH N TE |
Created: | Fri Nov 13 1992 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2212 |
Total number of notes: | 11045 |
I have a partner who is getting the following error while compiling after upgrading from DU 2.0 to 3.2. The version of cc is 3.11. cc: Error: Non-digit in integer argument "ritable_strings" to option "-writable_ strings" Before I get a reproducer, I'm posting it here in hopes of it being something simple. Here is an excerpt of the build output. Thanks Pat Bryant Software Partner Engineering ---------------------------------------------------- vobadm@cheetah:(R6.1.4):39% cmake dfd_check test -d /twk/src/obj_editor/objs_osf1-al || mkdir -p /twk/src/obj_editor /objs_osf1-al umask 000; cd /twk/src/obj_editor/objs_osf1-al; /bin/true; /usr/atria/bi n/clearmake -C gnu -r -kV -f /twk/src/obj_editor/Makefile dfd_check MK_RECURSE=T RUE Building call_checker.o /bin/cc -DvdebugDEBUG=0 -Dstrcat=cadre_strcat -Dstrchr=cadre_strchr -Ds trcmp=cadre_strcmp -Dstrcpy=cadre_strcpy -Dstrcspn=cadre_strcspn -Dstrlen=cadre_ strlen -Dstrncat=cadre_strncat -Dstrncmp=cadre_strncmp -Dstrncpy=cadre_strncpy - Dstrpbrk=cadre_strpbrk -Dstrrchr=cadre_strrchr -Dstrspn=cadre_strspn -Dstrtok=ca dre_strtok -DVISTA=1 -DANSII_CPP -DALPHA -Dalpha -D__alpha -D__host_alpha -D__o sf__ -D__unix -D_LONGLONG -DUNIX -Dunix -DX11 -DRPC -DCADRE -+ -D__LANGUAGE_C __ -DLANGUAGE_C -D__unix__ -D_CFE -DSYSTYPE_BSD -D_SYS_TYPE_BSD -I. -I/twk/sr c/fse -I/twk/src -I/twk/src/fse_include -I/twk/src/obj_editor -I/twk/src/parse_t ext -I/twk/src/ooa_misc -I/twk/src/sim -I/twk/src/std -I/twk/src/erd -I/twk/src/ mtx_editor -I/twk/src/sc -I/twk/src/ms -I/twk/src/o_misc -I/twk/src/nt -I/twk/sr c/fig -I/twk/src/include -I/twk/src/ooa_comp -I/twk/src/print_comps -I/twk/src/t extblocks -I/twk/src/sys_include_alpha -I/usr/include -I/usr/include/X11 -c -v -migrate -assume noaligned_objects -writable_strings /twk/src/obj_edito r/call_checker.c /usr/lib/cmplrs/cc/gemc_cc -D__LANGUAGE_C__ -D__unix__ -D__osf__ -D__alpha -D_SY STYPE_BSD -D_LONGLONG -DLANGUAGE_C -Dunix -DSYSTYPE_BSD -DvdebugDEBUG=0 -Dstrcat =cadre_strcat -Dstrchr=cadre_strchr -Dstrcmp=cadre_strcmp -Dstrcpy=cadre_strcpy -Dstrcspn=cadre_strcspn -Dstrlen=cadre_strlen -Dstrncat=cadre_strncat -Dstrncmp= cadre_strncmp -Dstrncpy=cadre_strncpy -Dstrpbrk=cadre_strpbrk -Dstrrchr=cadre_st rrchr -Dstrspn=cadre_strspn -Dstrtok=cadre_strtok -DVISTA=1 -DANSII_CPP -DALPHA -Dalpha -D__alpha -D__host_alpha -D__osf__ -D__unix -D_LONGLONG -DUNIX -Dunix -D X11 -DRPC -DCADRE -D__LANGUAGE_C__ -DLANGUAGE_C -D__unix__ -D_CFE -DSYSTYPE_BSD -D_SYS_TYPE_BSD -I. -I/twk/src/fse -I/twk/src -I/twk/src/fse_include -I/twk/src/ obj_editor -I/twk/src/parse_text -I/twk/src/ooa_misc -I/twk/src/sim -I/twk/src/s td -I/twk/src/erd -I/twk/src/mtx_editor -I/twk/src/sc -I/twk/src/ms -I/twk/src/o _misc -I/twk/src/nt -I/twk/src/fig -I/twk/src/include -I/twk/src/ooa_comp -I/twk /src/print_comps -I/twk/src/textblocks -I/twk/src/sys_include_alpha -I/usr/inclu de -I/usr/include/X11 -I/usr/include3.11 -g1 -O1 -assume noaligned_objects -writ able_strings -common -o call_checker.o /twk/src/obj_editor/call_checker.c cc: Error: Non-digit in integer argument "ritable_strings" to option "-writable_ strings" 0.0u 0.0s 0:00 50% 0+0k 0+0io 0pf+0w *** Error code 1 clearmake: Error: Build script failed for "call_checker.o"
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2190.1 | GEMEVN::FAIMAN | Der Mai is gekommen, der Winter is aus | Thu May 15 1997 11:14 | 6 | |
The option is -writeable_strings. Your customer misspelled it as -writable_strings. Since the compiler couldn't recognize it as the -writeable_strings option, it assumed it must be the -w[n] option that controls warning levels; and, as it said, "ritable_strings" is not a valid argument to -w. -Neil | |||||
2190.2 | Are you sure? | HYDRA::BRYANT | Thu May 15 1997 11:18 | 1 | |
I saw that too but the partner says he's already tried spelling it both ways. | |||||
2190.3 | QUARRY::neth | Craig Neth | Thu May 15 1997 11:42 | 10 | |
>The option is -writeable_strings. Your customer misspelled it as >-writable_strings. Sorry, but the cc(1) command only accepts the spelling -writable_strings. It looks to me like the version of gemc_cc on this machine does not understand the option. Exactly what version of 3.2 you're talking about would be helpful (post the output from the uname -a command). | |||||
2190.4 | GEMEVN::FAIMAN | Der Mai is gekommen, der Winter is aus | Thu May 15 1997 12:13 | 17 | |
> Sorry, but the cc(1) command only accepts the spelling -writable_strings. So it does! I was misled by the man page: SYNOPSIS cc [-newc] [flag] ... file ... cc -oldc [flag] ... file ... cc -migrate [flag] ... file ... Default Flags: cc -newc -assume aligned_objects -cpp -call_shared -double -fprm n -fptm n -g0 -I/usr/include -inline manual -member_alignment -no_fp_reorder -no_misalign -object -O1 -oldcomment -p0 -no_pg -preempt_symbol -signed -arch generic -std0 -tune generic -writeable_strings ^^^^^^^^^^^^^^^^^^ | |||||
2190.5 | Here is the system information | HYDRA::BRYANT | Thu May 15 1997 12:59 | 3 | |
OSF1 cheetah V3.2 148 alpha | |||||
2190.6 | Man page errors are known | DECC::SULLIVAN | Jeff Sullivan | Thu May 15 1997 13:19 | 14 |
This has been reported and will be fixed in Digital UNIX V4.0D and later. Here are the pertinent OSF_QARs: 50591 MANPAGES M AN 30-DEC-1996 PLA12386 SULLIVAN CC(1) MANPAGE ERRORS FOR -WRITABLE_STRINGS FLAG 52531 MANPAGES M CL 15-APR-1997 PTB04564 SULLIVAN CC(1) MANPAGE ERRORS FOR -WRITABLE_STRINGS FLAG Of course, people will always tell you to RTM; but remember that they also tell you not to believe everything you [read]. -Jeff | |||||
2190.7 | Did you install the OSFDECC subset? | DECCXL::MARIO | Thu May 15 1997 13:25 | 16 | |
> OSF1 cheetah V3.2 148 alpha That is Digital UNIX V3.2C. The DECC (gemc_cc) compiler that shipped with that release does indeed support -writable_strings (without the "e"). Here is a hunch on what your problem might be. Prior to DU V3.0, DECC was shipped in the CMPDEVENH subset. Through all the V3.* releases, DECC was shipped in the OSFDECC subset. If you upgraded your system through the installupdate path and didn't specifically add the OSFDECC subset, the you have an old copy of DECC on your system. If you do a "setld -i |grep OSFDECC", look to see if it's installed. If not, that is your problem. I suspect it is. Joe | |||||
2190.8 | QUARRY::neth | Craig Neth | Thu May 15 1997 14:32 | 5 | |
FWIW, the 'secret decoder ring' that maps the uname output into the official release name is at: http://www.zk3.dec.com/unix_versions.html |