apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Gu <timothyg...@gmail.com>
Subject Re: C compiler cannot create executable​s - configure failed for srclib/apr
Date Mon, 15 Sep 2014 14:22:50 GMT
SAP said not to use gcc, so it should be

    export CC="xlc -q64"

But Jonathan is right about adding a space between the command and the option.

Timothy

On Mon, Sep 15, 2014 at 6:59 AM, Jonathan Leffler
<jonathan.leffler@gmail.com> wrote:
> You should use a space in the command name:
>
> export CC="gcc -maix64"
>
> That uses the GCC compiler with the argument '-maix64', rather than trying
> to use it as a single word gcc-maix64.
>
>
>
>
> On Mon, Sep 15, 2014 at 12:27 AM, Sreejib Ghosh <g.sreejib@gmail.com> wrote:
>>
>> Hi
>>
>>
>> I have tried with almost all combinations. But failed. Please suggest the
>> correct one for AIX 7.1 with non GNU supported C-Compiler.
>>
>> ========================================================
>> # export CC="gcc-maix64"
>> # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most
>> --with-mpm=prefork --with-expat=builtin
>> checking for chosen layout... Apache
>> checking for working mkdir -p... yes
>> checking build system type... powerpc-ibm-aix7.1.0.0
>> checking host system type... powerpc-ibm-aix7.1.0.0
>> checking target system type... powerpc-ibm-aix7.1.0.0
>> Configuring Apache Portable Runtime library ...
>> checking for APR... reconfig
>> configuring package in srclib/apr now
>> checking build system type... powerpc-ibm-aix7.1.0.0
>> checking host system type... powerpc-ibm-aix7.1.0.0
>> checking target system type... powerpc-ibm-aix7.1.0.0
>> Configuring APR library
>> Platform: powerpc-ibm-aix7.1.0.0
>> checking for working mkdir -p... yes
>> APR Version: 1.5.1
>> checking for chosen layout... apr
>> checking for gcc... gcc-maix64
>> checking whether the C compiler works... no
>> configure: error: in `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr':
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details
>> configure failed for srclib/apr
>> #
>> # export CFLAGS="-q64"
>> export LDFLAGS="-q64"
>> export EXTRA_LDFLAGS_SHLIB="-b64"
>> export OBJECT_MODE=64
>> export CC="xlc-q64"# # # #
>> #
>> #
>> # echo $CFLAGS
>> -q64
>> # echo $CC
>> xlc-q64
>> # pwd
>> /sapdb/SDB/sapdata4/DUMP/httpd-2.2.29
>> # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most
>> --with-mpm=prefork --with-expat=builtin
>> checking for chosen layout... Apache
>> checking for working mkdir -p... yes
>> checking build system type... powerpc-ibm-aix7.1.0.0
>> checking host system type... powerpc-ibm-aix7.1.0.0
>> checking target system type... powerpc-ibm-aix7.1.0.0
>> Configuring Apache Portable Runtime library ...
>> checking for APR... reconfig
>> configuring package in srclib/apr now
>> checking build system type... powerpc-ibm-aix7.1.0.0
>> checking host system type... powerpc-ibm-aix7.1.0.0
>> checking target system type... powerpc-ibm-aix7.1.0.0
>> Configuring APR library
>> Platform: powerpc-ibm-aix7.1.0.0
>> checking for working mkdir -p... yes
>> APR Version: 1.5.1
>> checking for chosen layout... apr
>> checking for gcc... xlc-q64
>> checking whether the C compiler works... no
>> configure: error: in `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr':
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details
>> configure failed for srclib/apr
>> # #
>> =====================================================================
>>
>> Please help.
>>
>> regards,
>> Sreejib
>>
>> On Wed, Sep 10, 2014 at 4:28 PM, Sreejib Ghosh <g.sreejib@gmail.com>
>> wrote:
>>>
>>> SAP replied seeing the logs:
>>>
>>> "It looks like false compiler has been used. GNU (GCC) compiler is only
>>> valid for operating system LINUX.
>>> Please use ANSI-C native compiler and source distribution instead of
>>> pre-compiler and binary distribution."
>>>
>>> Logs already attached in earlier communication here.
>>>
>>> Regards,
>>> Sreejib
>>>
>>> On Wed, Sep 10, 2014 at 4:19 PM, Sreejib Ghosh <g.sreejib@gmail.com>
>>> wrote:
>>>>
>>>> Please suggest.
>>>>
>>>> Regards,
>>>> Sreejib
>>>> On Wed, Sep 10, 2014 at 4:15 PM, Sreejib Ghosh <g.sreejib@gmail.com>
>>>> wrote:
>>>>>
>>>>> Hi
>>>>>
>>>>> I checked the followings......
>>>>>
>>>>> # export CFLAGS="-maix64"
>>>>> #export LDFLAGS="-maix64"
>>>>> #export EXTRA_LDFLAGS_SHLIB="-Wl,-b64"
>>>>> #export OBJECT_MODE=64
>>>>> #export CC="gcc"
>>>>> # # # #
>>>>> #
>>>>> # echo $EXTRA_LDFLAGS_SHLIB
>>>>> -Wl,-b64
>>>>> # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most
>>>>> --with-mpm=prefork --with-expat=builtin
>>>>> checking for chosen layout... Apache
>>>>> checking for working mkdir -p... yes
>>>>> checking build system type... powerpc-ibm-aix7.1.0.0
>>>>> checking host system type... powerpc-ibm-aix7.1.0.0
>>>>> checking target system type... powerpc-ibm-aix7.1.0.0
>>>>>
>>>>> Configuring Apache Portable Runtime library ...
>>>>>
>>>>> checking for APR... reconfig
>>>>> configuring package in srclib/apr now
>>>>> checking build system type... powerpc-ibm-aix7.1.0.0
>>>>> checking host system type... powerpc-ibm-aix7.1.0.0
>>>>> checking target system type... powerpc-ibm-aix7.1.0.0
>>>>> Configuring APR library
>>>>> Platform: powerpc-ibm-aix7.1.0.0
>>>>> checking for working mkdir -p... yes
>>>>> APR Version: 1.5.1
>>>>> checking for chosen layout... apr
>>>>> checking for gcc... gcc
>>>>> checking whether the C compiler works... no
>>>>> configure: error: in
>>>>> `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr':
>>>>> configure: error: C compiler cannot create executables
>>>>> See `config.log' for more details
>>>>> configure failed for srclib/apr
>>>>> #
>>>>>
>>>>> Also checked
>>>>>
>>>>> # export CC="-maix64"
>>>>> # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most
>>>>> --with-mpm=prefork --with-expat=builtin
>>>>> checking for chosen layout... Apache
>>>>> checking for working mkdir -p... yes
>>>>> checking build system type... powerpc-ibm-aix7.1.0.0
>>>>> checking host system type... powerpc-ibm-aix7.1.0.0
>>>>> checking target system type... powerpc-ibm-aix7.1.0.0
>>>>> Configuring Apache Portable Runtime library ...
>>>>> checking for APR... reconfig
>>>>> configuring package in srclib/apr now
>>>>> checking build system type... powerpc-ibm-aix7.1.0.0
>>>>> checking host system type... powerpc-ibm-aix7.1.0.0
>>>>> checking target system type... powerpc-ibm-aix7.1.0.0
>>>>> Configuring APR library
>>>>> Platform: powerpc-ibm-aix7.1.0.0
>>>>> checking for working mkdir -p... yes
>>>>> APR Version: 1.5.1
>>>>> checking for chosen layout... apr
>>>>> checking for gcc... -maix64
>>>>> checking whether the C compiler works... no
>>>>> configure: error: in
>>>>> `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr':
>>>>> configure: error: C compiler cannot create executables
>>>>> See `config.log' for more details
>>>>> configure failed for srclib/apr
>>>>> #
>>>>>
>>>>> Please suggest.
>>>>> Regards,
>>>>> SREEJIB
>>>>>
>>>>> On Wed, Sep 10, 2014 at 3:56 PM, Sreejib Ghosh <g.sreejib@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> Hi Stefan
>>>>>>
>>>>>> Thanks for your expert advise. I am very new with Apache.
>>>>>>
>>>>>> Please do let me know what should be the values if I want to use
>>>>>> ANSI-C compliant Compiler in AIX 7.1
>>>>>>
>>>>>> export CFLAGS=
>>>>>> export LDFLAGS=
>>>>>> export EXTRA_LDFLAGS_SHLIB=
>>>>>> export OBJECT_MODE=
>>>>>> export CC=
>>>>>>
>>>>>> 2. what I should use gcc or xlc for AIX 7.1
>>>>>>
>>>>>> Best regards,
>>>>>> Sreejib
>>>>>>
>>>>>> On Wed, Sep 10, 2014 at 3:47 PM, Stefan Ruppert <sr@myarm.com>
wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> you are mixing xlc and gcc flags. To compile 64-bit code with
xlc use
>>>>>>> -q64 as you did. Using gcc you need to pass -maix64. If the linker
is
>>>>>>> invoked by gcc you will also need to tell gcc to pass the -b64
option
>>>>>>> to
>>>>>>> the linker: -Wl,-b64
>>>>>>>
>>>>>>> Regards,
>>>>>>> Stefan
>>>>>>>
>>>>>>> Am 10.09.2014 10:55, schrieb Sreejib Ghosh:
>>>>>>> > Hi Experts
>>>>>>> > We are facing issue while installing Apache 2.2.29 in AIX
7.1
>>>>>>> >
>>>>>>> >
>>>>>>> > we are using following environments:
>>>>>>> >
>>>>>>> > export CFLAGS="-q64"
>>>>>>> >
>>>>>>> > export LDFLAGS="-q64"
>>>>>>> > export EXTRA_LDFLAGS_SHLIB="-b64"
>>>>>>> > export OBJECT_MODE=64
>>>>>>> > export CC=”gcc”
>>>>>>> >
>>>>>>> > <SAP recommended CC should be native ANSI-C> <what
should be value
>>>>>>> > of CC ? >
>>>>>>> >
>>>>>>> > We are using httpd-2.2.29 … SAP doesn’t support latest
version
>>>>>>> > 2.4.x
>>>>>>> >
>>>>>>> > =============================ERROR LOG=================
>>>>>>> >
>>>>>>> > # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most
>>>>>>> > --with-mpm=prefork --with-expat=builtin
>>>>>>> > checking for chosen layout... Apache
>>>>>>> > checking for working mkdir -p... yes
>>>>>>> > checking build system type... powerpc-ibm-aix7.1.0.0
>>>>>>> > checking host system type... powerpc-ibm-aix7.1.0.0
>>>>>>> > checking target system type... powerpc-ibm-aix7.1.0.0
>>>>>>> > Configuring Apache Portable Runtime library ...
>>>>>>> > checking for APR... reconfig
>>>>>>> > configuring package in srclib/apr now
>>>>>>> > checking build system type... powerpc-ibm-aix7.1.0.0
>>>>>>> > checking host system type... powerpc-ibm-aix7.1.0.0
>>>>>>> > checking target system type... powerpc-ibm-aix7.1.0.0
>>>>>>> > Configuring APR library
>>>>>>> > Platform: powerpc-ibm-aix7.1.0.0
>>>>>>> > checking for working mkdir -p... yes
>>>>>>> > APR Version: 1.5.1
>>>>>>> > checking for chosen layout... apr
>>>>>>> > checking for gcc... gcc
>>>>>>> > checking whether the C compiler works... no
>>>>>>> > configure: error: in
>>>>>>> > `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr':
>>>>>>> > configure: error: C compiler cannot create executables
>>>>>>> > See `config.log' for more details
>>>>>>> > configure failed for srclib/apr
>>>>>>> > #
>>>>>>> > ======================================================
>>>>>>> >
>>>>>>> > other details are attached here-with.
>>>>>>> >
>>>>>>> > Please help us.
>>>>>>> >
>>>>>>> > Thanks & regards,
>>>>>>> >
>>>>>>> > Sreejib Ghosh
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
>
>
> --
> Jonathan Leffler <jonathan.leffler@gmail.com>  #include <disclaimer.h>
> Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org
> "Blessed are we who can laugh at ourselves, for we shall never cease to be
> amused."

Mime
View raw message