Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CC_FOR_BUILD Macro definition problem

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Description

Error compiling indent-2.2.12

/ indent-2.2.12/man'

O texinfo2man. / texinfo2man.c

Make [2]: o: Command not found

Make [2]: [Makefile:546: texinfo2man] Error 127 (ignored)

. / texinfo2man. / indent.1.in. /.. / doc/indent.texi > indent.1

/ bin/sh:. / texinfo2man: No such file or directory

Make [2]: * * [Makefile:549: indent.1] Error 127

Make [2]: Leaving directory'/ 3thrdpartyhand IndentMet 2.2.12 Universe Man'

Make [1]: * * [Makefile:455: all-recursive] Error 1

Make [1]: Leaving directory'/ 3thrdpartyhand IndentMur2.2.12'

Make: * [Makefile:393: all] Error 2

Troubleshoot man/Makefile compiled files

$(CC_FOR_BUILD)-o $@ ${srcdir} / texinfo2man.c

CC_FOR_BUILD is not recognized

To solve this problem, you can modify the macro definition

$(CC)-o $@ ${srcdir} / texinfo2man.c

Extension

Autoconf cached variables (CC_FOR_BUILD), search autoconf script did not find any information

CC_FOR_BUILD is described in detail in config/config.guess under the folder directory.

# CC_FOR_BUILD-compiler used by this script. Note that the use of a

# compiler to aid in system detection is discouraged as it requires

# temporary files to be created and, as you can see below, it is a

# headache to deal with in a portable fashion.

# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still

# use `HOST_CC' if defined, but it is deprecated.

The macro definition is defined in other open source

Secp256k1/build-aux/m4/ax_prog_cc_for_build.m4

This macro searches for a C compiler that generates native executables

# that is a C compiler that surely is not a cross-compiler. This can be

# useful if you have to generate source code at compile-time like for

# example GCC does.

#

# The macro sets the CC_FOR_BUILD and CPP_FOR_BUILD macros to anything

# needed to compile or link (CC_FOR_BUILD) and preprocess (CPP_FOR_BUILD).

# The value of these variables can be overridden by the user by specifying

# a compiler with an environment variable (like you do for standard CC).

Config.guess here assigns values to the macro definition

Set_cc_for_build='

Trap "exitcode=\ $?; (rm-f\ $tmpfiles 2 > / dev/null; rmdir\ $tmp 2 > / dev/null) & & exit\ $exitcode" 0

Trap "rm-f\ $tmpfiles 2 > / dev/null; rmdir\ $tmp 2 > / dev/null; exit 1" 1 2 13 15

: ${TMPDIR=/tmp}

{tmp= `(umask 077 & & mktemp-d "$TMPDIR/cgXXXXXX") 2 > / dev/ null` & & test-n "$tmp" & & test-d "$tmp";} | |

{test-n "$RANDOM" & & tmp=$TMPDIR/cg$$-$RANDOM & & (umask 077 & & mkdir $tmp);} | |

{tmp=$TMPDIR/cg-$$ & (umask 077 & & mkdir $tmp) & & echo "Warning: creating insecure temp directory" > & 2;} | |

{echo "$me: cannot create a temporary directory in $TMPDIR" > & 2; exit 1;}

Dummy=$tmp/dummy

Tmpfiles= "$dummy.c $dummy.o $dummy.rel $dummy"

Case $CC_FOR_BUILD,$HOST_CC,$CC in

,) echo "int x;" > $dummy.c

For c in cc gcc C89 C99; do

If ($c-c-o $dummy.o $dummy.c) > / dev/null 2 > & 1; then

CC_FOR_BUILD= "$c"; break

Fi

Done

If test x "$CC_FOR_BUILD" = x; then

CC_FOR_BUILD=no_compiler_found

Fi

, *) CC_FOR_BUILD=$CC

, *) CC_FOR_BUILD=$HOST_CC

Esac; set_cc_for_build=;'

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report