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 69C23385734F for ; Mon, 16 May 2022 12:01:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 69C23385734F Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-435-M9laCCOLMvWkYAf94GzC3w-1; Mon, 16 May 2022 08:01:27 -0400 X-MC-Unique: M9laCCOLMvWkYAf94GzC3w-1 Received: by mail-wr1-f70.google.com with SMTP id u11-20020a056000038b00b0020c9ea8b64fso3820597wrf.2 for ; Mon, 16 May 2022 05:01:27 -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=42R3QQwd2IdqlwpG+mKZrada8sAQ28avWIjkRS/KwFw=; b=j14pxgZ2G/oiIYei1oKdNb++CJRxfgxkTt8Q2JkfVKH9KJekfkVlEXEuAlrW1CffE5 3Mb94KeNx4+zejz7DfizYGPaYP657LNcYL5Wvk/gUAVuW8MOoGzQQu6ypytmsTUA+BUU XCr0e+foY8k8sO6n7NtVAoQyedgJmfMvx9JsTB9ywydaf1Gy8sp/TQY2mRXVpWUiHzja VDzcnZinrNAFCZvORhjOG5De3pgxY+Vo4muPu9jLmPuLtDRaD7qX4g2W1D/iV9oPhRH7 xMVLdocYyyzXstzMYwcY9+jPSBfgGhHVZwUPqkq0nbtnSghUy/j0wQEslUK9nX730CZI RIKA== X-Gm-Message-State: AOAM533xyZeQnduMkzWOK1yy2AniaYHjv4NvUu1yYO+VVWUNZcR+aOUo TNdfQhRT5tysGY3oX5wxGboCxKE5zusjm6+GQPNyjwE0YqS4x6tcJaGPmVC4akb3gUERElUb+Qe W3vpYwTgDJ7xUQgXf9IrhV1tKZ3zC2ZgkeOmn7+PMw6rzQjHQ+u7N/jgCSoU= X-Received: by 2002:a05:6000:1815:b0:20a:deee:3cf0 with SMTP id m21-20020a056000181500b0020adeee3cf0mr13721871wrh.210.1652702486413; Mon, 16 May 2022 05:01:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwaHb+Lkv+5LLIkKhk3gcb1ltrxxqXEAsbM71EGxFqwQZE7HgiTd/YP8FCKjboAWv2ooBMPA== X-Received: by 2002:a05:6000:1815:b0:20a:deee:3cf0 with SMTP id m21-20020a056000181500b0020adeee3cf0mr13721849wrh.210.1652702486090; Mon, 16 May 2022 05:01:26 -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 k19-20020a05600c0b5300b003947b59dfdesm15376376wmr.36.2022.05.16.05.01.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 May 2022 05:01:25 -0700 (PDT) Message-ID: <425f7f05-f9f8-1240-5589-242b164f286d@redhat.com> Date: Mon, 16 May 2022 13:01:24 +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=-4.5 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: Mon, 16 May 2022 12:01:31 -0000 On 5/16/22 02:06, Zopolis0 via Gcc-help 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. We only ever built libjava as part of a whole-GCC build. The libjava directory isn't intended to be built on its own. Please build the whole GCC tree using the top-level makefile and it'll work, then you can extract whatever built pieces you need. -- 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