Skip to main content

Questions tagged [compile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
55 views

error message from compile command in Emacs 29.3

The latest Emacs update GNU Emacs 29.3 (build 1, x86_64-slackware-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2024-03-24 prints an error message emacs: writing to child signal FD: ...
3Tom's user avatar
  • 1
0 votes
1 answer
107 views

Configure compile command to take buffer-file-name as its source file argument

I am in the way of automating my compilation process with, what is an unexplored but an omnipotent command compile. I expect it to decide upon the compiler using the filename extension & also, ...
Saravana's user avatar
  • 2,091
5 votes
1 answer
331 views

Is there a way to suppress warnings when a package is compiled in elisp?

Whenever I compile my package org-ref I get lots of warnings like: Warning (comp): openalex.el:622:2: Warning: docstring wider than 80 characters. It is a fair warning, but it caused by a hydra with a ...
John Kitchin's user avatar
  • 12.1k
0 votes
1 answer
90 views

Automatically kill an in-progress compilation when compile is (re)invoked?

Dozens of times per day I tap C-x m to build, then discover something i need to change, change it, tap C-x m again, and get a prompt from Emacs: A compilation process is running; kill it? (yes or no) ...
sgbeal's user avatar
  • 3
0 votes
1 answer
14 views

git question: Why does git fetch not provide a fully updated local repo of Emacs?

More than a year ago I cloned Emacs: git clone git://git.savannah.gnu.org/emacs.git and since always kept it on date with git fetch git://git.savannah.gnu.org/emacs.git Well, at least I thought that ...
Keks Dose's user avatar
  • 538
5 votes
0 answers
2k views

Emacs with JSON support

I'm trying to compile emacs 28.2 (from https://ftp.gnu.org/gnu/emacs/) with json support on a Ubuntu-based system (Linux Mint). But I don't get it to work meaning that json-available-p is void and I ...
dmw64's user avatar
  • 219
0 votes
2 answers
169 views

try to compile .rst text:Compilation exited abnormally with code 2

I'm trying emacs to create a simple .rst mode. I tyoe M-x rst-mode then I wrote a simple code then type M-x compile (proposed 'make -k') I obtain this message and it doesn't compile -- mode: ...
RenatoP's user avatar
  • 121
1 vote
1 answer
158 views

Function that determines and returns the programming language of a given file

I'm working on some compiler shortcuts: I want to write a function (cmp FILE-NAME &optional args) that will use FILE-NAME and args to construct the appropriate COMMAND to call (compile COMMAND) ...
andy_programs's user avatar
-1 votes
1 answer
613 views

How to compile makefile files for newbies

I just got cloned a piece of software and the download folder looks like this: What I am to do next to compile this piece of software? Thanks!
Emmanuel Goldstein's user avatar
1 vote
2 answers
116 views

Using sed to filter/modify make output

I have to live with a build system that moves pieces of source around before running make. I have a function that pipes output of make through a sed to remap file references back to the source tree. (...
zzz777's user avatar
  • 111
0 votes
1 answer
79 views

Can't overwrite compile-command

I am having this in my init file to reset the compile command in the C mode, but when I run the C-c C-c inside C mode I will get the old command make ... meaning my new command hasn't been set. Why? ...
Student's user avatar
  • 103
2 votes
0 answers
337 views

Compiled Emacs but Shared Object files Missing Unless LD_LIBRARY_PATH environment variable correctly set

I compiled Emacs to run on Redhat Linux. Since I wanted to compile it with --with-native-compilation flag, I had to install Redhat's developer tools to get libgccjit. These tools are installed in /opt/...
Jacob Lee's user avatar
  • 237
2 votes
1 answer
283 views

What controls whether `M-x compile` splits a frame into two windows?

To resolve some performance issues I refactored my .emacs, and since the refactoring, M-x compile does not split a frame into two windows. Instead, running M-x compile takes over the entire frame ...
Norman Ramsey's user avatar
1 vote
3 answers
3k views

How to add -shell-escape option to latex compile command

Background story: I have to compile my LaTeX document with the -shell-escape command line option because the pgfplots library I am using calls gnuplot. This was necessary to get a plot of a recursive ...
user avatar
2 votes
1 answer
100 views

"Auto-Confirmation: Automatically Saying Yes" but how?

i have (defun insert-buffername () (interactive) (compile (concat "lua " (buffer-file-name)))) (global-set-key (kbd "C-c C-e") #'insert-buffername) but when i use this key ...
oleg harput's user avatar
3 votes
0 answers
1k views

Compiling gccemacs (Emacs 28) from source. To bootstrap or not to bootstrap?

With the following build script on Big Sur + homebrew, I get horribly long compile times when using make bootstrap as opposed to simply make on gccemacs. I've read the Makefile in the src directory - ...
o__b's user avatar
  • 33
5 votes
0 answers
918 views

How do I make compilation use vterm instead of the default shell it is using?

I am running M-x compile commands in my Projectile projects. I would like to use vterm for running them as the compilations are getting very slow because the project is very large. How do I make ...
Vicky's user avatar
  • 151
1 vote
1 answer
425 views

Can't make emacs compile with locally installed harfbuzz

Whenever I start the ./configure script for emacs at the end of it I get the following message: configure: WARNING: This configuration uses the Cairo graphics library, but not the HarfBuzz font ...
Percee's user avatar
  • 143
0 votes
1 answer
77 views

Cannot make `compile-command` buffer local

I've tried making compile-command buffer-local via (defun compilation-make-locals (process) (set (make-local-variable 'compile-command) compile-command)) (add-hook 'compilation-start-hook '...
Nordlöw's user avatar
  • 527
0 votes
0 answers
214 views

is there a way to make compile shell process happen in eshell / "real" shell?

i wanted to bind a key to a compile and run command, then i found this post, Compile and run single file c++ programs in Emacs[SOLVED] ( last answer) It works perfectly fine and as intended. The only ...
Falseee's user avatar
1 vote
1 answer
259 views

M-x compile hangs with WARNING: terminal is not fully functional

I have been using M-x compile for ages. Lately (our sysadmin has updated many things) it hangs after giving this message: WARNING: terminal is not fully functional - (press RETURN). Pressing return ...
Gopal Patnaik's user avatar
1 vote
1 answer
224 views

Function `cd` not working correctly in conjunction with `tramp` and `compile`

For context I am looking at a remote file; for example: /ssh:desktop:/home/user/project/src/file.cpp. I then issue the interactive command compile like so: cd /ssh:desktop:/home/user/project/Release &...
John DeBord's user avatar
1 vote
1 answer
377 views

Create shortcut for interactive compile command

I know that we can start compile interactively using C-u M-x compile. Is there a way to start this whenever I run M-x compile? If that cannot be done, how do I create a shortcut to C-u M-x compile? ...
mle0312's user avatar
  • 295
0 votes
0 answers
201 views

Where is M-x compile?

I have a basic C file open in c-mode: #include <stdio.h> #include <stdlib.h> int main() { return 0; }; I'm trying to compile it. I type M-x compile expecting to be asked to set my ...
Mittenchops's user avatar
1 vote
2 answers
175 views

How to Run a Context Sensitive Compile?

When working on projects which use multiple kinds of build-systems, sometimes I want to run a make command based on the project, without having to manually setup project spesific hooks. Is there a ...
ideasman42's user avatar
  • 9,157
2 votes
1 answer
314 views

Create custom "mode-hook" for other programming languages

For C/C++, I have the following to be run when I do M-x compile on a .c/.cpp file (add-hook 'c++-mode-hook (lambda () (set (make-local-variable 'compile-command) ...
mle0312's user avatar
  • 295
0 votes
0 answers
261 views

Send command to run in eshell, after compiled

So I've been mapping my M-x compile like this, according to c-mode-hook or c++-mode-hook: (add-hook 'c++-mode-hook (lambda () (set (make-local-variable 'compile-command) ...
mle0312's user avatar
  • 295
1 vote
1 answer
381 views

Projectile command for debug and release

My google searches aren't turning up anything useful, but I am trying to figure out how I" can use projectile-project-compilation-cmd to be able to dynamically switch between release and debug with ...
 tenspd137's user avatar
0 votes
0 answers
24 views

Emacs continuously asking for input and not sure what is the cause

I have this function implemented to basically compile and run the cpp file I am writing. Some files needs input (cin) so running this function will not stop and would continuously showing this message:...
SFbay007's user avatar
  • 584
0 votes
0 answers
124 views

How to build and run Emacs from source with Eclipse?

I have just downloaded the latest version (Oxygen, Release 4.7.0) of the Eclipse IDE for C/C++ Developers, and would like to use it to build and run Emacs from source, which I have downloaded from the ...
Evan Aad's user avatar
  • 1,571