logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Schouw <schou...@yahoo.com>
Subject Re: build on Cygwin
Date Mon, 13 Jul 2009 06:37:21 GMT

What I run ant -diagnotics I get this error output. Is my ant not setup correct?

------- Ant diagnostics report -------
Apache Ant version 1.7.1 compiled on June 27 2008
-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.7.1
optional tasks : not available
-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.1 compiled on June 27 2008
ant.java.version: 1.6
ant.core.lib: C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant.jar
ant.home: C:/cygwin/src/ant/apache-ant-1.7.1
-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: C:/cygwin/src/ant/apache-ant-1.7.1
ant-antlr.jar (5752 bytes)
ant-apache-bcel.jar (8611 bytes)
ant-apache-bsf.jar (3939 bytes)
ant-apache-log4j.jar (3056 bytes)
ant-apache-oro.jar (39627 bytes)
ant-apache-regexp.jar (3762 bytes)
ant-apache-resolver.jar (4071 bytes)
ant-commons-logging.jar (3910 bytes)
ant-commons-net.jar (47026 bytes)
ant-jai.jar (21348 bytes)
ant-javamail.jar (6998 bytes)
ant-jdepend.jar (8132 bytes)
ant-jmf.jar (6593 bytes)
ant-jsch.jar (30797 bytes)
ant-junit.jar (93518 bytes)
ant-launcher.jar (12143 bytes)
ant-netrexx.jar (9881 bytes)
ant-nodeps.jar (431580 bytes)
ant-starteam.jar (35355 bytes)
ant-stylebook.jar (2330 bytes)
ant-swing.jar (6738 bytes)
ant-testutil.jar (14941 bytes)
ant-trax.jar (6881 bytes)
ant-weblogic.jar (14205 bytes)
ant.jar (1323005 bytes)
cpptasks.jar (363967 bytes)
xercesImpl.jar (1223877 bytes)
xml-apis.jar (194354 bytes)
-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: C:\Documents and Settings\Administrator
No such directory.
-------------------------------------------
 Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
jdepend : Missing dependency jdepend.xmlui.JDepend
A task being missing/unavailable should only matter if you are trying to use it
-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/
-------------------------------------------
 XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: C:\cygwin\src\ant\apache-ant-1.7.1\lib\xercesImpl.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: C:\cygwin\src\ant\apache-ant-1.7.1\lib\xercesImpl.jar
-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) SE Runtime Environment
sun.boot.library.path : c:\java\jdk1.6.0_14\jre\bin
java.vm.version : 14.0-b16
ant.library.dir : C:/cygwin/src/ant/apache-ant-1.7.1/lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : ;
java.vm.name : Java HotSpot(TM) Client VM
file.encoding.pkg : sun.io
user.country : US
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : Service Pack 3
java.vm.specification.name : Java Virtual Machine Specification
user.dir : C:\cygwin\home\Administrator
java.runtime.version : 1.6.0_14-b08
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : c:\java\jdk1.6.0_14\jre\lib\endorsed
os.arch : x86
java.io.tmpdir : c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
line.separator : 
java.vm.specification.vendor : Sun Microsystems Inc.
user.variant : 
os.name : Windows XP
ant.home : C:/cygwin/src/ant/apache-ant-1.7.1
sun.jnu.encoding : Cp1252
cygwin.user.home : C:/cygwin/home/Administrator
java.library.path : c:\java\jdk1.6.0_14\jre\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\cygwin\src\ant\apache-ant-1.7.1\bin;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X11R6\bin;c:\Python23\;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Program
Files\ATI Technologies\ATI Control Panel;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
java.specification.name : Java Platform API Specification
java.class.version : 50.0
sun.management.compiler : HotSpot Client Compiler
os.version : 5.1
user.home : C:\Documents and Settings\Administrator
user.timezone : GMT+09:00
java.awt.printerjob : sun.awt.windows.WPrinterJob
java.specification.version : 1.6
file.encoding : Cp1252
user.name : Administrator
java.class.path :
 C:/cygwin/src/ant/apache-ant-1.7.1/lib/ant-launcher.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-antlr.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-apache-bcel.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-apache-bsf.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-apache-log4j.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-apache-oro.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-apache-regexp.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-apache-resolver.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-commons-logging.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-commons-net.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-jai.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-javamail.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-jdepend.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-jmf.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-jsch.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-junit.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-launcher.jar;C:
\cygwin\src\ant\apache-ant-1.7.1\lib\ant-netrexx.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-nodeps.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-starteam.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-stylebook.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-swing.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-testutil.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-trax.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant-weblogic.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\ant.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\cpptasks.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\xercesImpl.jar;C:\cygwin\src\ant\apache-ant-1.7.1\lib\xml-apis.jar;c:\java\jdk1.6.0_14\lib\tools.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 32
java.home : c:\java\jdk1.6.0_14\jre
java.specification.vendor : Sun Microsystems Inc.
user.language : en
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode, sharing
java.version : 1.6.0_14
java.ext.dirs : c:\java\jdk1.6.0_14\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
sun.boot.class.path : c:\java\jdk1.6.0_14\jre\lib\resources.jar;c:\java\jdk1.6.0_14\jre\lib\rt.jar;c:\java\jdk1.6.0_14\jre\lib\sunrsasign.jar;c:\java\jdk1.6.0_14\jre\lib\jsse.jar;c:\java\jdk1.6.0_14\jre\lib\jce.jar;c:\java\jdk1.6.0_14\jre\lib\charsets.jar;c:\java\jdk1.6.0_14\jre\classes
java.vendor : Sun Microsystems Inc.
file.separator : \
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.desktop : windows
sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
-------------------------------------------
 Temp dir
