gnu

Control GNU autotools make output

假如想象 提交于 2019-12-24 06:29:09
问题 I am using GNU autoconf/automake. Is there any way I can control what make prints to stdout from configure.ac or Makefile.am? For example, suppress mv and cp commands being printed out to the screen, only print the name of the file being compiled by gcc rather than the whole command line, highlight gcc warnings in some way. 回答1: Is Prettify Automake what you want? Edit : As of Automake 1.10b, silent-rules is built-in. Not the same code or style but similar in effect. 回答2: Modern Automake

“Error: could not find a valid GNU Make executable” with Cygwin and NDK

别来无恙 提交于 2019-12-24 06:24:31
问题 I'm new to the NDK. (using Windows). I have downloaded cygwin and the NDK. I have unzipped the NDK in C:\ . When I run cygwin I change to the NDK directory and I run the command build/host-setup.sh But I get: Error: could not find a valid GNU Make executable. I have downloaded GNU make 3.81 but still no luck. What do I have to do with GNU Make? Do I have to put it in a special directory or add it to PATH? 回答1: For anyone that comes across this, GNU make is not selected by default in the

Why can't Nettle 2.4's `configure` find GMP 5.0.2?

孤者浪人 提交于 2019-12-23 20:25:41
问题 I'm attempting to build GnuTLS on Mac OS X 10.5 (Leopard) Server (yeah, I know, it's a bit dated, but that's what this server is running at the moment) and am running into an issue building Nettle: I've built & installed GMP, but Nettle's configure cannot find it. I built & installed GMP 5.0.2 as follows (the GCC version solution is from here): curl -O ftp://ftp.gmplib.org/pub/gmp-5.0.2/gmp-5.0.2.tar.bz2 tar xjf gmp-5.0.2.tar.bz2 pushd gmp-5.0.2 CC=gcc-4.2 CXX=g++4.2 ./configure --prefix=/usr

How to use ccache with Make?

霸气de小男生 提交于 2019-12-23 19:34:11
问题 I have a source directory which uses makefile to compile the code. This makefile/configure file is not written for ccache compatibility. So I thought to use ccache. I created alias in .bashrc as alias gcc='ccache gcc' , but Makefile is still not considering this definition of gcc. So is there anything I can do without touching Makefile/configure file such that it takes ccache gcc instead of gcc . Also CC='ccache gcc' ./configure is not an option, since it does not ask for CC. If I write

Is '.set noat' unsupported for MIPS assembly?

 ̄綄美尐妖づ 提交于 2019-12-23 18:44:51
问题 Currently, I'm learning GNU as, and find a lot useful information in "info as". I found ".set noat" is used in MIPS specified code, but when searching for this directive in "info as", I found its explanation in node "alpha directive", but not in "MIPS Dependent Features". Why? did I miss something in the manual? TIA 回答1: The .set at/noat is a valid construction for MIPS architecture and works the similar way as on Alpha by disabling/enabling warning when $at register is used by user. As

GNU assembler: Accessing a corrupted shared library error

做~自己de王妃 提交于 2019-12-23 17:57:00
问题 I'm reading the book: "Professional assembly language". I want to use dynamic linking . I'm using AT&T syntax with GNU assembler. My computer has Ubuntu 12.04 (in a 64 bit system). I'm trying to display the vendor ID string using the cpuid assembler opcode and printf C function instead of linux system calls. Code of hello.s .code32 .section .data output: .asciz "The processor Vendor ID is '%s'\n" .section .bss .lcomm buffer, 12 .section .text .globl _start _start: movl $0, %eax cpuid movl

error: Autoconf version 2.67 or higher is required

回眸只為那壹抹淺笑 提交于 2019-12-23 13:08:54
error: Autoconf version 2.67 or higher is required 今天linux下遇到这种错误,顺便记录下来。 #rpm -qf /usr/bin/autoconf 查看当前的版本。 #rpm -e --nodeps autoconf-2.63 卸载当前的版本 #wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz 安装最新版本 下载并安装 # wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz # tar zxvf autoconf-2.68.tar.gz # cd autoconf-2.68 # ./configure --prefix=/usr/ # make && make install 来源: https://www.cnblogs.com/tonyY/p/4817792.html

How do I pass a quoted string with -D to gcc in cmd.exe?

僤鯓⒐⒋嵵緔 提交于 2019-12-23 04:24:16
问题 With gcc (and possibly other compilers as well) it's possible to define a macro outside the source file like so: c:\MinGW\bin\gcc.exe -DDEFINED_INT=45 foo.c -o foo.exe This will define DEFINED_INT to 45 which can be seen when compiling #include <stdio.h> int main() { printf("The define was: %d\n", DEFINED_INT); return 0; } The compiled foo.exe will then print 45 when executed. Now, what I have no clue of is how do I pass a quoted string instead of an int. So, the printf would then be

How do you define the options you see in ./configure --help?

扶醉桌前 提交于 2019-12-23 02:48:18
问题 I'm currently trying to set up a package to be installed with autotools. In most, if not all, major software packages, configure --help lists a large number of options like ./configure --ENABLE-FLOAT, etc. I was wondering where I can define these options. Thanks, Sam 回答1: Use AC_ARG_ENABLE and AC_ARG_WITH in your configure.ac file. 来源: https://stackoverflow.com/questions/2655177/how-do-you-define-the-options-you-see-in-configure-help

Where are info document files in Mac or in Linux, and how can I install some missing info files?

跟風遠走 提交于 2019-12-22 14:41:24
问题 I wanted read coreutils info, but I could not find it. Now, I wonder where the info documents in my computer (mac or linux). I want to know how I can install info files. Thank you, SangChul 回答1: I suppose you entered info coreutils on the command line, which returned the info top directory instead of the coreutils info page? In that case, here is what I would do (on ubuntu 15.10, and probably on any GNU/Linux OS). Download the coreutils info document from the gnu project: wget http://www.gnu