Can you run `raco pkg show`? It looks like `raco pkg install` thinks you have "main-distribution" and "main-distribution-test" installed already.
At Fri, 5 Dec 2014 14:04:47 -0800, John Clements wrote: > Urg... more interesting problems. I pulled and tried to rebuild, and things > went pear-shaped. > > 1) compilation failed because it couldn't find the 'racket' collection, but > I noticed that it was referring to a nonexistent path, presumably because I > had moved the root of the installation. Has that always been a bad idea? > Dunno. > 2) I removed the racket/src/build directory, and built again. This time it > failed because it detected anomalies in my racket/etc/config.rktd: > > cp "../COPYING-libscheme.txt" "../COPYING_LESSER.txt" "../COPYING.txt" > "/Users/clements/plt/racket/share"/ > /Applications/Xcode.app/Contents/Developer/usr/bin/make pkgs-catalog > racket/bin/racket -U -G build/config racket/src/pkgs-catalog.rkt --link > racket/share/pkgs-catalog pkgs > Finding packages > Cataloging package at-exp-lib > Cataloging package racket-doc > Cataloging package racket-lib > Cataloging package plt-services > Cataloging package base > Cataloging package racket-test > Cataloging package racket-benchmarks > Cataloging package racket-index > racket/bin/racket -U -G build/config racket/src/pkgs-config.rkt > pkgs-catalog: config file exists, but does not have a definition of > `catalogs' that starts as expected > config file: racket/etc/config.rktd > expected initial element: "../share/pkgs-catalog" > possible solution: delete the config file > context...: > /Users/clements/plt/racket/src/pkgs-config.rkt: [running body] > make[2]: *** [pkgs-catalog] Error 1 > make[1]: *** [plain-in-place] Error 2 > make: *** [in-place] Error 2 > > 3) I deleted the file, and ran again. This time, compilation finished > almost instantly, and nothing was compiled (Log appears at bottom). > > 4) Then, I tried running make again, and it stopped even faster. > > 5) Then, I tried running raco setup, and I got a build with literally > thousands of errors of the form > > standard-module-name-resolver: collection not found > for module path: (submod at-exp reader) > collection: "at-exp" > in collection directories: > /Users/clements/Library/Racket/development/collects > /Users/clements/plt/racket/collects > ... [189 additional linked and package directories] > context...: > show-collection-err > standard-module-name-resolver > /Users/clements/plt/racket/collects/compiler/cm.rkt:353:23 > /Users/clements/plt/racket/collects/syntax/modcode.rkt:62:2: reader > /Users/clements/plt/racket/collects/syntax/modcode.rkt:264:5: compile-one > /Users/clements/plt/racket/collects/compiler/cm.rkt:315:0: compile-zo* > /Users/clements/plt/racket/collects/compiler/cm.rkt:519:26 > /Users/clements/plt/racket/collects/compiler/cm.rkt:511:42 > /Users/clements/plt/racket/collects/compiler/cm.rkt:476:0: > maybe-compile-zo > /Users/clements/plt/racket/collects/compiler/cm.rkt:591:2: do-check > /Users/clements/plt/racket/collects/compiler/cm.rkt:630:15 > > /Users/clements/plt/racket/collects/compiler/../racket/private/map.rkt:113:23: > loop > /Users/clements/plt/racket/collects/compiler/cm.rkt:591:2: do-check > /Users/clements/plt/racket/collects/compiler/cm.rkt:630:15 > > /Users/clements/plt/racket/collects/compiler/../racket/private/map.rkt:113:23: > loop > /Users/clements/plt/racket/collects/compiler/cm.rkt:591:2: do-check... > > 6) at this point, I gave up and checked out a fresh copy. > > John > > > pcp067879pcs:~/plt (git)-[master]- clements> make > if [ "" = "" ] ; \ > then /Applications/Xcode.app/Contents/Developer/usr/bin/make > plain-in-place PKGS="main-distribution main-distribution-test" ; \ > else /Applications/Xcode.app/Contents/Developer/usr/bin/make > cpus-in-place CPUS="" PKGS="main-distribution main-distribution-test" ; fi > /Applications/Xcode.app/Contents/Developer/usr/bin/make base > mkdir -p build/config > echo '#hash((links-search-files . ()))' > build/config/config.rktd > mkdir -p racket/src/build > /Applications/Xcode.app/Contents/Developer/usr/bin/make > racket/src/build/Makefile > make[3]: `racket/src/build/Makefile' is up to date. > cd racket/src/build; > /Applications/Xcode.app/Contents/Developer/usr/bin/make reconfigure > /Applications/Xcode.app/Contents/Developer/usr/bin/make Makefile > make[4]: `Makefile' is up to date. > cd racket/src/build; > /Applications/Xcode.app/Contents/Developer/usr/bin/make > SELF_RACKET_FLAGS="-G `cd ../../../build/config; pwd`" > /Applications/Xcode.app/Contents/Developer/usr/bin/make 3m > cd racket; /Applications/Xcode.app/Contents/Developer/usr/bin/make 3m > /Applications/Xcode.app/Contents/Developer/usr/bin/make cgc > /Applications/Xcode.app/Contents/Developer/usr/bin/make common > /Applications/Xcode.app/Contents/Developer/usr/bin/make g-c > cd sgc; /Applications/Xcode.app/Contents/Developer/usr/bin/make > ../libmzgc.a > make[9]: `../libmzgc.a' is up to date. > /Applications/Xcode.app/Contents/Developer/usr/bin/make foreign-stuff > cd ../foreign; /Applications/Xcode.app/Contents/Developer/usr/bin/make all > /Applications/Xcode.app/Contents/Developer/usr/bin/make foreign.o > make[10]: `foreign.o' is up to date. > /Applications/Xcode.app/Contents/Developer/usr/bin/make libffi_ON > /Applications/Xcode.app/Contents/Developer/usr/bin/make libffi/libffi.la > make[11]: `libffi/libffi.la' is up to date. > /Applications/Xcode.app/Contents/Developer/usr/bin/make dynlib > cd dynsrc; /Applications/Xcode.app/Contents/Developer/usr/bin/make dynlib > /Applications/Xcode.app/Contents/Developer/usr/bin/make ../mzdyn.o > make[9]: `../mzdyn.o' is up to date. > /Applications/Xcode.app/Contents/Developer/usr/bin/make ../starter > make[9]: `../starter' is up to date. > /Applications/Xcode.app/Contents/Developer/usr/bin/make mzlibrary > cd src; /Applications/Xcode.app/Contents/Developer/usr/bin/make all > /Applications/Xcode.app/Contents/Developer/usr/bin/make mzobjects > make[9]: Nothing to be done for `mzobjects'. > /Applications/Xcode.app/Contents/Developer/usr/bin/make libracket.a > make[8]: `libracket.a' is up to date. > /Applications/Xcode.app/Contents/Developer/usr/bin/make racketcgc > make[7]: `racketcgc' is up to date. > cd gc2; /Applications/Xcode.app/Contents/Developer/usr/bin/make all > /Applications/Xcode.app/Contents/Developer/usr/bin/make check-sdep > ../racketcgc -G /Users/clements/plt/build/config -cqu > ../../../racket/gc2/check-sdep.rkt > /Applications/Xcode.app/Contents/Developer/usr/bin/make xsrc/precomp.h > make[7]: `xsrc/precomp.h' is up to date. > /Applications/Xcode.app/Contents/Developer/usr/bin/make xobjects > make[7]: Nothing to be done for `xobjects'. > /Applications/Xcode.app/Contents/Developer/usr/bin/make ../racket3m > make[7]: `../racket3m' is up to date. > cd dynsrc; /Applications/Xcode.app/Contents/Developer/usr/bin/make dynlib3m > /Applications/Xcode.app/Contents/Developer/usr/bin/make ../mzdyn3m.o > make[7]: `../mzdyn3m.o' is up to date. > cd gc2; /Applications/Xcode.app/Contents/Developer/usr/bin/make ../racket3m > make[6]: `../racket3m' is up to date. > /Applications/Xcode.app/Contents/Developer/usr/bin/make gracket-3m > cd gracket; /Applications/Xcode.app/Contents/Developer/usr/bin/make 3m > /Applications/Xcode.app/Contents/Developer/usr/bin/make resources > : > cd gc2; /Applications/Xcode.app/Contents/Developer/usr/bin/make 3m > /Applications/Xcode.app/Contents/Developer/usr/bin/make ../gracket3m > /Applications/Xcode.app/Contents/Developer/usr/bin/make > ../GRacket3m.app/Contents/MacOS/GRacket3m > make[9]: `../GRacket3m.app/Contents/MacOS/GRacket3m' is up to date. > cd racket/src/build; > /Applications/Xcode.app/Contents/Developer/usr/bin/make install > SELF_RACKET_FLAGS="-G `cd ../../../build/config; pwd`" PLT_SETUP_OPTIONS=" " > /Applications/Xcode.app/Contents/Developer/usr/bin/make install-3m > /Applications/Xcode.app/Contents/Developer/usr/bin/make install-3m-common > /Applications/Xcode.app/Contents/Developer/usr/bin/make install-common-first > mkdir -p "/Users/clements/plt/racket/bin" > "/Users/clements/plt/racket/collects" "/Users/clements/plt/racket/doc" > "/Users/clements/plt/racket/lib" "/Users/clements/plt/racket/include" > "/Users/clements/plt/racket/lib" "/Users/clements/plt/racket/share" > "/Users/clements/plt/racket/etc" > "/Users/clements/plt/racket/share/applications" > "/Users/clements/plt/racket/man" > cd racket; /Applications/Xcode.app/Contents/Developer/usr/bin/make > install-3m > /Applications/Xcode.app/Contents/Developer/usr/bin/make headers > ./racketcgc -cqu ../../racket/mkincludes.rkt > "/Users/clements/plt/racket/include" "../../racket" . > Making /Users/clements/plt/racket/include > Done. > /Applications/Xcode.app/Contents/Developer/usr/bin/make osx-install > /Applications/Xcode.app/Contents/Developer/usr/bin/make unix-install > cd ..; rm -f "/Users/clements/plt/racket/bin/racketcgc" > cd ..; rm -f "/Users/clements/plt/racket/bin/racket" > cd ..; cp racket/starter "/Users/clements/plt/racket/lib/starter" > cp ../../racket/dynsrc/starter-sh . > cd ..; cp racket/starter-sh "/Users/clements/plt/racket/lib/starter-sh" > cd ..; strip "/Users/clements/plt/racket/lib/starter" > ./racketcgc -cu "../../racket/collects-path.rkt" > "/Users/clements/plt/racket/lib/starter" ../collects ../etc > cd ..; echo 'CC=gcc' > "/Users/clements/plt/racket/lib/buildinfo" > cd ..; echo 'CFLAGS=-g -O2 -Wall -DOS_X -D_DARWIN_UNLIMITED_SELECT > -pthread' >> "/Users/clements/plt/racket/lib/buildinfo" > cd ..; echo 'OPTIONS= -fno-common -DUSE_SENORA_GC' >> > "/Users/clements/plt/racket/lib/buildinfo" > cd ..; echo 'MZOPTIONS=' >> "/Users/clements/plt/racket/lib/buildinfo" > cd ..; echo "LDFLAGS= -pthread" >> > "/Users/clements/plt/racket/lib/buildinfo" > cd ..; echo 'LIBS=-ldl -lm -liconv ' >> > "/Users/clements/plt/racket/lib/buildinfo" > rm -f /Users/clements/plt/racket/lib/Racket.framework/Racket > rm -rf /Users/clements/plt/racket/lib/Racket.framework/Versions/6.1.1.5 > rm -rf /Users/clements/plt/racket/lib/Racket.framework/Versions/6.1.1.5_3m > if [ yes = yes ] ; then rm -rf > /Users/clements/plt/racket/lib/Racket.framework ; fi > mkdir -p /Users/clements/plt/racket/lib > /Applications/Xcode.app/Contents/Developer/usr/bin/make osx-install-3m > /Applications/Xcode.app/Contents/Developer/usr/bin/make unix-install-3m > cd ..; cp racket/racket3m "/Users/clements/plt/racket/bin/racket" > cd ..; strip "/Users/clements/plt/racket/bin/racket" > /Applications/Xcode.app/Contents/Developer/usr/bin/make > unix-no-install-libs-3m > : > cd ..; cp racket/mzdyn3m.o "/Users/clements/plt/racket/lib/mzdyn3m.o" > ./racket3m -cu "../../racket/collects-path.rkt" > "/Users/clements/plt/racket/bin/racket" ../collects ../etc > mkdir -p > "/Users/clements/plt/racket/lib/Racket.framework/Versions/6.1.1.5_3m" > cp Racket.framework/Versions/6.1.1.5_3m/Racket > /Users/clements/plt/racket/lib/Racket.framework/Versions/6.1.1.5_3m/ > /usr/bin/install_name_tool -change > "@executable_path/Racket.framework/Versions/6.1.1.5_3m/Racket" > ""@executable_path/../lib/"Racket.framework/Versions/6.1.1.5_3m/Racket" > "/Users/clements/plt/racket/bin/racket" > strip "/Users/clements/plt/racket/bin/racket" > /Applications/Xcode.app/Contents/Developer/usr/bin/make osx-install-3m-final > /Applications/Xcode.app/Contents/Developer/usr/bin/make > unix-install-3m-final > : > ln -s Versions/6.1.1.5_3m/Racket > /Users/clements/plt/racket/lib/Racket.framework/ > /Applications/Xcode.app/Contents/Developer/usr/bin/make install-gracket-3m > cd gracket; /Applications/Xcode.app/Contents/Developer/usr/bin/make > install-3m > /Applications/Xcode.app/Contents/Developer/usr/bin/make install-wx_mac > /Applications/Xcode.app/Contents/Developer/usr/bin/make install-common > : > cd ..; rm -rf "/Users/clements/plt/racket/lib/GRacketCGC.app" > cd ..; rm -rf "/Users/clements/plt/racket/lib/GRacket.app" > /Applications/Xcode.app/Contents/Developer/usr/bin/make install-wx_mac-3m > cd ..; cp -r "gracket/GRacket3m.app" > "/Users/clements/plt/racket/lib/GRacket.app" > ../racket/racket3m -G /Users/clements/plt/build/config -cqu > "../../gracket/../mac/rename-app.rkt" > "/Users/clements/plt/racket/lib/GRacket.app" "GRacket3m" "GRacket" > /usr/bin/install_name_tool -change > "@executable_path/../../../../racket/Racket.framework/Versions/6.1.1.5_3m/Racket > " > ""@executable_path/../../../"Racket.framework/Versions/6.1.1.5_3m/Racket" > "/Users/clements/plt/racket/lib/GRacket.app/Contents/MacOS/GRacket" > ../racket/racket3m -G /Users/clements/plt/build/config -cu > "../../gracket/../racket/collects-path.rkt" > "/Users/clements/plt/racket/lib/GRacket.app/Contents/MacOS/GRacket" > "../../../../collects" ../../../../etc > strip "/Users/clements/plt/racket/lib/GRacket.app/Contents/MacOS/GRacket" > /Applications/Xcode.app/Contents/Developer/usr/bin/make > install-wx_mac-3m-final > : > /Applications/Xcode.app/Contents/Developer/usr/bin/make > install-common-middle > /Applications/Xcode.app/Contents/Developer/usr/bin/make no-run > : > /Applications/Xcode.app/Contents/Developer/usr/bin/make > install-gracket-post-collects > cd gracket; /Applications/Xcode.app/Contents/Developer/usr/bin/make > install-post-collects > /Applications/Xcode.app/Contents/Developer/usr/bin/make > install-wx_mac-post-collects > cd ..; rm -rf /Users/clements/plt/racket/lib/Starter.app > cd ..; cp -r gracket/Starter.app /Users/clements/plt/racket/lib/. > /Applications/Xcode.app/Contents/Developer/usr/bin/make lib-finish > if [ "" = "" ]; then \ > echo "/Users/clements/plt/racket/lib"; \ > fi > /Users/clements/plt/racket/lib > racket/racket3m -X "/Users/clements/plt/racket/collects" -G > "/Users/clements/plt/racket/etc" -G /Users/clements/plt/build/config -N > "raco" -l- setup --no-user > raco setup: version: 6.1.1.5 [3m] > raco setup: installation name: 6.1.1.5 > raco setup: variants: 3m > raco setup: main collects: /Users/clements/plt/racket/collects > raco setup: collects paths: > raco setup: /Users/clements/plt/racket/collects > raco setup: main pkgs: /Users/clements/plt/racket/share/pkgs > raco setup: pkgs paths: > raco setup: /Users/clements/plt/racket/share/pkgs > raco setup: /Users/clements/Library/Racket/6.1.1.5/pkgs > raco setup: links files: > raco setup: /Users/clements/Library/Racket/6.1.1.5/links.rktd > raco setup: main docs: /Users/clements/plt/racket/doc > raco setup: --- updating info-domain tables --- > raco setup: --- pre-installing collections --- > raco setup: --- installing foreign libraries --- > raco setup: --- installing shared files --- > raco setup: --- compiling collections --- > raco setup: making: <collects>/racket > raco setup: --- parallel build using 8 jobs --- > raco setup: 7 making: <collects>/compiler > raco setup: 6 making: <collects>/raco > raco setup: 5 making: <collects>/racket > raco setup: 4 making: <collects>/acks > raco setup: 3 making: <collects>/data > raco setup: 2 making: <collects>/db > raco setup: 2 making: <collects>/db/private > raco setup: 2 making: <collects>/db/private/generic > raco setup: 1 making: <collects>/dynext > raco setup: 0 making: <collects>/ffi > raco setup: 1 making: <collects>/file > raco setup: 4 making: <collects>/info > raco setup: 4 making: <collects>/info-domain > raco setup: 4 making: <collects>/json > raco setup: 4 making: <collects>/launcher > raco setup: 0 making: <collects>/ffi/unsafe > raco setup: 3 making: <collects>/data/private > raco setup: 0 making: <collects>/ffi/unsafe/private > raco setup: 3 making: <collects>/net > raco setup: 0 making: <collects>/openssl > raco setup: 0 making: <collects>/openssl/private > raco setup: 2 making: <collects>/db/private/sqlite3 > raco setup: 0 making: <collects>/pkg > raco setup: 2 making: <collects>/planet > raco setup: 1 making: <collects>/file/private > raco setup: 1 making: <collects>/reader > raco setup: 1 making: <collects>/reader/lang > raco setup: 1 making: <collects>/realm > raco setup: 1 making: <collects>/s-exp > raco setup: 1 making: <collects>/s-exp/lang > raco setup: 6 making: <collects>/setup > raco setup: 1 making: <collects>/syntax > raco setup: 2 making: <collects>/planet/private > raco setup: 3 making: <collects>/unstable > raco setup: 2 making: <collects>/version > raco setup: 4 making: <collects>/xml > raco setup: 4 making: <collects>/xml/private > raco setup: 0 making: <collects>/pkg/private > raco setup: 1 making: <collects>/syntax/parse > raco setup: 7 making: <collects>/compiler/private > raco setup: 1 making: <collects>/syntax/parse/experimental > raco setup: 1 making: <collects>/syntax/parse/experimental/private > raco setup: 1 making: <collects>/syntax/parse/private > raco setup: 1 making: <collects>/syntax/private > raco setup: 1 making: <collects>/syntax/private/util > raco setup: 1 making: <collects>/syntax/unsafe > raco setup: 5 making: <collects>/racket/base > raco setup: 5 making: <collects>/racket/base/lang > raco setup: 5 making: <collects>/racket/contract > raco setup: 5 making: <collects>/racket/contract/private > raco setup: 5 making: <collects>/racket/gui > raco setup: 5 making: <collects>/racket/kernel > raco setup: 5 making: <collects>/racket/lang > raco setup: 5 making: <collects>/racket/load > raco setup: 5 making: <collects>/racket/load/lang > raco setup: 5 making: <collects>/racket/match > raco setup: 5 making: <collects>/racket/place > raco setup: 5 making: <collects>/racket/place/private > raco setup: 5 making: <collects>/racket/private > raco setup: 6 making: <collects>/setup/commands > raco setup: 5 making: <collects>/racket/signature > raco setup: 5 making: <collects>/racket/signature/lang > raco setup: 5 making: <collects>/racket/unit > raco setup: 5 making: <collects>/racket/unit/lang > raco setup: 6 making: <collects>/setup/infotab > raco setup: 5 making: <collects>/racket/unsafe > raco setup: 6 making: <collects>/setup/infotab/lang > raco setup: 6 making: <collects>/setup/private > raco setup: --- creating launchers --- > raco setup: launcher: <console-bin>/raco > raco setup: --- installing man pages --- > raco setup: --- installing collections --- > raco setup: --- post-installing collections --- > raco setup: --- checking package dependencies --- > /Applications/Xcode.app/Contents/Developer/usr/bin/make install-common-last > /Applications/Xcode.app/Contents/Developer/usr/bin/make fix-paths > if [ "" != "" ]; then \ > if [ "" = "" ]; then \ > racket/racketcgc -G /Users/clements/plt/build/config -u \ > "../../collects/setup/unixstyle-install.rkt" \ > make-install-destdir-fix "../.." \ > "/Users/clements/plt/racket/bin" > "/Users/clements/plt/racket/collects" "/Users/clements/plt/racket/doc" > "/Users/clements/plt/racket/lib" "/Users/clements/plt/racket/include" > "/Users/clements/plt/racket/lib" "/Users/clements/plt/racket/share" > "/Users/clements/plt/racket/etc" > "/Users/clements/plt/racket/share/applications" > "/Users/clements/plt/racket/man" "yes"; \ > fi \ > fi > /Applications/Xcode.app/Contents/Developer/usr/bin/make > preserve-raco-pkg-default-scope > : > cp "../COPYING-libscheme.txt" "../COPYING_LESSER.txt" "../COPYING.txt" > "/Users/clements/plt/racket/share"/ > /Applications/Xcode.app/Contents/Developer/usr/bin/make pkgs-catalog > racket/bin/racket -U -G build/config racket/src/pkgs-catalog.rkt --link > racket/share/pkgs-catalog pkgs > Finding packages > racket/bin/racket -U -G build/config racket/src/pkgs-config.rkt > Writing racket/etc/config.rktd > racket/bin/racket -N raco -l- raco pkg install --skip-installed --scope > installation --deps search-auto racket-lib main-distribution > main-distribution-test > Resolving "racket-lib" via > file:///Users/clements/plt/racket/share/pkgs-catalog > raco setup: version: 6.1.1.5 [3m] > raco setup: installation name: development > raco setup: variants: 3m > raco setup: main collects: /Users/clements/plt/racket/collects > raco setup: collects paths: > raco setup: /Users/clements/plt/racket/collects > raco setup: main pkgs: /Users/clements/plt/racket/share/pkgs > raco setup: pkgs paths: > raco setup: /Users/clements/plt/racket/share/pkgs > raco setup: /Users/clements/Library/Racket/development/pkgs > raco setup: links files: > raco setup: /Users/clements/plt/racket/share/links.rktd > raco setup: /Users/clements/Library/Racket/development/links.rktd > raco setup: main docs: /Users/clements/plt/racket/doc > raco setup: --- updating info-domain tables --- > raco setup: --- pre-installing collections --- > raco setup: --- installing foreign libraries --- > raco setup: --- installing shared files --- > raco setup: --- compiling collections --- > raco setup: --- parallel build using 8 jobs --- > raco setup: --- creating launchers --- > raco setup: --- installing man pages --- > raco setup: --- installing collections --- > raco setup: --- post-installing collections --- > _________________________ > Racket Developers list: > http://lists.racket-lang.org/dev _________________________ Racket Developers list: http://lists.racket-lang.org/dev