Ubuntu bionic mbed-os-5.10.3 gcc 15.6.3.1 fails build, well everything really

Is there a known fix for this horror or do I need to use an antique VM with ubuntu 12 or something.

Ubuntu 10.04.1 installed from iso.

mbed-cli whines urllib3 is not installed when it is because who doesn’t love python issues installing broken modules because that’s the python way.
[mbed] WARNING: Unable to auto-install required Python modules.
The mbed OS tools in this program require the following Python modules: urllib3[secure]
pip install -r requirements.txt
Collecting git+https://github.com/armmbed/manifest-tool.git@v1.4.6 (from -r requirements.txt (line 19))
Cloning GitHub - PelionIoT/manifest-tool: A tool for creating and parsing update manifests (to v1.4.6) to /tmp/pip-bcyxNs-build
Collecting colorama==0.3.9 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/db/c8/7dcf9dbcb22429512708fe3a547f8b6101c0d02137acbd892505aee57adf/colorama-0.3.9-py2.py3-none-any.whl
Collecting pyserial<=3.4,>=3 (from -r requirements.txt (line 2))
… way too much junk …
Installing collected packages: colorama, pyserial, prettytable, MarkupSafe, Jinja2, intelhex, six, junit-xml, pyYAML, idna, ipaddress, enum34, asn1crypto, pycparser, cffi, cryptography, pyOpenSSL, certifi, urllib3, chardet, requests, monotonic, fasteners, appdirs, mbed-ls, pyelftools, websocket-client, sortedcontainers, intervaltree, future, pyusb, pyOCD, mbed-host-tests, lockfile, funcsigs, pbr, mock, mbed-greentea, beautifulsoup4, fuzzywuzzy, functools32, jsonschema, python-dotenv, python-dateutil, mbed-cloud-sdk, yattag, lxml, py, futures, trollius, logbook, pyshark-legacy, jsonmerge, semver, mbed-flasher, icetea, ecdsa, pyasn1, pyparsing, asn1ate, setuptools, protobuf, manifest-tool
Segmentation fault (core dumped)

As for urllib3.

pip show urllib3
Name: urllib3
Version: 1.24.1
Summary: HTTP library with thread-safe connection pooling, file post, and more.
Home-page: https://urllib3.readthedocs.io/
Author: Andrey Petrov
Author-email: andrey.petrov@shazow.net
License: MIT

I have tried building new and imported projects and all fail link, to wit the following.

