Hi all-

I'm trying to build Axis 1.5 using the Ant build system, and using a non-default compiler (i.e., not the one which simply typing 'gcc' or 'g++' would resolve to). I have several compilers installed on my machine, with gcc 3.2.3 being the default. However, I need to produce builds for several different environments, which means I need to produce builds for Axis-C against gcc3.2.2, gcc3.4, etc. I've already produced the Xerces builds for these compilers to build Axis with.

Does anyone on this list know what needs to be done to get the Axis build to successfully utilize another compiler? This seems like something that would not be a big deal if the make Autoconf / configure system were working for Axis 1.5. I tracked down the compiler specification for the build to the build/buildInitialize.xml file. I modified my buildInitalize.xml to contain the following (I added the first two 'compilerarg' lines to specify compiler version and to be verbose for debugging):

<compiler id="Linuxgcc" name="g++" if="linux">
           <compilerarg value="-V3.2.2"/>
           <compilerarg value="-v"/>
           <compilerarg value="-g" if="debug"/>
           <compilerarg value="-Wall"/>
           <compilerarg value="-Wshadow"/>
           <compilerarg value="-O2"/>
           <defineset>
               <define name="ENABLE_AXIS_EXCEPTION"/>
               <define name="HAVE_CONFIG_H"/>
               <define name="PIC"/>
           </defineset>
           <includepath path="${dir.include}"/>
</compiler>


After adding these lines, my build output looks as follows (note the line which says 'gcc driver version 3.2.3 20030502 (Red Hat Linux 3.2.3-49) executing gcc version 3.2.2'):


162% ant
Buildfile: build.xml

pre-init:

set-platform-specifics:

checkIfDebug:

initialize:

build:

compile:

compileClient:

compileAxisClient:

buildVersionResource:
      [cc] 126 total files to be compiled.
      [cc] Using built-in specs.
[cc] Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
      [cc] Thread model: posix
[cc] gcc driver version 3.2.3 20030502 (Red Hat Linux 3.2.3-49) executing gcc version 3.2.2 [cc] cc1plus -v -I/usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/include -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ -D__PIC__ -D__pic__ -DAXIS_CLIENT_LIB -DENABLE_AXIS_EXCEPTION -DHAVE_CONFIG_H -DPIC /usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/src/soap/OtherFaultException.cpp -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase OtherFaultException.cpp -O2 -Wall -Wshadow -version -fPIC -o /tmp/ccd59UCn.s [cc] g++: installation problem, cannot exec `cc1plus': No such file or directory [cc] cc1plus -v -I/usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/include -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ -D__PIC__ -D__pic__ -DAXIS_CLIENT_LIB -DENABLE_AXIS_EXCEPTION -DHAVE_CONFIG_H -DPIC /usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/src/soap/CharacterElement.cpp -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase CharacterElement.cpp -O2 -Wall -Wshadow -version -fPIC -o /tmp/ccd59UCn.s * ...omitting a *LOT* more like this for brevity... *

[cc] g++: installation problem, cannot exec `cc1plus': No such file or directory [cc] cc1plus -v -I/usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/include -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ -D__PIC__ -D__pic__ -DAXIS_CLIENT_LIB -DENABLE_AXIS_EXCEPTION -DHAVE_CONFIG_H -DPIC /usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/src/soap/xsd/IDREF.cpp -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase IDREF.cpp -O2 -Wall -Wshadow -version -fPIC -o /tmp/ccd59UCn.s [cc] g++: installation problem, cannot exec `cc1plus': No such file or directory

BUILD FAILED
/usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/build.xml:231: The following error occurred while executing this line: /usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/build.xml:219: The following error occurred while executing this line: /usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/build.xml:90: The following error occurred while executing this line:/usr/pic1/axis-c-1.5.0-FINAL-linux-bin/axis-c-1.5.0-linux-src/build/buildClient.xml:23: g++ failed with return code 1

Total time: 8 seconds


Thanks in advance for any help!
kevin

--
Kevin Rogers
PDI / Dreamworks
ext.29163 | 650.562.9163
[EMAIL PROTECTED]

Reply via email to