- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- cc compiler limitations
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 12:13 PM
02-10-2006 12:13 PM
cc compiler limitations
hpadm1[57]% gnumake
rm -f -rf .m_elec/m_elec_sl/src
gnumake -C . slcode
gnumake[1]: Entering directory `/project/sw/fsl/scm8/elec/m_elec_8/R3_0'
gnumake[1]: Leaving directory `/project/sw/fsl/scm8/elec/m_elec_8/R3_0'
gnumake -C ./m_elec_sl/simulink/hs_elec_sys_iac_model_ert_rtw -f hs_elec_sys_iac_model.mk ADD_CFLAGS=
gnumake[1]: Entering directory `/project/sw/fsl/scm8/elec/m_elec_8/R3_0/m_elec_sl/simulink/hs_elec_sys_iac_model_ert_rtw'
cc -c -DHPUX +DA1.1 +DS1.1 -D_HPUX_SOURCE -Aa -DMODEL=hs_elec_sys_iac_model -DNUMST=2 -DNCSTATES=0 -DUNIX -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DADD_MDL_NAME_TO_GLOBALS=1 -DMT=0 -I. -I.. -I/site/sw/matlab701/rtw/c/ert -I/site/sw/matlab701/extern/include -I/site/sw/matlab701/simulink/include -I/site/sw/matlab701/rtw/c/src -I/site/sw/matlab701/rtw/c/libsrc -I/site/sw/matlab701/rtw/c/src/ext_mode/common -I.. -ohs_elec_sys_iac_model_data.o hs_elec_sys_iac_model_data.c
cc: procedure @(): error 5217: Not enough user virtual memory (5217)
cc: error 1405: "/opt/ansic/lbin/ccom" terminated abnormally with signal 11.
gnumake[1]: *** [hs_elec_sys_iac_model_data.o] Error 9
gnumake[1]: Leaving directory `/project/sw/fsl/scm8/elec/m_elec_8/R3_0/m_elec_sl/simulink/hs_elec_sys_iac_model_ert_rtw'
gnumake: *** [src] Error 2
hpadm1[58]%
Is there a limit for the cc compiler to compile this many lines of code? If so is there a switch or patch to get beyond the limitation?
Thanks for your help,
Jake
- Tags:
- SIGSEGV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 12:31 PM
02-10-2006 12:31 PM
Re: cc compiler limitations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 12:32 PM
02-10-2006 12:32 PM
Re: cc compiler limitations
"Not enough user virtual memory" and SEGV (signal-11) may suggest that you may have insufficient swap space.
As compilation proceeds, check with:
# swapinfo -tam
Regards!
...JRF...
- Tags:
- swapinfo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 12:42 PM
02-10-2006 12:42 PM
Re: cc compiler limitations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 03:36 AM
02-13-2006 03:36 AM
Re: cc compiler limitations
I was thinking along the same lines so I increased both maxdsiz from (2040109465 to 2063835136), maxdsiz_64bit (2040109465 to 4396972769279) and maxssiz (268435455 to 401604608), maxssiz_64bit (268435455 to 1073741824) which is the max and it still failed. I then added 6GB of swap but I couldn't until I increased maxswapchunks and then I was able to add the additional swap but it still failed. I didn't add any more swap, I guess it's possible I need even more swap than that?
Any suggestions?
Thanks for the help, much appreciated.
Jake
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 03:59 AM
02-13-2006 03:59 AM
Re: cc compiler limitations
You could even parse it with a separate program and store it as a memory structure and save that memory structure as a binary file. This would allow the binary file to be read in a single data pull, and not have to spend the time to have the file "parsed" each time the program is started.
Of course you/he/she may certainly have valid reasons for wanting to do it as a defined array and compiled into the data segment - but I'd at least discuss the options first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 04:32 AM
02-13-2006 04:32 AM
Re: cc compiler limitations
Even so, I haven't found any hard limits that releate to the number of lines of code. There are hard limits for things like the maximum identifier length, maximum number of dimensions of an array. I also notice that this is 32-bit code so you may have exceeded a barrier that would not exist in 64-bit compiles. When a process receives a SIGSEGV (11), the error message may not really describe the event.
You should really examine the compiler options (e.g +Onolimit) to see if anything looks as though it might help but since you didn't bother to mention compiler version, it's difficult to look for specific options or patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 04:50 AM
02-13-2006 04:50 AM
Re: cc compiler limitations
C-ANSI-C B.11.11.06 HP C/ANSI C Compiler
PHSS_28706 1.0 ANSI C compiler B.11.11.06 cumulative patch
hpadm1.root /root$
hpadm1.root /root$ what /usr/bin/cc
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.30 020412 $
LINT B.11.11.28706.GP CXREF B.11.11.28706.GP
HP92453-01 B.11.11.28706.GP HP C Compiler
$ Sep 8 2000 23:13:51 $
hpadm1.root /root$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 05:36 PM
03-06-2006 05:36 PM
Re: cc compiler limitations
Setting maxssiz larger will only reduce maxdsiz, so immediately put maxssiz back!
Also increasing maxdsiz above 1 Gb will not help ccom/ctcom/ecom.
For your "data table" how many entries do you have and what are their sizes?
- Tags:
- maxssiz