This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compilation failure on sco


Hello! 

I am doing a migration from Sco to AIX and I need gcc on the Sco system for comparative debugging. 

I am desperately trying to install it on sco and I get the failures below on these versions
gcc-core-2.95.3 
gcc-core-3.2 
gcc-core-3.4.6 
gcc-core-4.0.3 
gcc-4.1.1 

For the 4.1.1 it seems stupid that the bootstrap fails because of "no usable dependency style". Even more so as the cc on sco has an option (-H) for it. I guess the bootstrap shouldn't bother about dependencies and just go on and compile everything.
At one point I managed to build gcc2.95 [only the executable] - but it cannot create binary files for some reason (ld phase?). I copied it to /usr/local/bin/gcc-2.95 and I might be able to use it only for the dependencies should there be a way to do so. 

In version 3.4 , builtin-attrs.def is included in c-comon.c
    c-common.c:3042:#include "builtin-attrs.def"
    c-common.c:4273:#include "builtin-attrs.def"
and contains lines like DEF_FORMAT_ATTRIBUTE(PRINTF,1,1_0).
Now 1_0 is not a valid anything in C (it's read as integer 1 followed by undefined identifier _0).
It may be that some sed failed on this file.
Does anyone know what this is about?

The situation is apparently similar in 4.0 and I could expect it in 4.1 once I clear the current problem with it.

Can anyone help me install *any* of these versions ? 

Thank you, 
Mircea Lutic. 

############################################################# 

uname -a 
OpenUNIX T114p 5 8.0.0 i386 x86at Caldera UNIX_SVR5 

############################################################# 

gcc-core-2.95.3 
mkdir objdir; cd objdir 
../configure --with-gnu-as --with-gnu-ld i686-sco5 
make bootstrap 
/usr/local/bin/ld: unrecognized option '-Qn' 
/usr/local/bin/ld: use the --help option for usage information 
make clean; rm -r * ; mv /usr/local/bin/ld /usr/local/bin/gld 
../configure --with-gnu-as i686-sco5 
make bootstrap 
UX:ld: ERROR: cannot open file elf for reading: No such file or directory 

############################################################# 

gcc-core-3.2 
mkdir objdir; cd objdir 
../configure --with-gnu-as i686-sco5 
make bootstrap 
UX:acomp: ERROR: "../../gcc/machmode.def", line 77: undefined symbol: BITS_PER_UNIT 
UX:acomp: ERROR: "../../gcc/machmode.def", line 77: non-constant initializer: op "NAME" 
[...many more...] 
UX:acomp: ERROR: "../../gcc/machmode.def", line 159: non-constant initializer: op "?" 
UX:acomp: ERROR: "../../gcc/rtl.c", line 488: undefined symbol: BIGGEST_ALIGNMENT 

############################################################# 

gcc-core-3.4.6 
../configure --with-gnu-as --with-as=/usr/local/bin/as 
make 
cc -c -g -DIN_GCC -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I. 
./../gcc/../include -I../intl ../../gcc/c-common.c -o c-common.o 
UX:acomp: WARNING: "../../gcc/c-common.c", line 1370: assignment type mismatch 
UX:acomp: WARNING: "../../gcc/c-common.c", line 1640: assignment type mismatch 
UX:acomp: ERROR: "../../gcc/builtin-attrs.def", line 132: Syntax error before or at: _0 
[...many more...] 
UX:acomp: ERROR: "../../gcc/builtin-attrs.def", line 143: Syntax error before or at: _4 
UX:acomp: ERROR: "./gt-c-common.h", line 125: non-constant initializer: op "NAME" 

############################################################# 

gcc-core-4.0.3 
mkdir objdir; cd objdir 
../configure --with-gnu-as --with-as=/usr/local/bin/as 
make bootstrap 
gcc/../libcpp/include ../../gcc/c-common.c -o c-common.o 
UX:acomp: ERROR: "../../gcc/builtin-attrs.def", line 145: Syntax error before or at: _0 
UX:acomp: WARNING: "../../gcc/builtin-attrs.def", line 145: declaration missing specifiers: assuming "int" 
UX:acomp: WARNING: "../../gcc/builtin-attrs.def", line 145: declaration missing specifiers: assuming "int" 
UX:acomp: ERROR: "../../gcc/builtin-attrs.def", line 145: Syntax error before or at: _0 
[...many more...] 
UX:acomp: ERROR: "../../gcc/builtin-attrs.def", line 156: Syntax error before or at: _4 
UX:acomp: ERROR: "./gt-c-common.h", line 118: non-constant initializer: op "NAME" 

############################################################# 

gcc-4.1.1 
mkdir objdir; cd objdir 
../configure --with-gnu-as --with-as=/usr/local/bin/as 
make bootstrap 
[...] 
Configuring in ./libcpp 
[...] 
checking dependency style of cc... none 
configure: error: no usable dependency style found 

man cc 
-H 
Causes the pathnames of all files included to be printed, 
one per line, on the standard error output. 


#############################################################


		
___________________________________________________________ 
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]