maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #00427
Re: Help with RPM src build
Yes, I do believe a "RHEL" person is needed on this. I don't
understand why the build process has been made so complicated. It
appears that some things have been purposely removed or not configured
in the spec file. Like this one:
rpm2cpio: /root/rpmbuild/SOURCES/%{compat50rpm}: No such file or directory
There is nothing concerning compat50rpm in the SOURCES, only the
mariadb tgz and an ourdelta rpm file which will not install because
it's looking for dependencies for RHEL 5.
Also, the upstream_source variable was not configured, there was 2
Source entries that pointed to this which broke because they where
basically the same. Not sure if anyone else is having these types of
problems with the src rpm, but this is a little frustrating.
On Wed, Jul 20, 2011 at 11:08 AM, Sergei Golubchik <serg@xxxxxxxxxxxx> wrote:
> Hi, bwellsn
>
> 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@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:
>> >>> On Wed, Jul 20, 2011 at 5:58 AM, Sergei Golubchik <serg@xxxxxxxxxxxx> 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
>
Follow ups
References