← Back to team overview

maria-discuss team mailing list archive

Re: Help with RPM src build

 

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@xxxxxxxxx> 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@xxxxxxxxxxxx> wrote:
>> Hi, bwellsnc!
>>
>> On Jul 20, bwellsnc wrote:
>>> This is the error I am getting:
>>>
>>> #define PACKAGE_BUGREPORT ""
>>> #define PACKAGE "mysql"
>>> #define VERSION "5.2.7-MariaDB"
>>>
>>> configure: exit 77
>>
>> you need to look further up.
>> At the end of the log configure dumps the environment - various defines.
>> Scroll up until you see the command that fails.
>>
>> Or start from the top and scroll down until you see the environment
>> dump, the failed command should be right above.
>>
>>> On Wed, Jul 20, 2011 at 5:58 AM, Sergei Golubchik <serg@xxxxxxxxxxxx> wrote:
>>> > Hi, bwellsnc!
>>> >
>>> > 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
>>> >
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~maria-discuss
>>> Post to     : maria-discuss@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~maria-discuss
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>> Regards,
>> Sergei
>>
>


Follow ups

References