<commit_before># Building the temporary system

You should login as `lfs`

## Part 1

if building on x64: (this was part of bin utils)

```
mkdir -pv /tools/lib
ln -sv lib /tools/lib64
```

- Bin Utils
- GCC
    - scripts:
        - `5/gcc/patch-mpfr-mpc-gmp.sh`
        - `5/gcc/toolchain.sh`
- Linux API Headers
    - non default steps:
        - `make mrproper`
        - `make INSTALL_HDR_PATH=dest headers_install`
        - `cp -rv dest/include/* /tools/include`
    - had some issues previously during automation, and had to remove this before removing the extracted files
        - `rm -rf linux-4.4.2/arch/arm64/boot/dts/include`
- GLibc

## Sanity Check 1

see script: `5/sanity-checks/1.sh`

## Part 2

- libstdc++
- Bin Utils (pass 2)
    - "re-adjusting"

- GCC (pass 2)
    - scripts:
        - `5/gcc/patch-limits.sh`
        - `5/gcc/toolchain.sh`
        - `5/gcc/patch-mpfr-mpc-gmp.sh`
    - `ln -sv gcc /tools/bin/cc`<commit_msg>move building for x64 commands before part 1<commit_after># Building the temporary system

You should login as `lfs`

if building on x64: (this was part of bin utils)
```
mkdir -pv /tools/lib
ln -sv lib /tools/lib64
```

## Part 1

- Bin Utils
- GCC
    - scripts:
        - `5/gcc/patch-mpfr-mpc-gmp.sh`
        - `5/gcc/toolchain.sh`
- Linux API Headers
    - non default steps:
        - `make mrproper`
        - `make INSTALL_HDR_PATH=dest headers_install`
        - `cp -rv dest/include/* /tools/include`
    - had some issues previously during automation, and had to remove this before removing the extracted files
        - `rm -rf linux-4.4.2/arch/arm64/boot/dts/include`
- GLibc

## Sanity Check 1

see script: `5/sanity-checks/1.sh`

## Part 2

- libstdc++
- Bin Utils (pass 2)
    - "re-adjusting"

- GCC (pass 2)
    - scripts:
        - `5/gcc/patch-limits.sh`
        - `5/gcc/toolchain.sh`
        - `5/gcc/patch-mpfr-mpc-gmp.sh`
    - `ln -sv gcc /tools/bin/cc`
{'fraction_non_alphanumeric': 0.1360332294911734, 'fraction_numerical': 0.02336448598130841, 'mean_word_length': 2.1746293245469523, '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': '3710193', 'n_tokens_mistral': 764, 'n_tokens_neox': 717, 'n_words': 196}