From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 1E7A33858C56 for ; Tue, 17 May 2022 08:27:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1E7A33858C56 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-267-GMS5hQ0NMV-zZXDx_iRGkg-1; Tue, 17 May 2022 04:27:18 -0400 X-MC-Unique: GMS5hQ0NMV-zZXDx_iRGkg-1 Received: by mail-wr1-f71.google.com with SMTP id u17-20020a056000161100b0020cda98f292so4402500wrb.21 for ; Tue, 17 May 2022 01:27:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=97bh8kwe6I2X6m2zteHOTJdKFiF9y8gZCEtxv1Qunow=; b=8FWFrj+5vIYhpdwK38ili+Jhfk2v7PxbfwvNzQGfoKPkMQMajBVjlKkC/alEgJkziI GyIgtFv7upNxsnASYf5LJbjw8zfiFIJymoE/UEkJsIiXJ+QRONzUpvWyEwlw/5ZHcLrv sVKMEtxNR54+CEjJvb8/gNpzi50sIF7l2aauYyIi/2yD92Yim71u+Ljb/jPWLKStl+KY 6w8057qK0mkQdzAmg38npZVl3mdKrqo4cY33Vwg3EKSUpNF6uYZ9bTYprXmIJVddXjSN 1c5m+lRHgAqSqzrZ1dhnqrkwvlAjepPVSNdVLsosbAuRvlJC4aeOee4eQr4DY9sqsFcM t2Lg== X-Gm-Message-State: AOAM532Jvx9/wgKhFhjLkHtTajNLTnhcrAbl49xGicrxe4AYUAgQkddX 22s3Sz87BbTuWiNeXr60yyQ8VlZc0Uu5J1brTBY6eNLlDgta9xfDWJMULKxxSYjUUhDLv9KFlGp ySEyD1441unApU6lDNcxF1NX4AFMa4D3RXguF7fNR8fXoulG9dz0CLWm8GkQ= X-Received: by 2002:a5d:4529:0:b0:20d:1108:8d76 with SMTP id j9-20020a5d4529000000b0020d11088d76mr4615968wra.60.1652776037382; Tue, 17 May 2022 01:27:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxodF5bxry+hIUKTBLoreNqe7EI0AQiI0t6fvI77VPKIdWC92k9TE1wXW3b8npWxFqkBVqvLA== X-Received: by 2002:a5d:4529:0:b0:20d:1108:8d76 with SMTP id j9-20020a5d4529000000b0020d11088d76mr4615944wra.60.1652776037054; Tue, 17 May 2022 01:27:17 -0700 (PDT) Received: from [10.0.0.8] (cpc108959-cmbg20-2-0-cust731.5-4.cable.virginm.net. [80.0.22.220]) by smtp.gmail.com with ESMTPSA id n6-20020a05600c500600b00395b809dfd3sm1292245wmr.12.2022.05.17.01.27.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 May 2022 01:27:16 -0700 (PDT) Message-ID: Date: Tue, 17 May 2022 09:27:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: fatal error: ffi.h: No such file or directory despite libffi being enabled To: gcc-help@gcc.gnu.org References: From: Andrew Haley In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2022 08:27:22 -0000 On 5/17/22 07:12, Zopolis0 via Gcc-help wrote: > That's what I was doing, with --enable-languages=java. > > On Mon, May 16, 2022 at 11:06 AM Zopolis0 wrote: > >> While attempting to compile gcj on my mster branch ( >> https://github.com/Zopolis4/gcj/tree/mster) , the compilation fails >> because several files within libjava are unable to include ffi.h because >> they cannot find it. >> In file included from ../../../../gcj/libjava/defineclass.cc:24: >> ../../../../gcj/libjava/include/java-interp.h:40:10: fatal error: ffi.h: >> No such file or directory >> 40 | #include >> | ^~~~~~~ >> This is despite, as far as I can tell, the compilation of libffi being >> enabled as part of libjava in makefile.def. So look at the output of the compilation, look at the include paths in the compile command that failed, and see what's wrong. We can't tell from this tiny snippet. -- Andrew Haley (he/him) Java Platform Lead Engineer Red Hat UK Ltd. https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671