Commit graph

46 commits

Author SHA1 Message Date
Douglas Katzman f125446aeb Stop rudely deleting a non-artifact file in make-config 2025-07-01 15:35:29 -04:00
Stas Boukarev f4da14d6e4 Remove where-is-mcontext.c
That's pretty old. Using the same code for ppc32/ppc64 appears to
work.
2024-11-09 21:16:33 +03:00
Douglas Katzman a068699d26 Get rid of src/runtime/sbcl.h
Can't see any value in having a 'make' recipe for it.
2023-11-02 20:50:29 -04:00
Stas Boukarev 70a4741793 Faster canonicalize-whitespace
Don't write any files if they have not changed.
2023-08-04 23:12:44 +03:00
Stas Boukarev a5f36524ab clean.sh: optionally don't delete ucd output files.
They are recomputed as needed.
2023-08-04 23:12:44 +03:00
Douglas Katzman 55fb3e8bae Remove some macOS artifacts in clean.sh 2023-04-24 13:10:14 -04:00
Gleefre 562a1a329a Add android build system (crosscompiling with NDK)
Uses NDK as C crosscompiler and ADB to run code on the target device.
Uses both :linux and :android features (android is almost a linux).

It also reserves a folder android-libs/ for putting precompiled
libraries to link agains (for example zstd for core compression).

See doc/internals-notes/Android-build.txt for more details
2023-04-21 15:08:19 -04:00
Douglas Katzman 588f7b56ff Stop blowing away all symlinks in clean.sh
make.sh should not have the default behavor of destroying work-in-progress
involving symlinks. The "solution" of creating a file of precious names was
not very discoverable and I only stumbled upon it after I thought I saw
symlinks disappear several times in a row, before I realized that I was not
imagining it.
2023-02-07 17:57:04 -05:00
Douglas Katzman 173e87b490 Use with-scratch-file
and having done that, there are no occurrences of some test-related
strings which can now be removed from .gitignore and clean.sh
2022-09-29 17:07:20 -04:00
Philipp Marek ba95d2ff02 Spelling fixes. 2022-09-20 10:15:05 -04:00
Douglas Katzman 8b014c9bbe Clean more 2022-04-02 03:47:02 -04:00
Stas Boukarev a6e60978ec Tame clean.sh
*.mk removes too much, including contrib/asdf-module.mk
2022-03-07 18:55:09 +03:00
Douglas Katzman 9259abfd85 Touchup clean.sh
Git rev cf6a01774b stopped producing a '.nm' file so don't "remove" it.
Conversely, 'sbcl.mk' file was getting made but never removed.
2022-03-07 09:50:24 -05:00
Richard M Kreuter 57b39145d7 Support building & testing in a tree whose leaves are symlinks. 2021-05-02 14:28:34 -04:00
Richard M Kreuter 6f4f187313 Tighten up the cd-then-clean.sh idiom.
Change
cd <someplace> ; sh ./clean.sh
to
cd ./<someplace> && sh ./clean.sh
2021-03-14 19:37:32 +03:00
Douglas Katzman bbb6ac4ad0 Cease generating ldso-stubs except as needed
And stop copying it in the build scripts, ignoring it in .gitignore,
and removing it in clean.sh
2020-03-06 16:32:46 -05:00
Nikodemus Siivola 9b122ef723 more pedantic clean.sh
Patch by Jim Wise, lp#666884.

  Takes care of the few cases of temporary files which are currently
  left behind after running clean.sh.

  While there, it normalizes the name used for scratch files used in
  contrib testing, and updates .cvsignore to match.

  This is obviously pedantry, but it's nice to have a clean tree at
  the end of clean.sh.
