Page 1 of 2

Ubuntu install tutorial

PostPosted: Tue Mar 09, 2021 6:00 am
by marty1982
Hi all !
I want to be a Model 3 part of the family and i need a good Ubuntu 2020 tutorial so i can install model 3.

Is there any good guide?.

Thanks a lot to this great community!.

Re: Ubuntu install tutorial

PostPosted: Mon Mar 15, 2021 3:09 pm
by rokfpoewrkcpoqwkcp
Read down from here,
http://www.supermodel3.com/Forum/viewtopic.php?f=7&t=311#p17244

You'll want these too if not already installed,

sudo apt install build-essential
sudo apt install make

Re: Ubuntu install tutorial

PostPosted: Sat Mar 27, 2021 5:10 am
by new_holmes
I tried the described procedure on my system (Kubuntu 20.10 64bits) and got this:

dominique@HP-Pavilion-15:~/model3emu-code$ make
Generating dependencies: Src/CPU/PowerPC/PPCDisasm.cpp -> obj/PPCDisasm.d
Compiling : Src/CPU/PowerPC/PPCDisasm.cpp -> obj/PPCDisasm.o
cc1plus: internal compiler error: Erreur de segmentation
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
make: *** [Makefiles/Rules.inc:278 : obj/PPCDisasm.o] Erreur 1



Any idea?

Re: Ubuntu install tutorial

PostPosted: Sat Mar 27, 2021 6:57 am
by TheOldDragon
new_holmes wrote:I tried the described procedure on my system (Kubuntu 20.10 64bits) and got this:

<snip>

Any idea?


I'm guessing it's an issue with your complier installation..

I just tried [SVN r858] on a brand new Ubuntu 20.10 installation* - same instructions as linked above - and had no issues [just did a quick trial with Scud Race]...
[*I installed Ubuntu, did the usual apt update / upgrade steps, then installed build-essentials and the other dependencies listed].

What do you get when you run:
cc --version
c++ --version
g++ --version

For all, I get
cc [or /c++/g++] (Ubuntu 10.2.0-13ubuntu1) 10.2.0

Re: Ubuntu install tutorial

PostPosted: Sat Mar 27, 2021 7:20 am
by new_holmes
There is indeed most certainly a problem with the compilers installation. I tried on another Linux computer and everything went smoothly.
On the problematic computer, the results of your tests are:

dominique@HP-Pavilion-15:~/model3emu-code$ cc --version
cc (Ubuntu 10.2.0-13ubuntu1) 10.2.0
c++ (Ubuntu 10.2.0-13ubuntu1) 10.2.0
g++--versionĀ : commande introuvable


I made a reinstall of the build-essential package. Now g++ is OK:
g++ --version
g++ (Ubuntu 10.2.0-13ubuntu1) 10.2.0

However I still get the segmentation fault. This computer got a RAM error a few months ago. I had to remove one of the memory module. I did not reinstall the system.
Could something be corrupted? Could it be there is not enough memory now (4 Gb now)?

Re: Ubuntu install tutorial

PostPosted: Sat Mar 27, 2021 9:58 am
by rokfpoewrkcpoqwkcp
did you do
Code: Select all
make clean

before a new
Code: Select all
make

Re: Ubuntu install tutorial

PostPosted: Sat Mar 27, 2021 10:05 am
by new_holmes
No, but I just tried.
Same result.

Re: Ubuntu install tutorial

PostPosted: Sat Mar 27, 2021 4:07 pm
by rokfpoewrkcpoqwkcp
You're missing this part ?

Kubuntu.png
Kubuntu.png (64.67 KiB) Viewed 351 times


It's not creating the output directories ?

Re: Ubuntu install tutorial

PostPosted: Sat Mar 27, 2021 9:37 pm
by Bart
I haven't tried building under Linux in years but I think you should specify the UNIX Makefile explicitly:

Code: Select all
make -f Makefiles/Makefile.UNIX

Re: Ubuntu install tutorial

PostPosted: Sun Mar 28, 2021 12:27 am
by new_holmes
I removed the whole directory and retried.
Yes, output directories are created:

dominique@HP-Pavilion-15:~/model3emu-code$ make -f Makefiles/Makefile.UNIX
Creating directory : bin
Creating directory : obj
Generating dependencies: Src/CPU/PowerPC/PPCDisasm.cpp -> obj/PPCDisasm.d
Compiling : Src/CPU/PowerPC/PPCDisasm.cpp -> obj/PPCDisasm.o
cc1plus: internal compiler error: Erreur de segmentation
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
make: *** [Makefiles/Rules.inc:278 : obj/PPCDisasm.o] Erreur 1