From owner-freebsd-java@FreeBSD.ORG Thu Aug 8 10:55:00 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3110FF16 for ; Thu, 8 Aug 2013 10:55:00 +0000 (UTC) (envelope-from dmitry.samersoff@oracle.com) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EF0FF27D5 for ; Thu, 8 Aug 2013 10:54:59 +0000 (UTC) Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r78AspiS012639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 8 Aug 2013 10:54:52 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r78AsoIx008423 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Aug 2013 10:54:51 GMT Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r78AsoXp028327; Thu, 8 Aug 2013 10:54:50 GMT Received: from dooku.mircat.net (/81.9.105.52) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 08 Aug 2013 03:54:49 -0700 Message-ID: <5203787C.8030701@oracle.com> Date: Thu, 08 Aug 2013 14:52:44 +0400 From: Dmitry Samersoff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Henry Jen Subject: Re: Assembler error on FreeBSD 9.1, toolchain problem? References: <520303AF.3050207@oracle.com> In-Reply-To: <520303AF.3050207@oracle.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: acsinet21.oracle.com [141.146.126.237] Cc: David Holmes , "build-infra-dev@openjdk.java.net" , build-dev , freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Aug 2013 10:55:00 -0000 Henry, For some unknown for me reason, macros in bsd_x86_64.s is not processed. (Makefile issue???) I use: mv bsd_x86_64.s bsd_x86_64.s.pp cpp bsd_x86_64.s.pp > bsd_x86_64.s as a dirty workaround. -Dmitry (CC'in java-bsd) On 2013-08-08 06:34, David Holmes wrote: > Moving to build-dev as build-infra-dev is effectively obsolete now. > > The official gcc toolset is version 4.3 as I recall but as FreeBSD is > not one of Oracle's supported platforms that might not mean much. > Hopefully a fellow FreeBSD'er can assist but I'd certainly suggest > updating your toolset (but not too much as you'll then run into a > different set of problems!). > > Cheers, > David > > On 8/08/2013 9:00 AM, Henry Jen wrote: >> Hi, >> >> I tried to build OpenJDK 8 on my FreeBSD box, and encounter assembler >> error like following. Complete build.log and config.log are attached. >> >> Looks to me it probably a toolchain/environment issue, but I have no >> idea on what went wrong. The version of tools on the machine are >> >> $ gcc --version >> gcc (GCC) 4.2.1 20070831 patched [FreeBSD] >> Copyright (C) 2007 Free Software Foundation, Inc. >> This is free software; see the source for copying conditions. There >> is NO >> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >> PURPOSE. >> >> $ as --version >> GNU assembler 2.17.50 [FreeBSD] 2007-07-03 >> Copyright 2007 Free Software Foundation, Inc. >> This program is free software; you may redistribute it under the terms of >> the GNU General Public License. This program has absolutely no warranty. >> This assembler was configured for a target of `x86_64-unknown-freebsd'. >> >> Is there a minimum version requirement of toolchain? Any one saw this >> before? >> >> Cheers, >> Henry >> >> Assembling >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s: >> Assembler messages: >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:39: Error: >> junk at end of line, first unrecognized character is `(' >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:40: Error: >> junk at end of line, first unrecognized character is `(' >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:41: Error: >> junk at end of line, first unrecognized character is `(' >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:42: Error: >> junk at end of line, first unrecognized character is `(' >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:43: Error: >> junk at end of line, first unrecognized character is `(' >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:44: Error: >> junk at end of line, first unrecognized character is `(' >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:45: Error: >> junk at end of line, first unrecognized character is `(' >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:49: Error: >> junk at end of line, first unrecognized character is `(' >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:51: Error: >> invalid character '_' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:52: Error: >> invalid character '(' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:66: Error: >> invalid character '_' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:67: Error: >> invalid character '(' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:168: >> Error: invalid character '_' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:169: >> Error: invalid character '_' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:170: >> Error: invalid character '(' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:171: >> Error: invalid character '(' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:258: >> Error: invalid character '_' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:259: >> Error: invalid character '_' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:260: >> Error: invalid character '(' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:261: >> Error: invalid character '(' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:337: >> Error: invalid character '_' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:338: >> Error: invalid character '_' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:339: >> Error: invalid character '(' in mnemonic >> /home/henryjen/ws/lambda/hotspot/src/os_cpu/bsd_x86/vm/bsd_x86_64.s:340: >> Error: invalid character '(' in mnemonic >> gmake[6]: *** [bsd_x86_64.o] Error 1 >> gmake[5]: *** [the_vm] Error 2 >> gmake[4]: *** [product] Error 2 >> gmake[3]: *** [generic_build2] Error 2 >> gmake[2]: *** [product] Error 2 >> gmake[1]: *** >> [/home/henryjen/ws/lambda/build/bsd-x86_64-normal-server-release/hotspot/_hotspot.timestamp] >> Error 2 >> >> -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.