-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove GCC 4 from containers #4474
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,24 +111,15 @@ RUN wget -O - http://cpanmin.us | perl - --self-upgrade \ | |
&& cpanm Text::CSV \ | ||
&& cpanm JSON | ||
|
||
# install GCC-4.8 and GCC-7.3 | ||
RUN cd /etc/yum.repos.d \ | ||
&& wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo \ | ||
&& yum -y update \ | ||
&& yum -y install devtoolset-2-gcc devtoolset-2-binutils \ | ||
&& yum -y install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran \ | ||
&& yum clean all \ | ||
&& scl enable devtoolset-2 bash \ | ||
&& mv /opt/rh/devtoolset-2/root/usr/bin/gcc /opt/rh/devtoolset-2/root/usr/bin/gcc-4.8 \ | ||
&& mv /opt/rh/devtoolset-2/root/usr/bin/g++ /opt/rh/devtoolset-2/root/usr/bin/g++-4.8 \ | ||
&& ln -s /opt/rh/devtoolset-2/root/usr/bin/gcc-4.8 /usr/bin/gcc \ | ||
&& ln -s /opt/rh/devtoolset-2/root/usr/bin/g++-4.8 /usr/bin/g++ \ | ||
&& ln -s /opt/rh/devtoolset-2/root/usr/bin/gcc-4.8 /usr/bin/cc \ | ||
&& yum -y update \ | ||
# Install GCC-7.3 | ||
RUN yum -y update \ | ||
&& yum -y install centos-release-scl \ | ||
&& yum -y install devtoolset-7-gcc-7.3* devtoolset-7-binutils \ | ||
&& yum -y install devtoolset-7-gcc-c++-7.3* devtoolset-2-gcc-gfortran-7.3* \ | ||
&& yum clean all | ||
&& yum clean all \ | ||
&& ln -s /opt/rh/devtoolset-7/root/usr/bin/gcc /usr/bin/cc \ | ||
&& ln -s /opt/rh/devtoolset-7/root/usr/bin/gcc /usr/bin/gcc \ | ||
&& ln -s /opt/rh/devtoolset-7/root/usr/bin/g++ /usr/bin/g++ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it necessary to symlink default gcc? I.e. does something need a default gcc? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. git requires cc and Protobuf requires gcc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok good enough. I doubt compiler versions matter too much for those dependencies. Unless they fail outright. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not surprised this didn't cause a problem. Running gcc out of the devtoolset requires running a script to setup the environment and libpaths for newer libraries. If this generates a docker container that compiles openj9, I guess we leave it be though. |
||
|
||
#Building and setting up git version 2.5.3 | ||
RUN yum -y update \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to symlink default gcc? I.e. does something need a default gcc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to a link to cc to install git, but I don't need the rest of the symlinks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might as well link them all then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could just use a
cc=/usr/local/bin/gcc-7.3
before the git compilation, but I guess this works too