<commit_before>cccgo
=====

Cross-compile CGO

    export PATH="$PATH:/mnt/crosstool-ng/.build/x86_64-apple-darwin10/buildtools/bin/"

symlink the linker to ld in the path

CC=x86_64-build_unknown-linux-gnu-gcc GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build -x -work -ldflags="-extld=x86_64-build_unknown-linux-gnu-gcc"

CC=x86_64-build_unknown-linux-gnu-gcc GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 /usr/local/go/pkg/tool/linux_amd64/6l -v -o cgoecho -L $WORK -extld=x86_64-build_unknown-linux-gnu-gcc $WORK/_/mnt/crosstool-ng/cgoecho.a

Current error:
host link: '' -m64 -gdwarf-2 -Wl,-no_pie,-pagezero_size,4000000 -o cgoecho output/000000.o output/000001.o output/go.o -lpthread

CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -x -work -o windows.exe -ldflags="-extld=$CC"

-c call graph didn't help
-n symbol table didn't help<commit_msg>Update README with cgo instructions<commit_after>cccgo
=====

Cross-compile CGO

    export PATH="$PATH:/home/ubuntu/x-tools/x86_64-apple-darwin10/bin/:/usr/local/go/bin/"

symlink the linker to ld in the path

CC=x86_64-apple-darwin10-clang CGO_CFLAGS="-I/home/ubuntu/MacOSX10.6.sdk/usr/include/ -I." CGO_LDFLAGS="-L/home/ubuntu/MacOSX10.6.sdk/usr/lib/ -L/home/ubuntu/x-tools/x86_64-apple-darwin10/lib/gcc/x86_64-apple-darwin10/4.2.1/" GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build -x -work -ldflags="-extld=x86_64-apple-darwin10-clang"

mkdir -p output

Current error:
host link: '' -m64 -gdwarf-2 -Wl,-no_pie,-pagezero_size,4000000 -o cgoecho output/000000.o output/000001.o output/go.o -lpthread

CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -x -work -o windows.exe -ldflags="-extld=$CC"

-c call graph didn't help
-n symbol table didn't help

/usr/bin/ld: unrecognized option '-pagezero_size'
/usr/bin/ld: use the --help option for usage information

"/home/ubuntu/x-tools/x86_64-apple-darwin10/bin/x86_64-apple-darwin10-ld" -dynamic -arch x86_64 -macosx_version_min 10.6.0 
  -syslibroot /home/ubuntu/x-tools/x86_64-apple-darwin10/x86_64-apple-darwin10/sysroot 
  -o /tmp/go-build611660756/runtime/cgo/_obj/_cgo_.o -lcrt1.10.6.o 
  -L/home/ubuntu/MacOSX10.6.sdk/usr/lib/
  -L/home/ubuntu/x-tools/x86_64-apple-darwin10/x86_64-apple-darwin10/sysroot/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64
  -L/home/ubuntu/x-tools/x86_64-apple-darwin10/x86_64-apple-darwin10/sysroot/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64
  -L/home/ubuntu/x-tools/x86_64-apple-darwin10/x86_64-apple-darwin10/sysroot/usr/lib/i686-apple-darwin10/4.2.1
  -L/home/ubuntu/x-tools/x86_64-apple-darwin10/x86_64-apple-darwin10/sysroot/usr/lib/gcc/i686-apple-darwin10/4.2.1
  -L/home/ubuntu/x-tools/x86_64-apple-darwin10/x86_64-apple-darwin10/sysroot/usr/lib/gcc/i686-apple-darwin10/4.2.1
  -L/home/ubuntu/x-tools/x86_64-apple-darwin10/x86_64-apple-darwin10/sysroot/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1 
  -L/home/ubuntu/x-tools/x86_64-apple-darwin10/x86_64-apple-darwin10/sysroot/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../.. 
  /tmp/go-build611660756/runtime/cgo/_obj/_cgo_main.o /tmp/go-build611660756/runtime/cgo/_obj/_cgo_export.o /tmp/go-build611660756/runtime/cgo/_obj/cgo.cgo2.o /tmp/go-build611660756/runtime/cgo/_obj/gcc_darwin_amd64.o /tmp/go-build611660756/runtime/cgo/_obj/gcc_setenv.o /tmp/go-build611660756/runtime/cgo/_obj/gcc_util.o /tmp/go-build611660756/runtime/cgo/_obj/gcc_amd64.o -lpthread -lSystem -lgcc
{'fraction_non_alphanumeric': 0.16055846422338568, 'fraction_numerical': 0.11954624781849912, 'mean_word_length': 4.013119533527697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3886377', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1528, 'n_words': 175}