Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 8894 invoked from network); 15 Jul 2009 04:51:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 04:51:23 -0000 Received: (qmail 64951 invoked by uid 500); 15 Jul 2009 04:51:32 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 64864 invoked by uid 500); 15 Jul 2009 04:51:32 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 64853 invoked by uid 99); 15 Jul 2009 04:51:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 04:51:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xu.regis@gmail.com designates 209.85.211.182 as permitted sender) Received: from [209.85.211.182] (HELO mail-yw0-f182.google.com) (209.85.211.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 04:51:22 +0000 Received: by ywh12 with SMTP id 12so638187ywh.20 for ; Tue, 14 Jul 2009 21:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=6EOO3KgG0gprsTVNDHsxPu2uswGHiQ1pn2u0A1dcLfU=; b=oGGqQ4x1rY/DTt8nLfJGsmzbV4lzHGg1ap9rSg7qRXczSv8Hj9watuFqMyLPIBaAuk QGTbHGInP8UwKSE2jHQKd/KiE5AZRdZmz7mmNvJkwuGCe8HVJ8cTz2Ar5efXl1c+btwF V2HoQfF5CZMzkJCHTh3pz3kKEvjcP85v9XWzc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=A+5KkDNvvuInNft1IBrcx9z/L6Zfe5Q3FVBNQmOMaaYuVPhMvramzXwCd67ass19m5 kvP0fdDI2VxsEifNI+CmqGH83nQzxZXNIKu7uNvAlikApKhZXF/JtQskBl8vt7He9MSA x6B78nNxMb7e62obdeMgI4z1qt5VmLcexrfIQ= Received: by 10.90.81.9 with SMTP id e9mr3899410agb.50.1247633461857; Tue, 14 Jul 2009 21:51:01 -0700 (PDT) Received: from ?9.123.229.170? ([220.248.0.145]) by mx.google.com with ESMTPS id 38sm1768386aga.39.2009.07.14.21.50.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Jul 2009 21:51:00 -0700 (PDT) Message-ID: <4A5D603E.3070709@gmail.com> Date: Wed, 15 Jul 2009 12:51:10 +0800 From: Regis User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [jira] Commented: (HARMONY-6266) Building in release mode fails with gcc version 4.3.3 References: <774169769.1247222955080.JavaMail.jira@brutus> <1303853534.1247429834801.JavaMail.jira@brutus> <529215e20907130356n537122afr52bf14beb5cb26a4@mail.gmail.com> <4A5BE7DF.3000004@gmail.com> <3b3f27c60907142118ia31315aq481372eeeeb3e0f7@mail.gmail.com> In-Reply-To: <3b3f27c60907142118ia31315aq481372eeeeb3e0f7@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Nathan Beyer wrote: > On Mon, Jul 13, 2009 at 9:05 PM, Regis wrote: >> Catherine Hope wrote: >>> I can recreate the problem building from the repository trunk or the See >>> branch. The difference in the command-line is (running from >>> modules/portlib/src/main/native/port/unix) >>> >>> Running in release mode gives a compiler error with: >>> cc -DLINUX -DLINUX_X86 -DHYX86 -DIPv6_FUNCTION_SUPPORT -D_REENTRANT >>> -DHY_NO_THR -DHY_ZIP_API >>> -I/home/cath/workspaceHarmony/Select/community-src/deploy/include >>> -I/home/cath/workspaceHarmony/Select/community-src/deploy/jdk/include -I. >>> -I../shared/ -DHYPORT_LIBRARY_DEFINE -Ilinux.x86 -O1 -DNDEBUG -fpic >>> -march=pentium3 -Werror -c -o hyfiletext.o hyfiletext.c >>> >>> Running in debug mode: >>> cc -DLINUX -DLINUX_X86 -DHYX86 -DIPv6_FUNCTION_SUPPORT -D_REENTRANT >>> -I/home/cath/workspaceHarmony/Java6/deploy/include >>> -I/home/cath/workspaceHarmony/Java6/deploy/jdk/include -I. -I../shared/ >>> -DHYPORT_LIBRARY_DEFINE -Ilinux.x86 -ggdb -O0 -fpic -march=pentium3 >>> -Werror -c -o hyfiletext.o hyfiletext.c >>> >>> Full gcc version: >>> Using built-in specs. >>> Target: i486-linux-gnu >>> Configured with: ../src/configure -v --with-pkgversion='Ubuntu >>> 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs >>> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr >>> --enable-shared >>> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext >>> --enable-threads=posix --enable-nls >>> --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 >>> --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc >>> --enable-mpfr >>> --enable-targets=all --with-tune=generic --enable-checking=release >>> --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu >>> Thread model: posix >>> gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) >>> >>> I can't recreate the UnixFileTest test failure (I'm running with the IBM >>> Java 6 VME): >>> [junit] Running org.apache.harmony.luni.tests.java.io.UnixFileTest >>> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.503 sec >> UnixFileTest is not stable for me, it failed intermittently, suppose not >> related to this issue. > > What Linux derivation are you running? I'm running Ubuntu 9.04 x86 and I'm running on Ubuntu 8.04.2. When it failed, I got message similar as yours: test_getCanonicalPath Failure null expected:<...ild/test/luni/folder[1/folder]2> but was:<...ild/test/luni/folder[]2> junit.framework.ComparisonFailure: null expected:<...ild/test/luni/folder[1/folder]2> but was:<...ild/test/luni/folder[]2> at org.apache.harmony.luni.tests.java.io.UnixFileTest.test_getCanonicalPath(UnixFileTest.java:50) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) > LUNI tests on trunk consistently pass for me. When I apply this patch, > UnixFileTest fails every time. > > -Nathan > >>> On Sun, Jul 12, 2009 at 9:17 PM, Nathan Beyer (JIRA) >>> wrote: >>> >>>> [ >>>> >>>> https://issues.apache.org/jira/browse/HARMONY-6266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730138#action_12730138] >>>> >>>> Nathan Beyer commented on HARMONY-6266: >>>> --------------------------------------- >>>> >>>> When I apply this patch, I get a failure in the following test. >>>> >>>> org.apache.harmony.luni.tests.java.io.UnixFileTest >>>> test_getCanonicalPath failure >>>> expected:<...ild/test/luni/folder[1/folder]2> but >>>> was:<...ild/test/luni/folder[]2> >>>> >>>>> Building in release mode fails with gcc version 4.3.3 >>>>> ----------------------------------------------------- >>>>> >>>>> Key: HARMONY-6266 >>>>> URL: https://issues.apache.org/jira/browse/HARMONY-6266 >>>>> Project: Harmony >>>>> Issue Type: Bug >>>>> Components: Classlib >>>>> Environment: Linux 32 running 2.6.28-11-generic #42-Ubuntu >>>>> Reporter: Catherine Hope >>>>> Assignee: Nathan Beyer >>>>> Priority: Minor >>>>> Attachments: patch.txt >>>>> >>>>> >>>>> Building in release mode (the default for building Harmony Select) will >>>> currently fail on gcc version 4.3.3 as warnings are treated as errors and >>>> that compiler version is more strict in regards to things like not >>>> checking >>>> return codes of library functions. The files affected are: >>>>> [exec] hyfiletext.c:234: warning: ignoring return value of 'wctomb', >>>> declared with attribute warn_unused_result >>>>> [exec] hyosdump.c:86: warning: ignoring return value of 'chdir', >>>> declared with attribute warn_unused_result >>>>> [exec] linux/../hysl.c:306: warning: ignoring return value of >>>> 'mbtowc', declared with attribute warn_unused_result >>>>> [exec] procimpl.c:176: warning: ignoring return value of 'write', >>>> declared with attribute warn_unused_result >>>>> [exec] procimpl.c:180: warning: ignoring return value of 'write', >>>> declared with attribute warn_unused_result >>>>> [exec] procimpl.c:195: warning: ignoring return value of 'write', >>>> declared with attribute warn_unused_result >>>>> [exec] procimpl.c:215: warning: ignoring return value of 'read', >>>> declared with attribute warn_unused_result >>>>> [exec] authnix.c:144: warning: ignoring return value of 'getgroups', >>>> declared with attribute warn_unused_result >>>>> [exec] ../shared/SurfaceDataStructure.h:177: warning: inline >>>> function 'void updateCache(SURFACE_STRUCTURE*, JNIEnv*, _jobject*, bool, >>>> int, int, int, int)' used but never defined >>>> >>>> -- >>>> This message is automatically generated by JIRA. >>>> - >>>> You can reply to this email to add a comment to the issue online. >>>> >>>> >>> >> >> -- >> Best Regards, >> Regis. >> > -- Best Regards, Regis.