Hi, bwellsnc! To solve this you'd better have somebody who uses RHEL to answer. I only pointed out how to get a bit more information than "cannot create executables" from config.log. On Jul 20, bwellsnc wrote:
Actually, after more investigation, I have no clue why gcc4 is referenced since Centos, Scientific Linux, and RHEL 5 does not have a gcc4 executable.
On Wed, Jul 20, 2011 at 10:00 AM, bwellsnc <bwellsnc@gmail.com> wrote:
Wow, I'm not thinking at all. Found the problem. There needs be an entry in the SPEC file like below:
if [ "%{elversion}" = "6" ] ; then export CFLAGS="-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 $CPUOPT" export CXXFLAGS="-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 $CPUOPT" else export CC="gcc" CXX="gcc" export CFLAGS="-O2 -fno-omit-frame-pointer -g -pipe $CPUOPT" export CXXFLAGS="-O2 -fno-omit-frame-pointer -g -pipe $CPUOPT" fi
The problem is that the entry before references gcc4 which in RHEL 5 and RHEL 6 there isn't a gcc4 executable.
On Wed, Jul 20, 2011 at 9:43 AM, Sergei Golubchik <serg@askmonty.org> wrote:
On Wed, Jul 20, 2011 at 5:58 AM, Sergei Golubchik <serg@askmonty.org> wrote:
On Jul 19, bwellsnc wrote:
I have gone over every document concerning building mariadb using src rpm. I am trying to build mariadb against RHEL 6. I have run rpmbuild against the src rpm and I get this error everytime:
error: configure: error: C compiler cannot create executables
In the source directory you can find config.log file. And in it you will find the reason for this error.
Regards, Sergei