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 778A9200B26 for ; Mon, 27 Jun 2016 21:50:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7653D160A5B; Mon, 27 Jun 2016 19:50:18 +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 98D95160A54 for ; Mon, 27 Jun 2016 21:50:17 +0200 (CEST) Received: (qmail 61656 invoked by uid 500); 27 Jun 2016 19:50:16 -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 61644 invoked by uid 99); 27 Jun 2016 19:50:16 -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; Mon, 27 Jun 2016 19:50:16 +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 CECFA1A6001 for ; Mon, 27 Jun 2016 19:50:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pivotal-io.20150623.gappssmtp.com Received: from mx2-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 Ue-D2WHKzJ6k for ; Mon, 27 Jun 2016 19:50:13 +0000 (UTC) Received: from mail-qt0-f179.google.com (mail-qt0-f179.google.com [209.85.216.179]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 2CE1F5F485 for ; Mon, 27 Jun 2016 19:50:13 +0000 (UTC) Received: by mail-qt0-f179.google.com with SMTP id f89so27595070qtd.2 for ; Mon, 27 Jun 2016 12:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pivotal-io.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=QGaeGqgVZIFh4C7WgKKZdLUPS2usOY8dg+Ymym/ImgA=; b=HOh/kWl/RRZtw164SZv42BHr88e31VCECJXoUwhxHxyT6U4JEN2WZuUXRDLi4DwRn3 CRebj1a110oJQRJLbprgQOwuWQ/kel9yQ7w5UCI86/XqW3ew6DFtfUDlKFmZJSBgVGMG o/Id/uRid7vaiiUburDSzjnjl1eTBAeOQT0pVlp0vE9MDCz7qQtrv76okPyEe8af+f6G jLoLSNa96J15qW+v0G4Sr9A3sWLDpqdW3HcpC0Wv41zYY0OzgWG4yAz9HaDfbpRGudxI 3c0VFMQYEhqfzwiOCBVO2uFg7QL8olAv43AQcdMlaVPoar5KSsD8s/5DWV+tevAXgMHF 31WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=QGaeGqgVZIFh4C7WgKKZdLUPS2usOY8dg+Ymym/ImgA=; b=CRvW2WSR6RUP4QLaJOk/M1MezEZ0UWCCyeRVVx6yJsXuDgGn91MjDwwvo7pTn6nc72 P9fbfK+wRrWyZ0EDlZOliZzf++/kuX4KCF+FhXNfFgFL9Cv/GMHzC6rwQtA+FrqDEj0C PtJ7EEbcMzpVcK/EFPar7PLaKfm6fECQ2Wl8wPdE25ltJD7tzgiWb9OpAuNRkfYJxCCK 7GCpTUCB6TFeivpuSieK/6upsb72Ju0W/Nwn5qTjo4i9Tn6TsLixfHGAmM/mugLNsEby 3TrlnzBZKUt/+w2YMGYJK7W8HbbFv97xsaR2s5H8QZ2LjFpb+HHjcL3Q2Z+WR3ufL0SA odDw== X-Gm-Message-State: ALyK8tJOQ+E1lohSfODwRH7EkJytqRskEqWBcSJ3Z1ikjpXT6WIo10PiZ8rNgvHwBGbf05774cpA8rpdtgCYAIJg X-Received: by 10.237.33.147 with SMTP id l19mr26763124qtc.33.1467057012449; Mon, 27 Jun 2016 12:50:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Ting(Goden) Yao" Date: Mon, 27 Jun 2016 19:50:03 +0000 Message-ID: Subject: Re: See a build error To: dev@hawq.incubator.apache.org Content-Type: multipart/alternative; boundary=001a1149c49c17b780053647d4df archived-at: Mon, 27 Jun 2016 19:50:18 -0000 --001a1149c49c17b780053647d4df Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 build dev= " $(/usr/bin/apr-1-config --cflags) -Wall -DGPFXDIST -O3 -std=3Dgnu99 -Wa= ll -Wmissing-prototypes -Wpointer-arith -Wendif-labels -Wformat-security -= fno-strict-aliasing -fwrapv -I/Applications/Xcode.app/Contents/Developer/P= latforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2= -o /Users/tyao/source/asf/incubator-hawq/src/bin/gpfdist/src/gpfdist/gpfdi= st 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/gpfd= ist/src/gpfdist/gfile.c:40: >> /Users/tyao/source/asf/incubator-hawq/src/bin/gpfdist/src/gpfdist/gpfxdi= st.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/gpfdis= t.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-hawq =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_6= 4h armv6m armv7k armv7m armv7em (tvOS) >>> Library search paths: >>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platfor= m/Developer/SDKs/MacOSX10.11.sdk/usr/lib >>> Framework search paths: >>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platfor= m/Developer/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 inv= ocation) >>> >>> =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 DIRS >>>> 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 Mac 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 earliest >>>> 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 cou= ld >>>> > 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= /Developer/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= /Users/tyao/hawq/2.0.0-incubating/lib >>>> > > >>>> > > >>>> > >>>> -L/Users/tyao/source/asf/incubator-hawq/depends/libyarn/build/install/= Users/tyao/hawq/2.0.0-incubating/lib >>>> > > -lpgport -ljson-c -levent -lyaml -lsnappy -lbz2 -lz -ledit -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 s= ee >>>> > > 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 >>>> > > >>>> > >>>> >>> --001a1149c49c17b780053647d4df--