Link: mbed-os-example-blinky
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: error: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/crt0.o: Conflicting CPU architectures 13/1
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/crt0.o
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: error: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/libc.a(lib_a-setjmp.o): Conflicting CPU architectures 13/1
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/libc.a(lib_a-setjmp.o)
collect2: error: ld returned 1 exit status
[ERROR] /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: error: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/crt0.o: Conflicting CPU architectures 13/1
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/crt0.o
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: error: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/libc.a(lib_a-setjmp.o): Conflicting CPU architectures 13/1
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/libc.a(lib_a-setjmp.o)
collect2: error: ld returned 1 exit status
/usr/bin/python -u /home/marian/src/mbed/dtest/mbed-os/tools/make.py -t GCC_ARM -m DISCO_F769NI --source . --build ./BUILD/DISCO_F769NI/GCC_ARM -v
Building project dtest (DISCO_F769NI, GCC_ARM)
Scan: dtest
Scan: env
Macros: -DDEVICE_SPI=1 -DDEVICE_I2C=1 -DDEVICE_EMAC=1 -DTARGET_DISCO_F769NI -D__MBED__=1 -DDEVICE_I2CSLAVE=1 -D__FPU_PRESENT=1 -DDEVICE_PORTOUT=1 -DUSBHOST_OTHER -DDEVICE_PORTINOUT=1 -D__MBED_CMSIS_RTOS_CM -DTARGET_STM32F7 -DDEVICE_SERIAL_ASYNCH=1 -D__CMSIS_RTOS -DTOOLCHAIN_GCC -DDEVICE_I2C_ASYNCH=1 -DARM_MATH_CM7 -DTARGET_CORTEX_M -DTARGET_LIKE_CORTEX_M7 -DDEVICE_RTC=1 -DDEVICE_ANALOGOUT=1 -DMBED_BUILD_TIMESTAMP=1542437243.04 -DTARGET_M7 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_LPTICKER=1 -DDEVICE_PWMOUT=1 -DDEVICE_INTERRUPTIN=1 -DTARGET_CORTEX -DTARGET_STM32F769 -DTRANSACTION_QUEUE_SIZE_SPI=2 -DDEVICE_STDIO_MESSAGES=1 -D__CORTEX_M7 -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DDEVICE_PORTIN=1 -DTARGET_RELEASE -DTARGET_STM -DDEVICE_USTICKER=1 -DDEVICE_TRNG=1 -DTARGET_LIKE_MBED -DTARGET_RTOS_M4_M7 -DDEVICE_SLEEP=1 -DTOOLCHAIN_GCC_ARM -DDEVICE_CAN=1 -DTARGET_STM32F769NI -DDEVICE_SPISLAVE=1 -DDEVICE_ANALOGIN=1 -DDEVICE_SERIAL=1 -DDEVICE_FLASH=1 -DTARGET_STM32F769xI -DUSB_STM_HAL -DTARGET_STM_EMAC
Link: dtest
Preproc: arm-none-eabi-cpp -E -P ./mbed-os/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/device/TOOLCHAIN_GCC_ARM/STM32F769xI.ld -Wl,–gc-sections -Wl,–wrap,main -Wl,–wrap,_malloc_r -Wl,–wrap,_free_r -Wl,–wrap,_realloc_r -Wl,–wrap,_memalign_r -Wl,–wrap,_calloc_r -Wl,–wrap,exit -Wl,–wrap,atexit -Wl,-n -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=softfp -o ./BUILD/DISCO_F769NI/GCC_ARM/.link_script.ld
[DEBUG] Return: 0
Link: arm-none-eabi-gcc @./BUILD/DISCO_F769NI/GCC_ARM/.link_options.txt
[DEBUG] Return: 1
[DEBUG] Errors: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: error: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/crt0.o: Conflicting CPU architectures 13/1
[DEBUG] Errors: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/crt0.o
[DEBUG] Errors: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: error: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/libc.a(lib_a-setjmp.o): Conflicting CPU architectures 13/1
[DEBUG] Errors: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/libc.a(lib_a-setjmp.o)
[DEBUG] Errors: collect2: error: ld returned 1 exit status
Traceback (most recent call last):
File “/home/marian/src/mbed/dtest/mbed-os/tools/make.py”, line 293, in
ignore=options.ignore
File “/home/marian/src/mbed/dtest/mbed-os/tools/build_api.py”, line 562, in build_project
res, _ = toolchain.link_program(resources, build_path, name)
File “/home/marian/src/mbed/dtest/mbed-os/tools/toolchains/init.py”, line 633, in link_program
self.link(elf, objects, libraries, lib_dirs, linker_script)
File “/home/marian/src/mbed/dtest/mbed-os/tools/hooks.py”, line 34, in wrapper
res = function(t_self, *args, **kwargs)
File “/home/marian/src/mbed/dtest/mbed-os/tools/toolchains/gcc.py”, line 264, in link
self.default_cmd(cmd)
File “/home/marian/src/mbed/dtest/mbed-os/tools/toolchains/init.py”, line 662, in default_cmd
raise ToolException(_stderr)
ToolException: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: error: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/crt0.o: Conflicting CPU architectures 13/1
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/crt0.o
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: error: /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/libc.a(lib_a-setjmp.o): Conflicting CPU architectures 13/1
/usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/6.3.1/…/…/…/arm-none-eabi/lib/libc.a(lib_a-setjmp.o)
collect2: error: ld returned 1 exit status