Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EF589200B2B for ; Tue, 28 Jun 2016 11:42:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EDEBE160A56; Tue, 28 Jun 2016 09:42:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E4000160A06 for ; Tue, 28 Jun 2016 11:42:30 +0200 (CEST) Received: (qmail 45584 invoked by uid 500); 28 Jun 2016 09:42:30 -0000 Mailing-List: contact dev-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list dev@hawq.incubator.apache.org Received: (qmail 45572 invoked by uid 99); 28 Jun 2016 09:42:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2016 09:42:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5B34A1A7286 for ; Tue, 28 Jun 2016 09:42:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XzzKWkyLOQsz for ; Tue, 28 Jun 2016 09:42:26 +0000 (UTC) Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6A2E15FD79 for ; Tue, 28 Jun 2016 09:42:26 +0000 (UTC) Received: by mail-it0-f41.google.com with SMTP id g127so85878890ith.0 for ; Tue, 28 Jun 2016 02:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=3BVYakgGjA6+qcZj+1/TIRC+p1NQWnHa9vIdWGlCSoQ=; b=wtSvLc4fbImEZ0awI9u3YtQdl2/49Epg0EY47lHEjKC/zwAaIx5nBdwCHHDdHAPzs9 5UuFDGvscANbWhyVXXCcnEUiay8GwSN4Js7JGgakbL+byZMw6yN5f4nCMETuwrjbhBZK k+NraDkXxYX+yg7CXCyrWLGoBMcM0frmFwIiqtujlbxVWyXn0xfHbDfNFTOsfwDXyFuK MtzGNdEnk+B2qvSPA2FTOUkyPR20Dz+zLRpqLoL8zsCLJE70y//8ufWbAAqszsokUKgt DzGGfVQPpTkFAMquvzx/saXJtGwt8mHZ5da7EjecA246zs5l8OGNzdJZEz/qdm8wyqjK hdtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=3BVYakgGjA6+qcZj+1/TIRC+p1NQWnHa9vIdWGlCSoQ=; b=WSiLUFfqReZJdkMM0zcNpogcg5v/c4BXEGwRJk/KgB5nKhAwsf+5v+Rhow3j2EW//t AVqD4xouRoV5SWO912TVMmPv+WRu0ETloBo7uR2TUw4OgfvCdnwI03V4nZ8QeVNsDSio h8eF4EMB0GRxQZUDqNyewSANzk0umZd3ucrggA+gFPNWDzk8xS3uvsoLghMmf3Doehay Tb5w0C0AgdXz5aXAVI4GJL/YCsJY6Ps6OZG7akje6vKLrq8N6rs7ow7Kmsd9SEvIDV7v /2LcK7d3xX9QY1yOCRyZ4CMPHJ/7pjcIAUgjaBfp7Z2TJGzRxQRrR8YxfgfQsv7uYFuF Ls4w== X-Gm-Message-State: ALyK8tJFmAlwmfvmJy9X7WXNi3iwBrRnokEPm1HBdnBPBxl3zwjYb/OL92LJqIgFe7X3HOtEQa7/Ehr99WHO3Q== X-Received: by 10.36.137.215 with SMTP id s206mr2620658itd.82.1467106945337; Tue, 28 Jun 2016 02:42:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.65.73 with HTTP; Tue, 28 Jun 2016 02:42:24 -0700 (PDT) In-Reply-To: References: From: hong wu Date: Tue, 28 Jun 2016 17:42:24 +0800 Message-ID: Subject: Re: See a build error To: dev@hawq.incubator.apache.org Content-Type: multipart/alternative; boundary=94eb2c05e6ec5311660536537484 archived-at: Tue, 28 Jun 2016 09:42:32 -0000 --94eb2c05e6ec5311660536537484 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Good Job, thanks for this fix! 2016-06-28 17:38 GMT+08:00 Ming Li : > Pull request for this problem opened at: > https://github.com/apache/incubator-hawq/pull/757 > > Thanks. > > On Tue, Jun 28, 2016 at 5:05 PM, Ming Li wrote: > > > I add one Q&A at page > > > https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=3D651442= 84, > > > > However one problem still exists in this case: When building gpfdist > > report error "'openssl/ssl.h' file not found", it doesn't stop building= , > > so the last error we can see it not the right root error. > > > > Maybe we need to open one defect and fix it. > > > > On Tue, Jun 28, 2016 at 9:35 AM, Guo Gang wrote: > > > >> Some of your issues with solutions were earlier mentioned on > >> https://cwiki.apache.org/confluence/display/HAWQ/Build+and+Install > >> > >> I guess they will be moved to a FAQ page which was discussed recently. > >> > >> If you think there is error which is not detected during early > configure, > >> please file a bug. > >> > >> 2016-06-28 3:52 GMT+08:00 Ting(Goden) Yao : > >> > >> > I think we should make configure more reliable to discover these > missing > >> > pieces in the early stage. > >> > > >> > On Mon, Jun 27, 2016 at 12:50 PM Ting(Goden) Yao > >> wrote: > >> > > >> > > had to brew link --force openssl, now everything works fine. > >> > > > >> > > On Mon, Jun 27, 2016 at 11:03 AM Ting(Goden) Yao > >> > wrote: > >> > > > >> > >> got passed that, installed xcode developer tools, now a new error= : > >> > >> > >> > >> gcc $(/usr/bin/apr-1-config --cppflags) -DGP_VERSION=3D"2.0.0.0 b= uild > >> > dev" $(/usr/bin/apr-1-config --cflags) -Wall -DGPFXDIST -O3 > -std=3Dgnu99 > >> > -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels > >> > -Wformat-security -fno-strict-aliasing -fwrapv > >> > > >> > -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De= veloper/SDKs/MacOSX10.11.sdk/usr/include/libxml2 > >> > -o > >> > > >> > /Users/tyao/source/asf/incubator-hawq/src/bin/gpfdist/src/gpfdist/gpfdist > >> > fstream.o gfile.o gpfdist.o transform.o $(/usr/bin/apr-1-config > >> --link-ld > >> > --libs) -levent -lyaml -lz -lbz2 -lssl -lcrypto > >> > >> clang: error: no such file or directory: 'gpfdist.o' > >> > >> make[3]: *** [mkgpfdist] Error 1 > >> > >> make[2]: *** [all] Error 2 > >> > >> make[1]: *** [all] Error 2 > >> > >> make: *** [all] Error 2 > >> > >> > >> > >> =E2=80=8B > >> > >> > >> > >> On Mon, Jun 27, 2016 at 10:54 AM Ting(Goden) Yao > >> > wrote: > >> > >> > >> > >>> I've passed the json-c lib dependency after adding the lib path. > >> > >>> But now I see new errors: > >> > >>> apr.h and apr_getopt.h are not in my repo anywhere. > >> > >>> > >> > >>> In file included from > >> > > >> > /Users/tyao/source/asf/incubator-hawq/src/bin/gpfdist/src/gpfdist/gfile.c= :40: > >> > >>> > >> > > >> > /Users/tyao/source/asf/incubator-hawq/src/bin/gpfdist/src/gpfdist/gpfxdis= t.h:23:10: > >> > fatal error: 'apr.h' file not found > >> > >>> #include > >> > >>> ^ > >> > >>> 1 error generated. > >> > >>> clang: warning: -lapr-1: 'linker' input unused > >> > >>> clang: warning: -lpthread: 'linker' input unused > >> > >>> clang: warning: -levent: 'linker' input unused > >> > >>> clang: warning: -lyaml: 'linker' input unused > >> > >>> clang: warning: -lz: 'linker' input unused > >> > >>> clang: warning: -lbz2: 'linker' input unused > >> > >>> clang: warning: -lssl: 'linker' input unused > >> > >>> clang: warning: -lcrypto: 'linker' input unused > >> > >>> clang: warning: argument unused during compilation: '-L/usr/lib' > >> > >>> > >> > > >> > /Users/tyao/source/asf/incubator-hawq/src/bin/gpfdist/src/gpfdist/gpfdist= .c:28:10: > >> > fatal error: 'apr_getopt.h' file not found > >> > >>> #include > >> > >>> ^ > >> > >>> 1 error generated. > >> > >>> > >> > >>> =E2=80=8B > >> > >>> > >> > >>> -Goden > >> > >>> > >> > >>> On Mon, Jun 27, 2016 at 10:25 AM Ting(Goden) Yao > > >> > >>> wrote: > >> > >>> > >> > >>>> make -j1 failed with the same error. > >> > >>>> I was able to run configure successfully without issues. > >> > >>>> > >> > >>>> I'll try to add the lib path and see... > >> > >>>> *gcc -Xlinker -v* > >> > >>>> > >> > >>>> tyao@Goden-Yao-MacBook-Pro-3 =EE=82=B0 ~/source/asf/incubator-h= awq =EE=82=B0 =EE=82=A0 > >> > 2.0.0-incubating =EE=82=B0 gcc -Xlinker -v > >> > >>>> @(#)PROGRAM:ld PROJECT:ld64-264.3.102 > >> > >>>> configured to support archs: armv6 armv7 armv7s arm64 i386 x86_= 64 > >> > x86_64h armv6m armv7k armv7m armv7em (tvOS) > >> > >>>> Library search paths: > >> > >>>> > >> > > >> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Deve= loper/SDKs/MacOSX10.11.sdk/usr/lib > >> > >>>> Framework search paths: > >> > >>>> > >> > > >> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Deve= loper/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/ > >> > >>>> Undefined symbols for architecture x86_64: > >> > >>>> "_main", referenced from: > >> > >>>> implicit entry/start for main executable > >> > >>>> ld: symbol(s) not found for architecture x86_64 > >> > >>>> clang: error: linker command failed with exit code 1 (use -v to > see > >> > invocation) > >> > >>>> > >> > >>>> =E2=80=8B > >> > >>>> > >> > >>>> On Sun, Jun 26, 2016 at 11:02 PM Guo Gang > >> wrote: > >> > >>>> > >> > >>>>> That means that gcc fails to find the linking library path for > >> > json-c. > >> > >>>>> It > >> > >>>>> is a bit weird since > >> > >>>>> during configure, "-ljson-c" was earlier sanity-checked. > >> > >>>>> > >> > >>>>> Are you able to run configure successfully now? > >> > >>>>> > >> > >>>>> Is /usr/local/lib in your gcc default library search paths? > >> > >>>>> # gcc -Xlinker -v > >> > >>>>> > >> > >>>>> A simple workaround is: > >> > >>>>> during configure, add /usr/local/lib as an addition lib path > >> > >>>>> --with-libraries=3DDIRS look for additional libraries in D= IRS > >> > >>>>> or you could add the path to env variable LIBRARY_PATH > >> > >>>>> > >> > >>>>> > >> > >>>>> 2016-06-25 8:54 GMT+08:00 hong wu : > >> > >>>>> > >> > >>>>> > Hi goden, > >> > >>>>> > > >> > >>>>> > I have just try building 2.0.0-incubating branch under my Ma= c > >> OS EI > >> > >>>>> Capitan > >> > >>>>> > and it works. > >> > >>>>> > > >> > >>>>> > I need some more information to ensure the problem for you: > >> > >>>>> > 1. Could you build again using make -j1 and paste the earlie= st > >> > >>>>> occurred > >> > >>>>> > error?(to ensure the exact problem) > >> > >>>>> > 2. Could you build master branch successfully?(to ensure > >> whether it > >> > >>>>> is the > >> > >>>>> > problem of this branch) > >> > >>>>> > 3. Could you paste the configuration information here? Also, > you > >> > >>>>> could > >> > >>>>> > check your linking option `-ljson-c` by writing a simple C > Json > >> > >>>>> program. > >> > >>>>> > > >> > >>>>> > Best > >> > >>>>> > xunzhang > >> > >>>>> > > >> > >>>>> > 2016-06-25 6:37 GMT+08:00 Goden Yao : > >> > >>>>> > > >> > >>>>> > > I was trying to build from 2.0.0-incubating branch before = I > >> start > >> > >>>>> > releasing > >> > >>>>> > > process. > >> > >>>>> > > I followed wiki page for Open source build steps. > >> > >>>>> > > Got this error: > >> > >>>>> > > But I=E2=80=99ve installed json-c with =E2=80=94universal = and I=E2=80=99m on Mac OS > El > >> > >>>>> Capitan > >> > >>>>> > > > >> > >>>>> > > Error > >> > >>>>> > > > >> > >>>>> > > gcc -O3 -std=3Dgnu99 -Wall -Wmissing-prototypes > -Wpointer-arith > >> > >>>>> > > -Wendif-labels -Wformat-security -fno-strict-aliasing > -fwrapv > >> > >>>>> > > > >> > >>>>> > > > >> > >>>>> > > >> > >>>>> > >> > > >> > -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De= veloper/SDKs/MacOSX10.11.sdk/usr/include/libxml2 > >> > >>>>> > > -O1 zic.o ialloc.o scheck.o localtime.o -L../../src/port > >> > >>>>> > > -L../../src/port -Wl,-dead_strip_dylibs > >> > >>>>> > > > >> > >>>>> > > > >> > >>>>> > > >> > >>>>> > >> > > >> > -L/Users/tyao/source/asf/incubator-hawq/depends/libhdfs3/build/install/Us= ers/tyao/hawq/2.0.0-incubating/lib > >> > >>>>> > > > >> > >>>>> > > > >> > >>>>> > > >> > >>>>> > >> > > >> > -L/Users/tyao/source/asf/incubator-hawq/depends/libyarn/build/install/Use= rs/tyao/hawq/2.0.0-incubating/lib > >> > >>>>> > > -lpgport -ljson-c -levent -lyaml -lsnappy -lbz2 -lz -led= it > >> -lm > >> > >>>>> > > -lcurl -lyarn -lkrb5 -o zic*ld: library not found for > -ljson-c > >> > >>>>> > > *clang: error: linker command failed with exit code 1 (use > -v > >> to > >> > >>>>> see > >> > >>>>> > > invocation) > >> > >>>>> > > make[2]: *** [zic] Error 1 > >> > >>>>> > > make[1]: *** [all] Error 2 > >> > >>>>> > > > >> > >>>>> > > Symlinks: > >> > >>>>> > > > >> > >>>>> > > lrwxr-xr-x 1 tyao admin 43B Jun 24 14:26 > >> > >>>>> > > /usr/local/lib/libjson-c.2.dylib -> > >> > >>>>> > > ../Cellar/json-c/0.12/lib/libjson-c.2.dylib > >> > >>>>> > > lrwxr-xr-x 1 tyao admin 37B Jun 24 14:26 > >> > >>>>> > > /usr/local/lib/libjson-c.a -> > >> > ../Cellar/json-c/0.12/lib/libjson-c.a > >> > >>>>> > > lrwxr-xr-x 1 tyao admin 41B Jun 24 14:26 > >> > >>>>> > > /usr/local/lib/libjson-c.dylib -> > >> > >>>>> > > ../Cellar/json-c/0.12/lib/libjson-c.dylib > >> > >>>>> > > > >> > >>>>> > > =E2=80=8B > >> > >>>>> > > > >> > >>>>> > > >> > >>>>> > >> > >>>> > >> > > >> > > > > > --94eb2c05e6ec5311660536537484--