Re: the struggle for a 64-bit GCC on Solaris 10 - part 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 12 November 2012 21:57, Dennis Clarke wrote:
> >
> > fact : you can not build libgmp with Sun cc
> 
> Doesn't matter.  It's a C library, you can compile it with GCC and
> link it to code compiled with either GCC or Sun C.
> 
> > thought : I see no value in using the Sun/Oracle compilers to build 
> GNU C compiler collection
> 
> Well if it works and the alternative doesn't ... maybe it's worth trying.
> 
> >> could have completed several times, modulo those funky CFLAGS you
> >> added.
> >
> > No such funky CFLAGS are in effect. Only -m64 and a few non-funky 
> totally sane falgs .. but hey .. I'll try it again without -D_TS_ERRNO 
> and see what happens.
> 
> As I said on the bug report, you'll need to define _XOPEN_SOURCE or
> _POSIX_C_SOURCE for the correct iconv(3) declaration.

I just tried that and the build fails in 70 seconds. 

So I am now trying something different. This is the exact same machine which ran for seven hours and 45 minutes and then failed on a code bug cause by some header wonkieness.  Nothing else has changed. So when I try a few defines like -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 then I get this fail in 71 secs : 


gmake[3]: Entering directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10/libiberty'
if [ x"-fPIC" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"-fPIC" != x ]; then \
  gcc -m64 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -g -mno-app-regs -mcpu=v9 -D_TS_ERRNO -c -DHAVE_CONFIG_H -g -fkeep-inline-functions -I/usr/local/include:/opt/csw/gcc4/include -I. -I../../gcc-4.7.2/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fPIC ../../gcc-4.7.2/libiberty/regex.c -o pic/regex.o; \
else true; fi
In file included from /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.5.1/include-fixed/sys/types.h:26:0,
                 from ../../gcc-4.7.2/libiberty/regex.c:51:
/opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.5.1/include-fixed/sys/feature_tests.h:350:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications     require the use of c99"
In file included from ../../gcc-4.7.2/libiberty/regex.c:51:0:
/opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.5.1/include-fixed/sys/types.h:502:13: error: two or more data types in declaration specifiers
../../gcc-4.7.2/libiberty/regex.c:130:1: warning: function declaration isn't a prototype
../../gcc-4.7.2/libiberty/regex.c:130:7: warning: conflicting types for built-in function 'malloc'
../../gcc-4.7.2/libiberty/regex.c:131:1: warning: function declaration isn't a prototype
../../gcc-4.7.2/libiberty/regex.c:131:7: warning: conflicting types for built-in function 'realloc'
In file included from ../../gcc-4.7.2/libiberty/regex.c:638:0:
../../gcc-4.7.2/libiberty/regex.c: In function 'byte_regex_compile':
../../gcc-4.7.2/libiberty/regex.c:2439:7: warning: implicit declaration of function 'free'
../../gcc-4.7.2/libiberty/regex.c:2439:33: warning: incompatible implicit declaration of built-in function 'free'
../../gcc-4.7.2/libiberty/regex.c:2500:17: warning: incompatible implicit declaration of built-in function 'free'
../../gcc-4.7.2/libiberty/regex.c:2533:36: warning: incompatible implicit declaration of built-in function 'free'
../../gcc-4.7.2/libiberty/regex.c:2640:28: warning: incompatible implicit declaration of built-in function 'free'
../../gcc-4.7.2/libiberty/regex.c:3253:25: warning: implicit declaration of function 'strcmp'
../../gcc-4.7.2/libiberty/regex.c:3643:26: warning: incompatible implicit declaration of built-in function 'free'
../../gcc-4.7.2/libiberty/regex.c:4150:5: warning: incompatible implicit declaration of built-in function 'free'
../../gcc-4.7.2/libiberty/regex.c: In function 'byte_re_compile_fastmap':
../../gcc-4.7.2/libiberty/regex.c:4835:11: warning: implicit declaration of function 'abort'
../../gcc-4.7.2/libiberty/regex.c:4835:11: warning: incompatible implicit declaration of built-in function 'abort'
../../gcc-4.7.2/libiberty/regex.c: In function 'byte_re_match_2_internal':
../../gcc-4.7.2/libiberty/regex.c:7424:11: warning: incompatible implicit declaration of built-in function 'abort'
../../gcc-4.7.2/libiberty/regex.c: In function 'xre_comp':
../../gcc-4.7.2/libiberty/regex.c:7849:5: warning: implicit declaration of function 'strlen'
../../gcc-4.7.2/libiberty/regex.c:7849:34: warning: incompatible implicit declaration of built-in function 'strlen'
../../gcc-4.7.2/libiberty/regex.c: In function 'xre_exec':
../../gcc-4.7.2/libiberty/regex.c:7865:19: warning: incompatible implicit declaration of built-in function 'strlen'
../../gcc-4.7.2/libiberty/regex.c: In function 'xregcomp':
../../gcc-4.7.2/libiberty/regex.c:7964:40: warning: incompatible implicit declaration of built-in function 'strlen'
../../gcc-4.7.2/libiberty/regex.c:7978:4: warning: incompatible implicit declaration of built-in function 'free'
../../gcc-4.7.2/libiberty/regex.c: In function 'xregexec':
../../gcc-4.7.2/libiberty/regex.c:8011:13: warning: incompatible implicit declaration of built-in function 'strlen'
../../gcc-4.7.2/libiberty/regex.c:8053:7: warning: incompatible implicit declaration of built-in function 'free'
../../gcc-4.7.2/libiberty/regex.c: In function 'xregerror':
../../gcc-4.7.2/libiberty/regex.c:8081:5: warning: incompatible implicit declaration of built-in function 'abort'
../../gcc-4.7.2/libiberty/regex.c:8085:14: warning: incompatible implicit declaration of built-in function 'strlen'
../../gcc-4.7.2/libiberty/regex.c: In function 'xregfree':
../../gcc-4.7.2/libiberty/regex.c:8114:3: warning: incompatible implicit declaration of built-in function 'free'
gmake[3]: *** [regex.o] Error 1
gmake[3]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10/libiberty'
gmake[2]: *** [all-stage1-libiberty] Error 2
gmake[2]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10'
gmake: *** [all] Error 2

real 71.45
user 17.65
sys 12.08
$ 

At least it was over quick. 

Am going to now try just -m64 -D_POSIX_C_SOURCE=200112L and nothing else. 

Really .. it shouldn't be this tough given that I have bootstrapped GCC a bizillion times before. 

dc






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux