编译G-Wrap时make步骤报错,附configure执行日志
Hey there, let’s troubleshoot that G-Wrap compilation issue you’re hitting at the make step. Let’s start by laying out what we know and what we need to fix this:
make Step Error Context
You’re trying to build G-Wrap from source using the standard ./configure → make → make install workflow, but the process fails during make. You’ve shared a portion of the configure log, which cuts off mid-execution. Here’s the log you provided:
checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... yes checking whether make supports nested variables... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... (cached) ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking size of long... 8 checking whether byte ordering is bigendian... no checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for long long int... yes checking for unsigned long long int... yes checking for stdint.h... (cached) yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking fo
Critical Next Steps
First, notice that your configure log cuts off (ends at "checking fo")—make sure configure actually completed successfully. Look for the final lines like:
configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile ... configure: done
If configure failed, fix those errors first before re-running make.
The biggest missing piece here is the full error output from the make command. Without that, it’s hard to pinpoint the exact issue, but here are some common fixes to try in the meantime:
- Install required dependencies: G-Wrap depends on Guile. Make sure you have the Guile development package installed (e.g.,
guile-devon Debian/Ubuntu,guile-develon Fedora/RHEL). - Run
makewith verbose output: Executemake V=1to get detailed logs—this will show exactly which command is failing and what the error message is. - Check for compiler compatibility: If you’re using a newer GCC version (10+), older projects like G-Wrap might need small patches to handle modern compiler standards. Check your distro’s package repository for existing patches, or look for fixes on the G-Wrap community resources.
Once you share the complete make error log, we can dive into the specific problem and get you up and running.
内容的提问来源于stack exchange,提问作者Zelphir Kaltstahl

