linux-on-ibm-z / docs

A collection of instructions and tutorials to help you get your favorite software up and running on Linux on z
147 stars 57 forks source link

Building GCC 4.8: missing step/dependancy/something? #3

Closed OwenBrotherwood closed 8 years ago

OwenBrotherwood commented 8 years ago

Building GCC 4.8 may be missing step/dependancy/something.

The system is an "out of the box" RHEL6.7_IMAGE on IBM LinuxONE Community Cloud. Only yum's applied to the "out of the box" RHEL6.7_IMAGE, apart from the guide, are xauth, xterm and firefox: a bare bones installation of sorts.

If someone can save me time, point out the obvious

Br Owen


Reason for using guide is BM SDK for Node.js, Version 4: Current news RHEL7.X is not available on IBM LinuxONE Community Cloud.


In file included from /usr/include/features.h:385:0,
                 from /usr/include/stdio.h:28,
                 from ../../../../gcc-4.8.5/libgcc/../gcc/tsystem.h:87,
                 from ../../../../gcc-4.8.5/libgcc/libgcc2.c:27:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
                           ^
compilation terminated.
make[4]: *** [_muldi3.o] Error 1
make[4]: Leaving directory `/home/linux1/g/gccbuild/s390x-ibm-linux-gnu/32/libgcc'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/home/linux1/g/gccbuild/s390x-ibm-linux-gnu/libgcc'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory `/home/linux1/g/gccbuild/s390x-ibm-linux-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/linux1/g/gccbuild'
make: *** [all] Error 2

Edit Investigating missing glibc-devel.s390 as possible dependancy

OwenBrotherwood commented 8 years ago

Building GCC 4.8

On step 1:


[linux1@zrhel6dot7 gccbuild]$ export PATH=/opt/gcc/bin:$PATH

[linux1@zrhel6dot7 gccbuild]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/gcc/libexec/gcc/s390x-ibm-linux-gnu/4.8.5/lto-wrapper
Target: s390x-ibm-linux-gnu
Configured with: ../gcc-4.8.5/configure --prefix=/opt/gcc --enable-shared --with-system-zlib --enable-threads=posix --enable-__cxa_atexit --enable-checking --enable-gnu-indirect-function --enable-languages=c,c++ --disable-bootstrap
Thread model: posix
gcc version 4.8.5 (GCC)
joransiu commented 8 years ago

@OwenBrotherwood Thanks for pointing out the missing package dependency.

/cc @bryanpkc

bryanpkc commented 8 years ago

@OwenBrotherwood Thanks for the feedback. I have updated the instructions in the wiki page.

OwenBrotherwood commented 8 years ago

:+1: There are people in IBM that are just amazing.