-------------------------------------------
Temp dir is c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
Temp dir is writeable
Temp dir alignment with system clock is 90 ms
-------------------------------------------
 Locale information
-------------------------------------------
Timezone GMT+09:00 offset=32400000
-------------------------------------------
 Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection


 


----- Original Message ----
From: Lars Schouw <schouwla@yahoo.com>
To: log4cxx-user@logging.apache.org
Sent: Monday, July 13, 2009 3:09:50 PM
Subject: build on Cygwin


I am trying to build log4cxx under Cygwin but it fails with an error that ant can't find gcc.
Could not launch gcc: java.io.IOException: Cannot run program "gcc"

$ cd /src/log4cxx/apache-log4cxx-0.10.0

$ ant -Dos.family=cygwin    -Dwith-apr=/cygwin/lib    -Dwith-apr-util=/cygwin/lib   
-Denable-wchar_t=0

$ which gcc
/usr/bin/gcc

Output from ant run:

Buildfile: build.xml
os-detect:
win-init:
mac-init:
unix-init:
common-init:
init:
     [echo] force-ant: ${force-ant}
find-apr-src:
find-apr-lib:
find-apr:
     [echo] apr-find:
     [echo] apr.dir=/cygwin/lib
     [echo] apr.include.dir=/cygwin/lib/../usr/include/apr-1
     [echo] apr.src.dir=${apr.src.dir}
     [echo] apr.lib.file=/cygwin/lib/libapr-1.la
     [echo] apr.lib.file.dir=/cygwin/lib
     [echo] apr.lib.dir=/cygwin/lib
     [echo] apr.lib.prefix=
     [echo] apr.lib.suffix=
     [echo] apr.lib.type=shared
build-apr:
find-apr-util-src:
find-apr-util-lib:
find-apr-util:
     [echo] apr-util-find:
     [echo] apr-util.dir=/cygwin/lib
     [echo] apr-util.include.dir=/cygwin/lib/../usr/include/apr-1
     [echo] apr-util.src.dir=${apr-util.src.dir}
     [echo] apr-util.lib.file=/cygwin/lib/libaprutil-1.la
     [echo] apr-util.lib.file.dir=/cygwin/lib
     [echo] apr-util.lib.dir=/cygwin/lib
     [echo] apr-util.lib.prefix=
     [echo] apr-util.lib.suffix=
     [echo] apr-util.lib.type=shared
build-apr-util:
find-esmtp-src:
find-esmtp-lib:
find-esmtp:
     [echo] esmtp-find:
     [echo] esmtp.dir=${esmtp.dir}
     [echo] esmtp.include.dir=${esmtp.include.dir}
     [echo] esmtp.src.dir=${esmtp.src.dir}
     [echo] esmtp.lib.file=${esmtp.lib.file}
     [echo] esmtp.lib.file.dir=${esmtp.lib.file.dir}
     [echo] esmtp.lib.dir=${esmtp.lib.dir}
     [echo] esmtp.lib.prefix=${esmtp.lib.prefix}
     [echo] esmtp.lib.suffix=${esmtp.lib.suffix}
     [echo] esmtp.lib.type=${esmtp.lib.type}
build-libesmtp:
unix-configure:
     [copy] Copying 1 file to C:\cygwin\src\log4cxx\apache-log4cxx-0.10.0\src\main\include\log4cxx
     [copy] Copying 1 file to C:\cygwin\src\log4cxx\apache-log4cxx-0.10.0\src\main\include\log4cxx\private
win-configure:
configure:
     [echo] Configuring with-logchar=utf-8
     [echo] Configuring with-charset=auto
     [echo] Configuring with-SMTP=no
     [echo] Configuring with-ODBC=no
     [echo] Configuring enable-char=1
     [echo] Configuring enable-wchar_t=0
     [echo] Configuring enable-unichar=0
     [echo] Configuring enable-cfstring=0
copy-if-changed-compare:
copy-if-changed:
   [delete] Deleting: C:\cygwin\src\log4cxx\apache-log4cxx-0.10.0\src\main\include\log4cxx\log4cxx.tmp
copy-if-changed-compare:
copy-if-changed:
   [delete] Deleting: C:\cygwin\src\log4cxx\apache-log4cxx-0.10.0\src\main\include\log4cxx\private\log4cxx_private.tmp
build-lib:
       [cc] 148 total files to be compiled.
BUILD FAILED
C:\cygwin\src\log4cxx\apache-log4cxx-0.10.0\build.xml:548: Could not launch gcc: java.io.IOException:
Cannot run program "gcc" (in directory "C:\cygwin\src\log4cxx\apache-log4cxx-0.10.0\target\debug\shared\log4cxx_obj"):
CreateProcess error=2, The system cannot find the file specified
Total time: 1 second


My host OS is Windows XP SP3.

Lars


      

Mime
View raw message