LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compilation error : wasted space (https://www.linuxquestions.org/questions/linux-software-2/compilation-error-wasted-space-4175427511/)

AmirJamez 09-16-2012 10:06 AM

Compilation error : wasted space
 
Hello everyone,


After a long and frustrating process of compiling a project, which you can see here and here, i got to this compilation error :

Code:

"llvm_transformed_context_ini.c", line 3411: compiler error: wasted space: 1047210000
The point is the line is just the last line of this .c file without anything written on it. I have to add that I am using HP-VEX 32 bit c compiler.

Thanks,


Amir

John VV 09-16-2012 12:53 PM

is there only ONE "return" as the end of the file ?
or are there 100 blank lines

AmirJamez 09-16-2012 01:03 PM

the last block is just like this (with one return):


Code:

llvm_cbe_bb171:
  *(&llvm_cbe_j) = 0u;
  llvm_cbe_tmp__368 = *(&llvm_cbe_i);
  llvm_cbe_tmp__369 = ((unsigned int )(((unsigned int )llvm_cbe_tmp__368) + ((unsigned int )1u)));
  *(&llvm_cbe_i) = llvm_cbe_tmp__369;
  if ((((signed int )llvm_cbe_tmp__369) < ((signed int )22u))) {
    goto llvm_cbe_bb171;
  } else {
    goto llvm_cbe_return;
  }

  } while (1); /* end of syntactic loop 'bb171' */
llvm_cbe_return:
  return;
}

Best,

Amir

John VV 09-16-2012 04:19 PM

oops by "return" i meant the <return> , < enter>
or
CR ( carriage return )

one blank line at the end of the file
( not mandatory any more , but some times needed)

by chance was this file edited on a MS windows computer

AmirJamez 09-16-2012 07:31 PM

I checked and there was only one enter(return), what do you suggest?

Regards,


Amir

John VV 09-16-2012 10:07 PM

can you post the section of the code that the error is referring to
the section that has
" line 3411 "
of the file "llvm_transformed_context_ini.c"

work backwards from that point in the code and find what is causing it

AmirJamez 09-17-2012 04:39 AM

I am sending you the whole ""llvm_transformed_context_ini.c", you can download it from here, I re-compiled the project, this time the error is at :

Code:

"llvm_transformed_context_ini.c", line 3218: warning: loop not entered at top
"llvm_transformed_context_ini.c", line 3237: warning: statement not reached
"llvm_transformed_context_ini.c", line 3248: warning: loop not entered at top
"llvm_transformed_context_ini.c", line 3268: warning: loop not entered at top
"llvm_transformed_context_ini.c", line 3287: warning: statement not reached
op: 2, val: 0
"llvm_transformed_context_ini.c", line 3291: compiler error: wasted space: 1047036660

Really frustrated :| please help.

Best,

Amir


All times are GMT -5. The time now is 09:08 PM.