unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Failure building with libgccjit under MacOS Monterey
@ 2021-11-07 21:46 Perry E. Metzger
  2021-11-08 20:16 ` Alan Third
  0 siblings, 1 reply; 6+ messages in thread
From: Perry E. Metzger @ 2021-11-07 21:46 UTC (permalink / raw)
  To: emacs-devel

Howdy! I suspect this is a mistake I'm making somewhere, but I'd like a 
hint on where to look to fix it. When building the Emacs 28 branch on 
the latest MacOS, I unexpectedly get a failure:

   configure: error: The installed libgccjit failed to compile and run a 
test program using
   the libgccjit library; see config.log for the details of the failure.

Looking at the config.log says (I think this is the key line):

   ld: library not found for -lSystem

A few weeks ago I was building JIT versions of Emacs just fine with the 
same configuration; updating the OS might or might not have been the big 
change. Any ideas what I might need to fix?

Perry





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Failure building with libgccjit under MacOS Monterey
  2021-11-07 21:46 Failure building with libgccjit under MacOS Monterey Perry E. Metzger
@ 2021-11-08 20:16 ` Alan Third
  2021-11-08 20:49   ` Perry E. Metzger
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Third @ 2021-11-08 20:16 UTC (permalink / raw)
  To: Perry E. Metzger; +Cc: emacs-devel

On Sun, Nov 07, 2021 at 04:46:21PM -0500, Perry E. Metzger wrote:
> Howdy! I suspect this is a mistake I'm making somewhere, but I'd like a hint
> on where to look to fix it. When building the Emacs 28 branch on the latest
> MacOS, I unexpectedly get a failure:
> 
>   configure: error: The installed libgccjit failed to compile and run a test
> program using
>   the libgccjit library; see config.log for the details of the failure.
> 
> Looking at the config.log says (I think this is the key line):
> 
>   ld: library not found for -lSystem
> 
> A few weeks ago I was building JIT versions of Emacs just fine with the same
> configuration; updating the OS might or might not have been the big change.
> Any ideas what I might need to fix?

How have you installed libgccjit?

It might be helpful to give a little more context around the error. Is
there a complete command that it's trying to run?
-- 
Alan Third



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Failure building with libgccjit under MacOS Monterey
  2021-11-08 20:16 ` Alan Third
@ 2021-11-08 20:49   ` Perry E. Metzger
  2021-11-12 21:23     ` Alan Third
  0 siblings, 1 reply; 6+ messages in thread
From: Perry E. Metzger @ 2021-11-08 20:49 UTC (permalink / raw)
  To: Alan Third, emacs-devel

On 11/8/21 15:16, Alan Third wrote:
> On Sun, Nov 07, 2021 at 04:46:21PM -0500, Perry E. Metzger wrote:
>> Howdy! I suspect this is a mistake I'm making somewhere, but I'd like a hint
>> on where to look to fix it. When building the Emacs 28 branch on the latest
>> MacOS, I unexpectedly get a failure:
>>
>>    configure: error: The installed libgccjit failed to compile and run a test
>> program using
>>    the libgccjit library; see config.log for the details of the failure.
>>
>> Looking at the config.log says (I think this is the key line):
>>
>>    ld: library not found for -lSystem
>>
>> A few weeks ago I was building JIT versions of Emacs just fine with the same
>> configuration; updating the OS might or might not have been the big change.
>> Any ideas what I might need to fix?
> How have you installed libgccjit?

Using MacPorts. The mechanism hasn't changed significantly since it was 
last working (nor has the package).

> It might be helpful to give a little more context around the error. Is
> there a complete command that it's trying to run?

I can forward the full build configure if that will help. I suspect most 
people on the mailing list don't want to see it; should I send it to you 
personally?

Perry




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Failure building with libgccjit under MacOS Monterey
  2021-11-08 20:49   ` Perry E. Metzger
@ 2021-11-12 21:23     ` Alan Third
  2021-11-13  7:21       ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Third @ 2021-11-12 21:23 UTC (permalink / raw)
  To: Perry E. Metzger; +Cc: emacs-devel

On Mon, Nov 08, 2021 at 03:49:28PM -0500, Perry E. Metzger wrote:
> On 11/8/21 15:16, Alan Third wrote:
> > On Sun, Nov 07, 2021 at 04:46:21PM -0500, Perry E. Metzger wrote:
> > > Howdy! I suspect this is a mistake I'm making somewhere, but I'd like a hint
> > > on where to look to fix it. When building the Emacs 28 branch on the latest
> > > MacOS, I unexpectedly get a failure:
> > > 
> > >    configure: error: The installed libgccjit failed to compile and run a test
> > > program using
> > >    the libgccjit library; see config.log for the details of the failure.
> > > 
> > > Looking at the config.log says (I think this is the key line):
> > > 
> > >    ld: library not found for -lSystem
> > > 
> > > A few weeks ago I was building JIT versions of Emacs just fine with the same
> > > configuration; updating the OS might or might not have been the big change.
> > > Any ideas what I might need to fix?
> > How have you installed libgccjit?
> 
> Using MacPorts. The mechanism hasn't changed significantly since it was last
> working (nor has the package).
>
> > It might be helpful to give a little more context around the error. Is
> > there a complete command that it's trying to run?
> 
> I can forward the full build configure if that will help. I suspect most
> people on the mailing list don't want to see it; should I send it to you
> personally?

