Compiler build tools (2012)

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

ol boy
Super MS/Extra'er
Posts: 1532
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Re: Compiler build tools (2012)

Post by ol boy »

okay, well.. got it sorted with Cygwin 32 bit on Win11 64 bit.

I found the saved downloaded files on an older laptop, I was able to copy that file over to a thumb drive and used those for the install prompts in the x86 setup in Win11.

What a pain that was.
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
piledriver
Super MS/Extra'er
Posts: 1681
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Compiler build tools (2012)

Post by piledriver »

Cool.

Did not work in Debian 11. Looked for missing libs and came up dry.
Probably operator error.

Same issue with latest Ubuntu 22.04 on WSL2 on win 11, missing multiarch libs, although arch-test says kernel supports i386 etc.
Wine, amusingly, works fine ;-)

Worked fine in Mageia 9/Cauldron with zero fuss.
No issues with Opensuse Tumbleweed, builds fine.

Microsofts setup for linux seems limited, although v2 allows installing real Linux distros
VMs are the easy way to go, stick Ubuntu in a vm, easy setup.
On a modern machine it only takes moments to install.
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
Yabanjinsaan
MS/Extra Newbie
Posts: 18
Joined: Wed Dec 23, 2020 10:54 am
Location: France
Contact:

Re: Compiler build tools (2012)

Post by Yabanjinsaan »

Hi are there's tools still available for download? I tried the link from the first post without success.
Regards
Image
piledriver
Super MS/Extra'er
Posts: 1681
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Compiler build tools (2012)

Post by piledriver »

I just redownloaded all the tools without issue.
try again.
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
ol boy
Super MS/Extra'er
Posts: 1532
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Re: Compiler build tools (2012)

Post by ol boy »

http://www.msextra.com/tools still works for me.

**edit** the page works put the links don't.. uhm..
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
jsmcortina
Site Admin
Posts: 39622
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Compiler build tools (2012)

Post by jsmcortina »

Which links don't work?

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
ol boy
Super MS/Extra'er
Posts: 1532
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Re: Compiler build tools (2012)

Post by ol boy »

I'm not sure if its some fire wall thing for me at work but I tried the windows 2012 tool and linux DL and neither link started the download zip..
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
Yabanjinsaan
MS/Extra Newbie
Posts: 18
Joined: Wed Dec 23, 2020 10:54 am
Location: France
Contact:

Re: Compiler build tools (2012)

Post by Yabanjinsaan »

Hi thanks for all answers.
Chrome dont want to download it.
Microsoft edge did the job.
👍
Image
jstrickrott
MS/Extra Newbie
Posts: 1
Joined: Fri Mar 31, 2023 12:16 pm

Re: Compiler build tools (2012)

Post by jstrickrott »

Hi All:

With regards to tool building environments, I find Docker is so far the best way to create cross developments build systems. Below is a Docker script for Ubuntu 18:04 LTS that will setup a build environment with the msquirt tools. I tested on ms2extra-pre3.4rc12.zip code as it is the latest version with source.

Here is how you use:
1. Setup Docker on your favorite environment (Windows/Linux/Mac)
2. Copy below script into file Dockerfile (will attach as well)
3. Download and install ms2extra-pre3.4rc12.zip and s12buildtools-linux32bit-2012-10-24.tar.gz files into the same directory as the Dockerfile
4. CD to that directory and build container image with the command “ docker build -t msquirt . “ After a time it will create a docker image named msquirt.
5. Run the image with command “docker run -it -p 22:22 -p 4444:4444 -p 5555:5555 --rm msquirt

You will now be in the container and can cd to /home/msquirt/ms2extra-pre3.4rc12/ms2extra and run make release. Type exit to get out.

Hope this helps. I have most of the same in a Mageia 8 container but can’t get the zlib32 libraries needed installed. Will update with Ubuntu 20.04 LTS and 22 at some point.

Regards
--Jeff S
================================ Copy into Dockerfile with no extension ================

Code: Select all

# Notes
# Sets up an environment for megasquirt work with 32bit gcc libraries and m68hc11 tools
# starts to add rsync and other VS dependent tools to use VS Code as an IDE
# but missing gdb and gdbdebug as we can't debug the 68hc11 code.
# We will add more to make this complete

# Container can be accessed by starting docker or kept running and use ssh on port 22 with use msquirt to build/execute
# commands
#To build container
#    docker build -t msquirt .
#
#To run continer in interactive mode
#   docker run  -it -p 22:22 -p 4444:4444 -p 5555:5555 --rm msquirt
FROM ubuntu:18.04

RUN dpkg --add-architecture i386
RUN apt-get -q update
RUN useradd -rm -d /home/msquirt -s /bin/bash -g root -G sudo -u 1000 msquirt
RUN  echo 'msquirt:msquirt' | chpasswd

RUN apt-get -q update && \
      DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get install -q -y --no-install-recommends \
      nano \
      unzip \
      zip \
      openssh-server \
      sudo \
     iproute2 \
     iputils-ping \
     build-essential \
      rsync

RUN apt-get -q update && \
      DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get install -q -y --no-install-recommends \
      libc6-dev:i386 libx11-dev:i386 libxext-dev:i386 lib32gcc-7-dev zlib1g-dev:i386

RUN apt-get -q update && \
      DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get install -q -y --no-install-recommends \
      gcc-multilib && \
      apt-get clean &&\
rm -rf /var/lib/apt/lists/* \

RUN mkdir /var/run/sshd
## root as password root, you can change this
RUN echo 'root:root' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
RUN service ssh start

# Modify ssh for x11 forwarding
RUN sed -i "s/^.*X11Forwarding.*$/X11Forwarding yes/" /etc/ssh/sshd_config \
    && sed -i "s/^.*X11UseLocalhost.*$/X11UseLocalhost no/" /etc/ssh/sshd_config

ADD s12buildtools-linux32bit-2012-10-24.tar.gz /home/msquirt
ADD ms2extra-pre3.4rc12.zip /home/msquirt
#RUN tar xvf /home/msquirt/s12buildtools-linux32bit-2012-10-24.tar.gz
RUN cd / && tar xvf /home/msquirt/s12buildtools-linux32bit-2012-10-24/tools.tar.gz
RUN cd /home/msquirt && unzip ms2extra-pre3.4rc12.zip
RUN cp /home/msquirt/ms2extra-pre3.4rc12/ms2l* /home/msquirt/ms2extra-pre3.4rc12/ms2extra/utils

#USER msquirt
WORKDIR /home/msquirt

## SSH
EXPOSE 22
## Connect to Program
EXPOSE 5555
## Debug Remotely
EXPOSE 4444

# keep container running
ENTRYPOINT sudo service ssh restart && bash

LABEL Name=msquirt Version=0.0.1
simon k
MS/Extra Newbie
Posts: 22
Joined: Sat Jan 07, 2012 1:02 am

Re: Compiler build tools (2012)

Post by simon k »

For anyone who wants to use with 64 bit Ubuntu, here's what I needed to do - it needed i386 support

The symptom was that when running make, or m68hc11-elf-gcc directly, it'd give me "No such file or directory", and nothing else

Code: Select all

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt install zlib1g-dev:i386
then it worked...
Post Reply