From dev-return-56380-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Tue Jul 16 21:51:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 136E8180685 for ; Tue, 16 Jul 2019 23:51:01 +0200 (CEST) Received: (qmail 50868 invoked by uid 500); 16 Jul 2019 21:51:01 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 50763 invoked by uid 99); 16 Jul 2019 21:51:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2019 21:51:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 79697E2EF4 for ; Tue, 16 Jul 2019 21:51:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3231D2658F for ; Tue, 16 Jul 2019 21:51:00 +0000 (UTC) Date: Tue, 16 Jul 2019 21:51:00 +0000 (UTC) From: "Jens Geyer (JIRA)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (THRIFT-4909) t_cl_generator.cc:29:10: fatal error: boost/tokenizer.hpp: No such file or directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/THRIFT-4909?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Geyer resolved THRIFT-4909. -------------------------------- Resolution: Duplicate Fix Version/s: 0.13.0 Already fixed in commit c9ac8d2953a4806cc93aa4ff2e700623ecad980c Date: 07.01.2019 22:46:45 THRIFT-4720: documenting breaking changes, minor cleanup > t_cl_generator.cc:29:10: fatal error: boost/tokenizer.hpp: No such file o= r directory > -------------------------------------------------------------------------= ----------- > > Key: THRIFT-4909 > URL: https://issues.apache.org/jira/browse/THRIFT-4909 > Project: Thrift > Issue Type: Bug > Components: C++ - Compiler > Affects Versions: 0.12.0 > Environment: Ubuntu 19.04 > Reporter: Rocco Corsi > Priority: Trivial > Fix For: 0.13.0 > > > Building Thrift 0.12.0 on Ubuntu 19.04, with this command: > bobo@bobo-VirtualBox:~/Downloads/thrift-0.12.0$ ./configure --with-cpp --= without-python --with-boost=3D/home/bobo/Downloads/boost_1_57_0 --with-open= ssl=3D/usr/lib/x86_64-linux-gnu/ > =C2=A0 > I get this error when building: > g++ -std=3Dc++11 -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -= I../../lib/c_glib/src/thrift=C2=A0 -I./src=C2=A0=C2=A0 -Wall -Wextra -pedan= tic -Werror -g -O2 -MT src/thrift/generate/thrift-t_rs_generator.o -MD -MP = -MF src/thrift/generate/.deps/thrift-t_rs_generator.Tpo -c -o src/thrift/ge= nerate/thrift-t_rs_generator.o `test -f 'src/thrift/generate/t_rs_generator= .cc' || echo './'`src/thrift/generate/t_rs_generator.cc > mv -f src/thrift/generate/.deps/thrift-t_rs_generator.Tpo src/thrift/gen= erate/.deps/thrift-t_rs_generator.Po > g++ -std=3Dc++11 -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift = -I../../lib/c_glib/src/thrift=C2=A0 -I./src=C2=A0=C2=A0 -Wall -Wextra -peda= ntic -Werror -g -O2 -MT src/thrift/generate/thrift-t_cl_generator.o -MD -MP= -MF src/thrift/generate/.deps/thrift-t_cl_generator.Tpo -c -o src/thrift/g= enerate/thrift-t_cl_generator.o `test -f 'src/thrift/generate/t_cl_generato= r.cc' || echo './'`src/thrift/generate/t_cl_generator.cc > src/thrift/generate/t_cl_generator.cc:29:10: fatal error: boost/tokenize= r.hpp: No such file or directory > =C2=A0#include > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~~~~~= ~~~~ > compilation terminated. > make[3]: *** [Makefile:1786: src/thrift/generate/thrift-t_cl_generator.o= ] Error 1 > =C2=A0 > Seems boost path is missing when compiling the compiler... When I run mak= e command under strace, this is where it is looking for the tokenizer.hpp f= ile. > 11590 openat(AT_FDCWD, "./boost/tokenizer.hpp", O_RDONLY|O_NOCTTY) =3D -1= ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "../../boost/tokenizer.hpp", O_RDONLY|O_NOCTTY) = =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "../../lib/cpp/src/thrift/boost/tokenizer.hpp", O= _RDONLY|O_NOCTTY) =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "../../lib/c_glib/src/thrift/boost/tokenizer.hpp"= , O_RDONLY|O_NOCTTY) =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "./src/boost/tokenizer.hpp", O_RDONLY|O_NOCTTY) = =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "/usr/include/c++/8/boost/tokenizer.hpp", O_RDONL= Y|O_NOCTTY) =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "/usr/include/x86_64-linux-gnu/c++/8/boost/tokeni= zer.hpp", O_RDONLY|O_NOCTTY) =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "/usr/include/c++/8/backward/boost/tokenizer.hpp"= , O_RDONLY|O_NOCTTY) =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "/usr/lib/gcc/x86_64-linux-gnu/8/include/boost/to= kenizer.hpp", O_RDONLY|O_NOCTTY) =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "/usr/local/include/boost/tokenizer.hpp", O_RDONL= Y|O_NOCTTY) =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/bo= ost/tokenizer.hpp", O_RDONLY|O_NOCTTY) =3D -1 ENOENT (No such file or direc= tory) > 11590 openat(AT_FDCWD, "/usr/include/x86_64-linux-gnu/boost/tokenizer.hp= p", O_RDONLY|O_NOCTTY) =3D -1 ENOENT (No such file or directory) > 11590 openat(AT_FDCWD, "/usr/include/boost/tokenizer.hpp", O_RDONLY|O_NO= CTTY) =3D -1 ENOENT (No such file or directory) > =C2=A0 > So first issue is that the boost include path is not being passed correct= ly to the compiler or maybe the issue is that the reference to boost includ= e tokenizer.hpp is not even needed. > =C2=A0 > Then if I comment out the tokenizer.hpp file in the compiler/cpp/src/thri= ft/generate/t_cl_generator.cc file, like so: > //#include > it compiles fine. > =C2=A0 > So is the real issue that this include statement should just be removed a= s it is not really needed? > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.14#76016)