2011-02-12 15:22:25 +00:00
Rudi Schlatte 182b1cc783 1.0.10.55: Remove non-portable arguments to find, xargs 2007-10-22 04:16:12 +00:00
Rudi Schlatte ef6bcac988 1.0.10.52: fix clean.sh for whitespace-containing source directories 2007-10-21 05:15:04 +00:00
Nikodemus Siivola 2e498cbcb0 1.0.5.48: Git friendly clean.sh
* Ignore .git.
2007-05-15 12:27:59 +00:00
Christophe Rhodes 504a6aaa11 1.0.5.1: remove ldso-stubs.S in clean.sh
(patch from Timothy Ritchey sbcl-devel 2007-04-26)
2007-04-29 08:51:56 +00:00
sa2c 4ca6d75333 1.0.0.33: update build environment
.cvsignore: add more files
clean.sh: don't recurse into SCM directories
tools-for-build/canonicalize-whitespace: use more generic option to
check expand utility to make non-GNU expand happy
tools-for-build/whitespacely-canonical-filenames: add more SCM directories
2006-12-15 03:28:36 +00:00
Rudi Schlatte 76237af144 0.9.10.29
Linkage tables on win32
    ... heuristically choose a memory range ("does not break on my two
        systems, let's ship it")
    ... added some leftovers to cleanup.sh
    ... also #!+sb-doc-conditionalize docstrings in run-program.lisp
2006-03-14 12:27:46 +00:00
Christophe Rhodes 04d819bb1a 0.9.8.27:
Merge patch from James Bielman fixing self-build under Win32.
	... a little bit of an accident ensued; I ran
		canonicalize-whitespace on .sh files, which seemed to
		work (except on wc.sh) until it scribbled all over
		make.sh, confusing the shell interpreter utterly.
	... the resulting files have built the system, nevertheless.
2006-01-09 13:00:17 +00:00
Thiemo Seufer babd45f778 0.9.4.72:
Robustify the build system scripts.
2005-09-16 13:26:39 +00:00
William Harold Newman d336ca31c5 0.8.14.28:
"not when there is nothing more to add, but when there is
	nothing more to be taken away"
	deleted old DocBook manual sources
	deleted references to DocBook manual sources (in DOCDOC and
		clean.sh and so forth)
	minor tidying of doc-building and doc/-cleaning machinery
		(hopefully leaving it working basically as before)
2004-09-19 19:38:55 +00:00
William Harold Newman eb5265ab22 0.8.14.9:
fixes for build on my old Debian system...
	...added missing #!+LINKAGE-TABLE
	...converted "cd foo" to "cd ./foo" so that CDPATH-based logic
		won't helpfully announce the name of the new dir to
 		stdout (and thus into local-target-features.lisp-expr);
		then "cd ./foo > /dev/null" for overkill
	generally grepped for and changed "cd foo" to "cd ./foo" to
		reduce the amount of CDPATH ambiguity involved and
		the amount of stdout noise generated
2004-09-10 15:36:17 +00:00
William Harold Newman 8f07013fea 0.8.9.49:
merged Scott Parish's patch for OpenBSD, with a few tweaks...
	...reduced space sizes to work around ulimit problems (as a
		quick hack, probably not the ideal long-term solution)
	...fiddling to work around collisions with NetBSD patch; ah,
		the joys of working on living, squirmy code
	...I think s/LISP_FEATURE_LINUX/LISP_FEATURE_SB_THREAD/ on
		create_thread() is correct; it was motivated by the
		way that now new_thread_trampoline() is defined only
		when LISP_FEATURE_SB_THREAD.
	minor issue encountered while going through xc: clean.sh
		should blow away src/runtime/genesis/.
2004-04-19 03:41:40 +00:00
William Harold Newman 7b0b8ef8a7 0.8.9.2:
trivial tidying: A test file extension of .tmp lets it be
		autoremoved by clean.sh and autoignored by my ~/.cvsignore.
2004-03-24 16:45:26 +00:00
Christophe Rhodes b095510bb0 0.8.6.13:
Merge fix for bidirectional (that is IO, not anything Unicodely)
	streams (Adam Warner/Gerd Moellmann sbcl-devel/cmucl-imp 2003-11-xx)
	... added a test for it; be careful with that standard io syntax :)
