On Wed, Sep 17, 2014 at 01:26:48PM -0400, Ian Grant wrote:
> The reason I'm doing this is that I want to understand why the total
> size of the binaries grew from around 10MB (gcc v 4.5) to over 70MB in
> 4.9
> 
> I can compile the first stage OK, and the binaries are quite modest:
> 
> -rwxr-xr-x  1 ian  ian  17.2M Sep  6 03:47 prev-gcc/cc1
> -rwxr-xr-x  1 ian  ian   1.2M Sep  6 04:24 prev-gcc/cpp
> -rwxr-xr-x  1 ian  ian   1.2M Sep  6 04:24 prev-gcc/xgcc

Gcc 4.9 binaries on OpenBSD/amd64 are resonable:

-r-xr-xr-x  1 root  bin    11.6M Sep  9 03:02 cc1
-r-xr-xr-x  1 root  bin    15.4M Sep  9 03:02 gnat1
-r-xr-xr-x  1 root  bin   749K Sep  9 03:02 ecpp

There is indeed a problem with huge binaries on OpenBSD/arm, which I've
not yet figured out, but i386/amd64/sparc64 are fine.

Are you trying to build gcc from the vanilla sources? If so, you're in
for a treat...

> 
> The 2nd stage doesn't compile however, because the Intel library
> doesn't support OpenBSD. The host/target is i386-unknown-openbsd5.4:
> 
> ../.././libcilkrts/runtime/os-unix.c:69:5: error: #error "Unsupported OS"
>  #   error "Unsupported OS"
>      ^
> ../.././libcilkrts/runtime/os-unix.c: In function
> '__cilkrts_hardware_cpu_count':
> ../.././libcilkrts/runtime/os-unix.c:386:2: error: #error "Unknown 
> architecture"
>  #error "Unknown architecture"
>   ^
> Makefile:691: recipe for target 'os-unix.lo' failed
> 
> My questions are, is this what I should expect in terms of file sizes?:
> 
> ian3@jaguar:~/build/guile-2.0.11$ ls -l ~/usr/bin/gcc
> ~/usr/libexec/gcc/i686-pc-linux-gnu/4.9.0/cc1
> -rwxr-xr-x 3 ian3 ian3  2538426 2014-08-03 01:18 /home/ian3/usr/bin/gcc
> -rwxr-xr-x 1 ian3 ian3 66149541 2014-08-03 01:18
> /home/ian3/usr/libexec/gcc/i686-pc-linux-gnu/4.9.0/cc1
> ian3@jaguar:~/build/guile-2.0.11$
> 
> And is there any way to disable the Intel library? The fact that the
> first stage bootstrap works without it indicates that it might be
> possible.
> 
> Thanks
> Ian

Reply via email to