Cannot build SBCL (memcpy.h: no such file or directory)

Bug #1813977 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

$ sh make.sh
rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
rm -rf sbcl asdf "docstrings/"
rm -f sbcl.html asdf.html
rm -f contrib-docs.texi-temp
rm -f package-locks.texi-temp
rm -f variables.texinfo
rm -f sbcl.ps asdf.ps sbcl.pdf asdf.pdf html-stamp tempfiles-stamp
rm -f asdf.aux asdf.cp asdf.cps asdf.fn asdf.fns asdf.ky asdf.log asdf.pg asdf.toc asdf.tp asdf.tps asdf.vr asdf.vrs sbcl.aux sbcl.cp sbcl.cps sbcl.fn sbcl.fns sbcl.ky sbcl.log sbcl.pg sbcl.toc sbcl.tp sbcl.tps sbcl.vr sbcl.vrs
rm -f sbcl.info sbcl.info-* asdf.info
rm -rf *.include *.info *.pdf *~ *.cp *.fn *.ky *.log *.pg *.toc \
 *.tp *.vr *.aux *.eps *.png *.dvi *.ps *.txt *.fns \
 html-stamp sbcl-internals/
base=5c78c2ca33f821c54527e032ae68eddeaeae23aa
head=ac218d70955392f1ecfc7afca6c6ead0f4d6b303
//entering make-config.sh
//ensuring the existence of output/ directory
//guessing default target CPU architecture from host architecture
//setting up CPU-architecture-dependent information
sbcl_arch="x86-64"
//initializing /pdietz/sbcl-sbcl/build-features.lisp-expr
//initializing /pdietz/sbcl-sbcl/local-target-features.lisp-expr
//setting up OS-dependent information
make: Entering directory '/pdietz/sbcl-sbcl/tools-for-build'
cc -Wunused-parameter -fno-omit-frame-pointer -momit-leaf-frame-pointer -include memcpy.h -I../src/runtime determine-endianness.c -ldl -o determine-endianness
cc1: fatal error: memcpy.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'determine-endianness' failed
make: *** [determine-endianness] Error 1
make: Leaving directory '/pdietz/sbcl-sbcl/tools-for-build'

(the local differences causing those different hashes shouldn't be relevant)

Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

(This is Ubuntu 18.04.1 LTS on an x86-64)

Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

Fix:

diff --git a/src/runtime/Config.x86-64-linux b/src/runtime/Config.x86-64-linux
index a01014929..0ac379258 100644
--- a/src/runtime/Config.x86-64-linux
+++ b/src/runtime/Config.x86-64-linux
@@ -42,7 +42,7 @@ ifdef LISP_FEATURE_SB_CORE_COMPRESSION
   OS_LIBS += -lz
 endif

-CFLAGS += -Wunused-parameter -fno-omit-frame-pointer -momit-leaf-frame-pointer -include memcpy.h
+CFLAGS += -Wunused-parameter -fno-omit-frame-pointer -momit-leaf-frame-pointer

 ifdef LISP_FEATURE_IMMOBILE_SPACE
   GC_SRC = fullcgc.c gencgc.c traceroot.c immobile-space.c elf.c

Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

Christophe added the missing file.

Changed in sbcl:
status: New → Fix Committed
Stas Boukarev (stassats)
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.