This is the mail archive of the
mailing list for the GCC project.
Re: Fwd: Building gcc-4.9 on OpenBSD
- From: Tobias Ulmer <tobiasu at tmux dot org>
- To: Ian Grant <ian dot a dot n dot grant at googlemail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 18 Sep 2014 23:22:26 +0200
- Subject: Re: Fwd: Building gcc-4.9 on OpenBSD
- Authentication-results: sourceware.org; auth=none
- References: <CAKFjmdzLbwLhYoNA3vg3LfWE_jbeq8npheNX6nGtOh--Tp-14g at mail dot gmail dot com> <CAKFjmdxKZBXXLXVqVR7pE6hmOfmF=8HdCV2gqJC6GxJ3822MMw at mail dot gmail dot com>
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
> 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
> ../.././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
> -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
> 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