Hmm, I don't see anything wrong with the command lines. It looks like
the error is actually being caused by the attempt to set up or use
libgccjit within the smoketest.

I don't know anything about how that works. The full error text for
anyone interested is below.

configure:17126: /usr/bin/cc -o conftest -g3 -O2 -I/opt/local/include/librsvg-2.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/gcc11   -I/opt/local/include -I/opt/local/include/gcc11 -L/opt/local/lib -L/opt/local/lib/gcc11 conftest.c -lgccjit   -L/opt/local/lib/gcc11 >&5
configure:17126: $? = 0
configure:17126: ./conftest
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
libgccjit.so: error: error invoking gcc driver
configure:17126: $? = 1
configure: program exited with status 1

<snip smoke test code>

configure:17131: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
The test program can be found here:
<https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html>.
You can try compiling it yourself to investigate the issues.
Please report the issue to your distribution if libgccjit was installed
through that.
You can find the instructions on how to compile and install libgccjit from
source on this site:
<https://gcc.gnu.org/wiki/JIT>.

-- 
Alan Third



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Failure building with libgccjit under MacOS Monterey
  2021-11-12 21:23     ` Alan Third
@ 2021-11-13  7:21       ` Eli Zaretskii
  2021-11-13 23:58         ` Perry E. Metzger
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2021-11-13  7:21 UTC (permalink / raw)
  To: Alan Third; +Cc: emacs-devel, perry

> Date: Fri, 12 Nov 2021 21:23:58 +0000
> From: Alan Third <alan@idiocy.org>
> Cc: emacs-devel <emacs-devel@gnu.org>
> 
> Hmm, I don't see anything wrong with the command lines. It looks like
> the error is actually being caused by the attempt to set up or use
> libgccjit within the smoketest.
> 
> I don't know anything about how that works. The full error text for
> anyone interested is below.
> 
> configure:17126: /usr/bin/cc -o conftest -g3 -O2 -I/opt/local/include/librsvg-2.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/gcc11   -I/opt/local/include -I/opt/local/include/gcc11 -L/opt/local/lib -L/opt/local/lib/gcc11 conftest.c -lgccjit   -L/opt/local/lib/gcc11 >&5
> configure:17126: $? = 0
> configure:17126: ./conftest
> ld: library not found for -lSystem  <<<<<<<<<<<<<<<<<<<<<<<
> collect2: error: ld returned 1 exit status
> libgccjit.so: error: error invoking gcc driver
> configure:17126: $? = 1
> configure: program exited with status 1

The line I highlighted seems to say that some dependency library is
missing, and the linker therefore fails to link the text program.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Failure building with libgccjit under MacOS Monterey
  2021-11-13  7:21       ` Eli Zaretskii
@ 2021-11-13 23:58         ` Perry E. Metzger
  0 siblings, 0 replies; 6+ messages in thread
From: Perry E. Metzger @ 2021-11-13 23:58 UTC (permalink / raw)
  To: Eli Zaretskii, Alan Third; +Cc: emacs-devel

On 11/13/21 02:21, Eli Zaretskii wrote:
>> Date: Fri, 12 Nov 2021 21:23:58 +0000
>> From: Alan Third <alan@idiocy.org>
>> Cc: emacs-devel <emacs-devel@gnu.org>
>>
>> Hmm, I don't see anything wrong with the command lines. It looks like
>> the error is actually being caused by the attempt to set up or use
>> libgccjit within the smoketest.
>>
>> I don't know anything about how that works. The full error text for
>> anyone interested is below.
>>
>> configure:17126: /usr/bin/cc -o conftest -g3 -O2 -I/opt/local/include/librsvg-2.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/gcc11   -I/opt/local/include -I/opt/local/include/gcc11 -L/opt/local/lib -L/opt/local/lib/gcc11 conftest.c -lgccjit   -L/opt/local/lib/gcc11 >&5
>> configure:17126: $? = 0
>> configure:17126: ./conftest
>> ld: library not found for -lSystem  <<<<<<<<<<<<<<<<<<<<<<<
>> collect2: error: ld returned 1 exit status
>> libgccjit.so: error: error invoking gcc driver
>> configure:17126: $? = 1
>> configure: program exited with status 1
> The line I highlighted seems to say that some dependency library is
> missing, and the linker therefore fails to link the text program.

What's weird here is that more or less nothing happened; it simply broke 
in the last few weeks. I'm guessing, though, that I'm the only person in 
a position to figure this out so I'll start digging. (I was kind of 
hoping it was a known issue and someone else had seen it previously.)

Perry





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-13 23:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-07 21:46 Failure building with libgccjit under MacOS Monterey Perry E. Metzger
2021-11-08 20:16 ` Alan Third
2021-11-08 20:49   ` Perry E. Metzger
2021-11-12 21:23     ` Alan Third
2021-11-13  7:21       ` Eli Zaretskii
2021-11-13 23:58         ` Perry E. Metzger

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).