From dev-return-37671-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Wed Jul 15 04:18:37 2009 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 4667 invoked from network); 15 Jul 2009 04:18:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 04:18:37 -0000 Received: (qmail 42707 invoked by uid 500); 15 Jul 2009 04:18:45 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 42616 invoked by uid 500); 15 Jul 2009 04:18:45 -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 42605 invoked by uid 99); 15 Jul 2009 04:18:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 04:18:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nbeyer@gmail.com designates 209.85.210.203 as permitted sender) Received: from [209.85.210.203] (HELO mail-yx0-f203.google.com) (209.85.210.203) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 04:18:36 +0000 Received: by yxe41 with SMTP id 41so5327399yxe.20 for ; Tue, 14 Jul 2009 21:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=qFZUxgiZuxiGrvSlqBK3FK6jEzPUEn5E9boNLKuBHQA=; b=mrTClrzurTINtTLXdILY9F3QTn6CkMCJiCw5bgbO6gfZ4E9//pt/beDcL7cmAUlbml fKGv1DYZdOuTuqFd3hYT8b1xqoOJtO851uni4mw6gyWd1LfQtK16wFFBDrJfrSSudiwo er/j6EZVFjolNkbcegbuM9U475Wb3LN2bo0/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=gqp3rMpnqCMSSaTdl4t8FiDOL0LWbh0u5wJwhFFvF+SGUNxX8Tt6Mmai5bkUjFwtiV 2nI6j86onfU/gCEasS7EooWsQra0IcKg77tx8pVTJbFmTmDW2AU4zTQMaU1ER63HpfX/ QEw4D6j2C0i0sn00RLjc/QL9SXVFCS3QGblKk= MIME-Version: 1.0 Sender: nbeyer@gmail.com Received: by 10.150.203.8 with SMTP id a8mr135164ybg.45.1247631495324; Tue, 14 Jul 2009 21:18:15 -0700 (PDT) In-Reply-To: <4A5BE7DF.3000004@gmail.com> References: <774169769.1247222955080.JavaMail.jira@brutus> <1303853534.1247429834801.JavaMail.jira@brutus> <529215e20907130356n537122afr52bf14beb5cb26a4@mail.gmail.com> <4A5BE7DF.3000004@gmail.com> Date: Tue, 14 Jul 2009 23:18:15 -0500 X-Google-Sender-Auth: 38c440308a773c86 Message-ID: <3b3f27c60907142118ia31315aq481372eeeeb3e0f7@mail.gmail.com> Subject: Re: [jira] Commented: (HARMONY-6266) Building in release mode fails with gcc version 4.3.3 From: Nathan Beyer To: dev@harmony.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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. =C2=A0The 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=3Dpentium3 =C2=A0-Werror =C2=A0 -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=3Dpentium3 >> -Werror =C2=A0 -c -o hyfiletext.o hyfiletext.c >> >> Full gcc version: >> Using built-in specs. >> Target: i486-linux-gnu >> Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu >> 4.3.3-5ubuntu4' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.3/README.Bug= s >> --enable-languages=3Dc,c++,fortran,objc,obj-c++ --prefix=3D/usr >> --enable-shared >> --with-system-zlib --libexecdir=3D/usr/lib --without-included-gettext >> --enable-threads=3Dposix --enable-nls >> --with-gxx-include-dir=3D/usr/include/c++/4.3 --program-suffix=3D-4.3 >> --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-objc-gc >> --enable-mpfr >> --enable-targets=3Dall --with-tune=3Dgeneric --enable-checking=3Drelease >> --build=3Di486-linux-gnu --host=3Di486-linux-gnu --target=3Di486-linux-g= nu >> 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 >> =C2=A0 =C2=A0[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 =C2=A0to this issue. What Linux derivation are you running? I'm running Ubuntu 9.04 x86 and 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: >> >>> =C2=A0 [ >>> >>> https://issues.apache.org/jira/browse/HARMONY-6266?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1273= 0138#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 >>> =C2=A0 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 >>>> ----------------------------------------------------- >>>> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Key: HARMONY-62= 66 >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0URL: https://is= sues.apache.org/jira/browse/HARMONY-6266 >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Project: Harmony >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Issue Type: Bug >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Components: Classlib >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0Environment: Linux 32 running 2.6.28-11-gen= eric #42-Ubuntu >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Reporter: Catherine Hope >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Assignee: Nathan Beyer >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Priority: Minor >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0Attachments: patch.txt >>>> >>>> >>>> Building in release mode (the default for building Harmony =C2=A0Selec= t) will >>> >>> currently fail on gcc version 4.3.3 as warnings are treated as errors a= nd >>> that compiler version is more strict in regards to things like not >>> checking >>> return codes of library functions. =C2=A0The files affected are: >>>> >>>> =C2=A0 =C2=A0 [exec] hyfiletext.c:234: warning: ignoring return value = of 'wctomb', >>> >>> declared with attribute warn_unused_result >>>> >>>> =C2=A0 =C2=A0 [exec] hyosdump.c:86: warning: ignoring return value of = 'chdir', >>> >>> declared with attribute warn_unused_result >>>> >>>> =C2=A0 =C2=A0 [exec] linux/../hysl.c:306: warning: ignoring return val= ue of >>> >>> 'mbtowc', declared with attribute warn_unused_result >>>> >>>> =C2=A0 =C2=A0 [exec] procimpl.c:176: warning: ignoring return value of= 'write', >>> >>> declared with attribute warn_unused_result >>>> >>>> =C2=A0 =C2=A0 [exec] procimpl.c:180: warning: ignoring return value of= 'write', >>> >>> declared with attribute warn_unused_result >>>> >>>> =C2=A0 =C2=A0 [exec] procimpl.c:195: warning: ignoring return value of= 'write', >>> >>> declared with attribute warn_unused_result >>>> >>>> =C2=A0 =C2=A0 [exec] procimpl.c:215: warning: ignoring return value of= 'read', >>> >>> declared with attribute warn_unused_result >>>> >>>> =C2=A0 =C2=A0 [exec] authnix.c:144: warning: ignoring return value of = 'getgroups', >>> >>> declared with attribute warn_unused_result >>>> >>>> =C2=A0 =C2=A0 [exec] ../shared/SurfaceDataStructure.h:177: warning: in= line >>> >>> 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. >