2003-11-29 11:25:31 +00:00
Kevin Rosenberg 3c5c2c2656 0.8.6.1:
* clean.sh: Allow recursive includes in src/runtime/Config
	* doc/*: Convert from SGML format and processing to XML
	Currently, catalogs are in place for Debian and RedHat which
	allow automated use of local files instead of the tools
	downloading DTDs and XSLs from their canonical URLs.
	I'm glad to help setup catalogs for other operating systems.
2003-11-26 02:11:09 +00:00
William Harold Newman f7cadee920 0.8.4.19:
Clean more cleanly:
	...Delete more doc/html/ stuff.
	...also contrib/sb-bsd-sockets/alien.so
2003-10-10 17:25:24 +00:00
William Harold Newman a0a4134994 0.8.0.12:
added .cvsignore files in contrib/, and made corresponding
		changes in clean.sh (didn't clean up foo.c in clean.sh)
		(Maybe if we called it grovel-tmp.c or something I'd
		be more comfortable with its treewide autodeletion.)
	fixed #(1.2.3.4) thinko in sb-bsd-sockets docs (pointed out
		by Zachary Beane on sbcl-devel 2003-05-27)
2003-05-28 14:26:48 +00:00
Alexey Dejneka f1407e424f 0.8.0.5:
* Deleted obsolete bug 244;
        * optimizer for ARRAY-HEADER-P knows about 0-dimensional
          arrays;
          ... fixed bug 250.
2003-05-26 14:42:23 +00:00
Christophe Rhodes a3ab89c1db 0.7.13.28:
Merge SXHASH improvements
	... distribute (SXHASH <fixnum>) a little more widely over the
		available space;
	... make (SXHASH <bit-vector>) consider rather more than just
		the first four bits.
	Miscellaneous cleanups
	... don't delete contrib's html documentation
	... make vanilla modules depend on the (newly-built) sbcl.core
	... some cleanups in snapshot/SB-SHOW logic
	... quit from the low-level debugger now exits the process with
		an error code (because, um, even getting to ldb is a
		pretty serious error)
2003-03-15 19:01:30 +00:00
Christophe Rhodes bb7c5beef3 0.7.12.53:
Fix SunOS build as per sbcl-devel 2003-03-22
	... remove last bashism in build scripts;
	... allow building of foreign loading on SunOS;
	... frob sb-bsd-sockets tests so that they pass on SunOS even in the
		absence of a /dev/log socket.
2003-02-22 23:00:18 +00:00
William Harold Newman 722703e7cb 0.7.3.4:
small cleanups...
	...clean.sh should remove more stuff, notably *.orig files.
	...s/might-contain-other-types?/might-contain-other-types-p/
	...DB README note suggestion from sbcl-devel 2002-04
2002-04-26 14:40:47 +00:00
Christophe Rhodes 0d669e68a1 0.7.1.1:
Merged	support for SPARC/SunOS (aka Solaris)
	... added relevant runtime and	-os.lisp files;
	... cleaned up sparc backend runtime,	actually _using_ the
		abstractions	that were written for the SPARC/Linux
		port;
	... added some	#includes for compilation (nothing breaks on
		Linux, but BSD has not yet been tested;
	... removed some bash-/ksh-isms from build and test scripts;
	... abstraced wait3() constants into grovel_headers and
		unix.lisp.
2002-03-25 18:25:03 +00:00
William Harold Newman 34dd23563d (I didn't have convenient access to the Internet for almost a week, so
these versions just piled up on my computer and then I checked 'em
into CVS all at once.)

0.7.1.5:
	made TRANSFORM-CALL provide more informative DEBUG-NAMEs
	factored out COMBINATION-FUN-SOURCE-NAME and used it to
		support this

0.7.1.6:
	tweaked comments
	(hunted fruitlessly for bug 147 fix)

0.7.1.7:
	(hunted fruitlessly for bug 148 fix)
	rewrote MAYBE-EXPAND to try to increase clarity

0.7.1.8:
	factored out FUNCTIONAL-SOMEWHAT-LETLIKE-P and
		FUNCTIONAL-LETLIKE-P
	fixed part of the misbehavior in the bug 148 test case (but
		not bug 148 itself, alas) by removing the assumption
		that non-null FUNCTIONAL-KIND implies
		FUNCTIONAL-SOMEWHAT-LETLIKE-P

0.7.1.9:
	still trying to fix bug 148...
	...stopped MAYBE-REANALYZE-FUN from trying to reanalyze :DELETED
		functionals
	s/maybe-reanalyze-fun/maybe-reanalyze-functional/
	s/reanalyze-funs/reanalyze-functionals/
	s/new-funs/new-functionals/

0.7.1.10:
	still trying to fix bug 148...
	...IR2-CONVERT-CLOSURE shouldn't be called on :DELETED functionals!
	...Given that the :DELETED functional is making it all the way
		to the IR2-CONVERT-CLOSURE stage, maybe the failure
		in MAYBE-REANALYZE-FUNCTIONAL that I made go away in
		0.7.1.9 was a good thing. Reinstate it, though more
		clearly (as "shouldn't be reanalyzing :DELETED functional"
		rather than a type error when trying to find the COMPONENT
		of a LAMBDA) than before.
	...stopped IR2-CONVERT-CLOSURE from trying to intensively
		check CLAMBDA-to-COMPONENT relationship invariants
		for :DELETED CLAMBDAs
	made INVALID-FREE-FUN-P return true for :DELETED FUNCTIONALs
		just on general principles

0.7.1.11:
	s/local-call-lossage/locall-already-let-converted/
	various puttering and tidying trying to understand bug 148
		specifically and code deletion generally

0.7.1.12:
	Having walked through the bug 148 problem more carefully, I can
		see that before KIDIFY1 is deleted, it's first LET
		converted. Ergo, a :DELETED value is consistent with
		LET conversion after all, so...
	...relaxed the change in IR1-CONVERT-LOCAL-COMBINATION
		made in 0.7.1.8, so that now :DELETED is assumed
		to be due to LET conversion after all

0.7.1.13:
	made :ENCAPSULATE T the default for TRACE, since the
		breakpoint-based version still doesn't work reliably
		and since the ANSI description of TRACE is partial to
		tracing named things anyway
2002-02-07 20:37:51 +00:00
William Harold Newman d3df7e8508 0.pre7.39:
merged MNA fd-stream.lisp patch (sbcl-devel 2001-09-10)
	merged AD EXPAND-DEFGENERIC patch (sbcl-devel 2001-09-10)
	stuffed DEFUN EXPAND-DEFGENERIC into DEFMACRO DEFGENERIC
	merged AD DIRECTORY patch (sbcl-devel 2001-09-22)
	swapped FunctionPointer and InstancePointer type codes for PPC
		convenience (as per dan sbcl-devel 2001-09-22)
	incremented fasl file version number again
	tweaked clean.sh so it will delete CVS update crud
2001-10-03 20:03:25 +00:00
William Harold Newman 959057baab 0.pre7.29:
merged MNA EVAL-WHEN patch from sbcl-devel 2001-08-31 (doing
		nothing at toplevel unless :EXECUTE)
	rewrote the logic in the rest of the same EVAL-WHEN clause (not
		trying to change its behavior, just to express it more
		nicely)
	The implementation of EVAL doesn't actually belong IN-PACKAGE
		SB!BYTECODE. Put it in SB!IMPL instead.
	deleted duplicate definition of SB-KERNEL:*EVAL-STACK-TOP*
	moved definition of IGNORE-ERRORS src/code/macros (as
		DEFMACRO-MUNDANELY at build-the-cross-compiler time) so
		it can be used in target code in src/code/extensions
		(although that turns out not to help, since it expands
		into HANDLER-CASE, which wants to be defined later..)
	added src/code/late-extensions.lisp to hold things like
		LIST-WITH-LENGTH-P which want to have some of the
		Lisp system set up before they're defined
	renamed src/code/extensions.lisp to
		src/code/early-extensions.lisp (since now there's
		a corresponding late-extensions.lisp again)
	moved POSITIVE-PRIMEP to src/code/late-extensions.lisp,
		deleted src/code/numbers.lisp
	limited POSITIVE-PRIMEP to FIXNUM and moved it to SB!INT
	merged MNA "eval-when problems -- fix" patch from sbcl-devel
		2001-09-01 (IR1-converting EVAL-WHEN (with no forms)
		even in "the forms in the body are ignored" case,
		instead of just skipping IR1 conversion completely
		and leaving START and CONT dangling in the wind)
	since I'm doing related filename and stems-and-flags cleanup
		 anyway..
	..renamed src/code/early-target-error.lisp to
		src/code/target-error.lisp
	..renamed src/code/late-target-error.lisp to
		src/code/condition.lisp
2001-09-02 17:28:32 +00:00
William Harold Newman c8322df812 0.6.12.7.flaky1.1:
(As per Daniel Barlow sbcl-devel 2001-05-17, the removal of
		the mysterious "" special case in UNIX-STAT will
		probably keep this version from building itself,
		so I didn't even try. It does, however, at least
		do "sh run-tests.sh" successfully.)
	fixed declaration in %EXTRACT-STAT-RESULTS so that the
		system won't have to interpret the alien reference
		at runtime on every call to the function
	I found how to fix the boot/gencgc/purify problem which was
		leaving initial-function unmapped -- I could copy
		current_region_free_pointer into
		boxed_region.free_pointer just before
		gc_alloc_update_page_pages() in save.c. However,
		that left me with other flaky GC problems. So I gave
		up my GC hacking in this version as a bad job, and
		copied original 0.6.12.7 GC-related files over
		the modified versions: gencgc.c, save.c, purify.c,
		gc.lisp, save.lisp
	made %EXTRACT-STAT-RESULTS inline to suppress an apparent
		memory corruption bug
2001-05-18 13:22:50 +00:00
William Harold Newman d7f6139a91 0.6.12.7.flaky1:
(This system state is seriously screwed up. It did build,
		both on Linux and on OpenBSD, but signalled an
		error after writing out sbcl.core on OpenBSD, and
		although it runs a little both on Linux and on
		OpenBSD, it hangs in the regression tests. It
		also has some temporary hacks marked REMOVEME,
		including one which suppresses PURIFY when
		building the system (!).)
	made the system build on OpenBSD again..
	..stubbed stuff out as a quick fix to the problem of FFI to
		64-bit stat.st_size
	tried to make the system run on OpenBSD again..
	..initialized current_dynamic_space, since it's now used
		instead of DYNAMIC_SPACE_START in PURIFY
	..added new assertions about GENCGC alloc_region stuff being
		reset when it should be
	renamed Lisp-level struct stat stuff to struct wrapped_stat
	tried to tidy up Lisp-level stat stuff; removed mysterious
		(STRING= NAME "") behavior from UNIX-STAT
	added slam.sh to help in low-level compile-and-try cycle
	pulled alloc_region-is-reset logic out into separate
		functions, and added more assertions on it (hunting
		for a bug which broke the old assertions)
	renamed gc_alloc_large to gc_alloc_possibly_large, and
		gc_quick_alloc_large_unboxed to
		gc_quick_alloc_unboxed_possibly_large
	enabled various GC checks, e.g. gencgc_zero_check=1
	deleted unused (and bizarre..) gencgc_verify_zero_fill()
	turned off PURIFY in order to get the system to build, since
		PURIFY seems to be misbehaving (leaving INIT-FUNCTION
		above the cutoff address..)
2001-05-15 14:08:31 +00:00
William Harold Newman dfa55a883f 0.6.12.3:
NOTE: This is a slightly screwed-up checkin, which won't
		quite build as is, because the checked-in changes from
		the Alpha port expect various src/code/*types.lisp
		files (e.g. src/code/x86-linux-types.lisp) which
		Daniel Barlow created by hand once and for all. Those
		are in my working directory but I didn't check them in
		because almost immediately, probably 0.6.12.4, I
		expect to rearrange things so that the build
		process generates a types file on every run of
		make.sh. So since CVS add/delete is a little mixed up,
		I thought I'd just skip it, even though it means that
		this version isn't quite buildable unless you grab
		those files from DB's patch.
	merged Daniel Barlow's port to the Alpha CPU sbcl-devel
		2001-05-04
	moved CIRCULAR-LIST-P to early-extensions.lisp (since it
		logically belongs there, and DB's new definition,
		unlike the old one, doesn't have a physical dependence
		on IGNORE-ERRORS which prevents it from being there)
	merged boot-extensions.lisp, early-extensions.lisp, and
		late-extensions.lisp, since there's no longer any
		distinction between the files
	deleted CVS files from sbcl-alpha-extra-files.tar, since
		they were probably an oversight, I think
	also src/compiler/alpha/z050.pdf:-|
	The patch change
			-  (/hexstr arguments)
			+  #!+sb-show (/hexstr arguments)
		shouldn't be necessary because /SHOW, like all the
		/FOO macros, is already conditional on SB-SHOW. So I
		undid this change (and added some comments in
		src/code/show.lisp explaining the intended behavior
		of /FOO macros).
	merged stat_wrapper.c into the relatively new, related
		wrap.c file; deleted stat_wrapper.h since stat wrappers
		seem never intended to be used by C code anyway
	renamed build-tools/ to tools-for-build/ in the interest of
		unambiguous (even painfully unambiguous)
		globally-visible names
	tweaked tests/alien.impure.lisp so that the test uses a
		non-GENCGC-dependent variable (instead of having to
		have the test conditional on #+GENCGC).
2001-05-07 20:16:21 +00:00
William Harold Newman 4fc9d21ae1 0.6.10.13:
fixed problems reported by Douglas Brebner 2000-01-01..
	make.sh and friends now use foo/bar instead of foo/bar/ to
		specify directories, since foo/bar/ fails on NetBSD.
	(SETF ALIEN:EXTERN-ALIEN) works (instead of dying with
		undefined function SB-KERNEL:%SET-SAP-REF-32).
2001-02-08 15:08:37 +00:00
William Harold Newman a530bbe337 Initial revision 2000-09-18 01:26:16 +00:00