This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Fwd: Building gcc-4.9 on OpenBSD
- From: Ian Grant <ian dot a dot n dot grant at googlemail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 17 Sep 2014 13:26:48 -0400
- Subject: Fwd: Building gcc-4.9 on OpenBSD
- Authentication-results: sourceware.org; auth=none
- References: <CAKFjmdzLbwLhYoNA3vg3LfWE_jbeq8npheNX6nGtOh--Tp-14g at mail dot gmail dot com>
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
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