I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors. I started with the latest bz2 from here: http://files.pharo.org/vm/src/vm-unix-sources/blessed/. I setup my tool environment (Ubuntu). The README.md says do a make in the platforms dir but that failed. Recommended to me was the git repo: https://github.com/pharo-project/pharo-vm/blob/master/README.md So, I ran: git clone --depth=1 https://github.com/pharo-project/pharo-vm.git cd build ./build.sh It pulled the image, generated sources then started to make the results when I got this error. What should I do now? -- thanks, Robert /home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:3418:1: error: conflicting types for âconcretizeMoveAwRâ concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) ^ /home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:457:14: note: previous declaration of âconcretizeMoveAwRâ was here static sqInt concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) NoDbgRegParms; ^
On 13 Oct 2015, at 00:29, Robert Withers <robert.w.withers@gmail.com> wrote:
I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors.
I started with the latest bz2 from here: http://files.pharo.org/vm/src/vm-unix-sources/blessed/. I setup my tool environment (Ubuntu). The README.md says do a make in the platforms dir but that failed.
Recommended to me was the git repo: https://github.com/pharo-project/pharo-vm/blob/master/README.md
So, I ran: git clone --depth=1 https://github.com/pharo-project/pharo-vm.git
cd build
./build.sh
It pulled the image, generated sources then started to make the results when I got this error.
What should I do now?
Hi Robert, errors like that are often a consequence of differing gcc / clang versions (yes, weâre using a somewhat outdated version). What version do you have installed on your system? Cheers, Max
-- thanks, Robert
/home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:3418:1: error: conflicting types for âconcretizeMoveAwRâ concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) ^ /home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:457:14: note: previous declaration of âconcretizeMoveAwRâ was here static sqInt concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) NoDbgRegParms; ^
Yes, I already had gcc 4.9 I think installed, before running Pharo's ubuntu script. I'll remove it and rerun the script. thanks, bro, Robert On 10/13/2015 02:25 AM, Max Leske wrote:
On 13 Oct 2015, at 00:29, Robert Withers <robert.w.withers@gmail.com> wrote:
I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors.
I started with the latest bz2 from here: http://files.pharo.org/vm/src/vm-unix-sources/blessed/. I setup my tool environment (Ubuntu). The README.md says do a make in the platforms dir but that failed.
Recommended to me was the git repo: https://github.com/pharo-project/pharo-vm/blob/master/README.md
So, I ran: git clone --depth=1 https://github.com/pharo-project/pharo-vm.git
cd build
./build.sh
It pulled the image, generated sources then started to make the results when I got this error.
What should I do now?
Hi Robert,
errors like that are often a consequence of differing gcc / clang versions (yes, weâre using a somewhat outdated version). What version do you have installed on your system?
Cheers, Max
-- thanks, Robert
/home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:3418:1: error: conflicting types for âconcretizeMoveAwRâ concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) ^ /home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:457:14: note: previous declaration of âconcretizeMoveAwRâ was here static sqInt concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) NoDbgRegParms; ^
On 10/13/2015 02:25 AM, Max Leske wrote:
On 13 Oct 2015, at 00:29, Robert Withers <robert.w.withers@gmail.com> wrote:
I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors.
I started with the latest bz2 from here: http://files.pharo.org/vm/src/vm-unix-sources/blessed/. I setup my tool environment (Ubuntu). The README.md says do a make in the platforms dir but that failed.
Recommended to me was the git repo: https://github.com/pharo-project/pharo-vm/blob/master/README.md
So, I ran: git clone --depth=1 https://github.com/pharo-project/pharo-vm.git
cd build
./build.sh
It pulled the image, generated sources then started to make the results when I got this error.
What should I do now?
Hi Robert,
errors like that are often a consequence of differing gcc / clang versions (yes, weâre using a somewhat outdated version). What version do you have installed on your system?
It took me some time to get back to this issue. I checked versions and gcc 4.9.2 and cmake 3.0.2. I don't have clang installed. Should I have? thanks, Robert
Cheers, Max
-- thanks, Robert
/home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:3418:1: error: conflicting types for âconcretizeMoveAwRâ concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) ^ /home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:457:14: note: previous declaration of âconcretizeMoveAwRâ was here static sqInt concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) NoDbgRegParms; ^
On 13 Oct 2015, at 11:17, Robert Withers <robert.w.withers@gmail.com> wrote:
On 10/13/2015 02:25 AM, Max Leske wrote:
On 13 Oct 2015, at 00:29, Robert Withers <robert.w.withers@gmail.com> wrote:
I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors.
I started with the latest bz2 from here: http://files.pharo.org/vm/src/vm-unix-sources/blessed/. I setup my tool environment (Ubuntu). The README.md says do a make in the platforms dir but that failed.
Recommended to me was the git repo: https://github.com/pharo-project/pharo-vm/blob/master/README.md
So, I ran: git clone --depth=1 https://github.com/pharo-project/pharo-vm.git
cd build
./build.sh
It pulled the image, generated sources then started to make the results when I got this error.
What should I do now?
Hi Robert,
errors like that are often a consequence of differing gcc / clang versions (yes, weâre using a somewhat outdated version). What version do you have installed on your system?
It took me some time to get back to this issue. I checked versions and gcc 4.9.2 and cmake 3.0.2. I don't have clang installed. Should I have?
No, I donât think so, sorry. I mixed up CMake and clang in my head.
thanks, Robert
Cheers, Max
-- thanks, Robert
/home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:3418:1: error: conflicting types for âconcretizeMoveAwRâ concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) ^ /home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:457:14: note: previous declaration of âconcretizeMoveAwRâ was here static sqInt concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) NoDbgRegParms; ^
No worries. I think I am going to stop this issue. My image is running, so I can work on what I need to to keep focus on the goal. I may need to do this later, but for now it's good. thanks, Robert On 10/13/2015 05:18 AM, Max Leske wrote:
On 13 Oct 2015, at 11:17, Robert Withers <robert.w.withers@gmail.com <mailto:robert.w.withers@gmail.com>> wrote:
On 10/13/2015 02:25 AM, Max Leske wrote:
On 13 Oct 2015, at 00:29, Robert Withers <robert.w.withers@gmail.com <mailto:robert.w.withers@gmail.com>> wrote:
I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors.
I started with the latest bz2 from here: http://files.pharo.org/vm/src/vm-unix-sources/blessed/. I setup my tool environment (Ubuntu). The README.md says do a make in the platforms dir but that failed.
Recommended to me was the git repo: https://github.com/pharo-project/pharo-vm/blob/master/README.md
So, I ran: git clone --depth=1 https://github.com/pharo-project/pharo-vm.git
cd build
./build.sh
It pulled the image, generated sources then started to make the results when I got this error.
What should I do now?
Hi Robert,
errors like that are often a consequence of differing gcc / clang versions (yes, weâre using a somewhat outdated version). What version do you have installed on your system?
It took me some time to get back to this issue. I checked versions and gcc 4.9.2 and cmake 3.0.2. I don't have clang installed. Should I have?
No, I donât think so, sorry. I mixed up CMake and clang in my head.
thanks, Robert
Cheers, Max
-- thanks, Robert
/home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:3418:1: error: conflicting types for âconcretizeMoveAwRâ concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) ^ /home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:457:14: note: previous declaration of âconcretizeMoveAwRâ was here static sqInt concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) NoDbgRegParms; ^
Hello. I compile on Ubuntu too. Is the default Pharo VM compiled with gcc 4.9 ? I compile the it with gcc 4.6 and I am not sure it is possible out of the box with gcc 4.8+ as they changed some default settings in the compiler. This is the script I use to setup my ubuntu (though depending on your build and plugins you may not need all): sudo apt-get install cmake zip bash-completion ruby git xz-utils debhelper devscripts sudo apt-get install libc6-dev:i386 libasound2:i386 libasound2-dev:i386 libasound2-plugins:i386 libssl-dev:i386 libssl0.9.8:i386 libfreetype6-dev:i386 libx11-dev:i386 libsm-dev:i386 libice-dev:i386 sudo apt-get install build-essential gcc-multilib g++ sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx:i386 sudo apt-get install binutils:i386 g++-4.6:i386 gcc-4.6:i386 sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so /usr/lib/i386-linux-gnu/libGL.so sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/mesa/libGL.so sudo apt-get install uuid-dev:i386 sudo apt-get install subversion Sometimes I also need redefine the symbolic links for gcc to use 4.6 instead of the latest installed (gcc-multilib gets me confused). Now in my experience the easiest was to create a 32 bits Ubuntu VM and then execute this script and run the VM on it. Have fun, Clement 2015-10-13 12:05 GMT+02:00 Robert Withers <robert.w.withers@gmail.com>:
No worries. I think I am going to stop this issue. My image is running, so I can work on what I need to to keep focus on the goal. I may need to do this later, but for now it's good.
thanks, Robert
On 10/13/2015 05:18 AM, Max Leske wrote:
On 13 Oct 2015, at 11:17, Robert Withers <robert.w.withers@gmail.com
<mailto:robert.w.withers@gmail.com>> wrote:
On 10/13/2015 02:25 AM, Max Leske wrote:
On 13 Oct 2015, at 00:29, Robert Withers <robert.w.withers@gmail.com
<mailto:robert.w.withers@gmail.com>> wrote:
I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors.
I started with the latest bz2 from here: http://files.pharo.org/vm/src/vm-unix-sources/blessed/. I setup my tool environment (Ubuntu). The README.md says do a make in the platforms dir but that failed.
Recommended to me was the git repo: https://github.com/pharo-project/pharo-vm/blob/master/README.md
So, I ran: git clone --depth=1 https://github.com/pharo-project/pharo-vm.git
cd build
./build.sh
It pulled the image, generated sources then started to make the results when I got this error.
What should I do now?
Hi Robert,
errors like that are often a consequence of differing gcc / clang versions (yes, weâre using a somewhat outdated version). What version do you have installed on your system?
It took me some time to get back to this issue. I checked versions and gcc 4.9.2 and cmake 3.0.2. I don't have clang installed. Should I have?
No, I donât think so, sorry. I mixed up CMake and clang in my head.
thanks, Robert
Cheers, Max
-- thanks, Robert
/home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:3418:1: error: conflicting types for âconcretizeMoveAwRâ concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) ^ /home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:457:14: note: previous declaration of âconcretizeMoveAwRâ was here static sqInt concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) NoDbgRegParms; ^
Hey Clément, it works! I had to delete the gcc soft link and relink to 4.6 then it completed. I ran the generator.image on it and it seems to do well. thanks so much! Robert On 10/13/2015 07:22 AM, Clément Bera wrote:
Hello.
I compile on Ubuntu too.
Is the default Pharo VM compiled with gcc 4.9 ? I compile the it with gcc 4.6 and I am not sure it is possible out of the box with gcc 4.8+ as they changed some default settings in the compiler.
This is the script I use to setup my ubuntu (though depending on your build and plugins you may not need all):
sudo apt-get install cmake zip bash-completion ruby git xz-utils debhelper devscripts sudo apt-get install libc6-dev:i386 libasound2:i386 libasound2-dev:i386 libasound2-plugins:i386 libssl-dev:i386 libssl0.9.8:i386 libfreetype6-dev:i386 libx11-dev:i386 libsm-dev:i386 libice-dev:i386 sudo apt-get install build-essential gcc-multilib g++ sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx:i386 sudo apt-get install binutils:i386 g++-4.6:i386 gcc-4.6:i386 sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so /usr/lib/i386-linux-gnu/libGL.so sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/mesa/libGL.so sudo apt-get install uuid-dev:i386 sudo apt-get install subversion
Sometimes I also need redefine the symbolic links for gcc to use 4.6 instead of the latest installed (gcc-multilib gets me confused).
Now in my experience the easiest was to create a 32 bits Ubuntu VM and then execute this script and run the VM on it.
Have fun,
Clement
2015-10-13 12:05 GMT+02:00 Robert Withers <robert.w.withers@gmail.com <mailto:robert.w.withers@gmail.com>>:
No worries. I think I am going to stop this issue. My image is running, so I can work on what I need to to keep focus on the goal. I may need to do this later, but for now it's good.
thanks, Robert
On 10/13/2015 05:18 AM, Max Leske wrote:
On 13 Oct 2015, at 11:17, Robert Withers <robert.w.withers@gmail.com <mailto:robert.w.withers@gmail.com> <mailto:robert.w.withers@gmail.com <mailto:robert.w.withers@gmail.com>>> wrote:
On 10/13/2015 02:25 AM, Max Leske wrote:
On 13 Oct 2015, at 00:29, Robert Withers <robert.w.withers@gmail.com <mailto:robert.w.withers@gmail.com> <mailto:robert.w.withers@gmail.com <mailto:robert.w.withers@gmail.com>>> wrote:
I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors.
I started with the latest bz2 from here: http://files.pharo.org/vm/src/vm-unix-sources/blessed/. I setup my tool environment (Ubuntu). The README.md says do a make in the platforms dir but that failed.
Recommended to me was the git repo: https://github.com/pharo-project/pharo-vm/blob/master/README.md
So, I ran: git clone --depth=1 https://github.com/pharo-project/pharo-vm.git
cd build
./build.sh
It pulled the image, generated sources then started to make the results when I got this error.
What should I do now?
Hi Robert,
errors like that are often a consequence of differing gcc / clang versions (yes, weâre using a somewhat outdated version). What version do you have installed on your system?
It took me some time to get back to this issue. I checked versions and gcc 4.9.2 and cmake 3.0.2. I don't have clang installed. Should I have?
No, I donât think so, sorry. I mixed up CMake and clang in my head.
thanks, Robert
Cheers, Max
-- thanks, Robert
/home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:3418:1: error: conflicting types for âconcretizeMoveAwRâ concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) ^ /home/robert/.local/share/Pharo/pharo-vm/src/vm/cogit.c:457:14: note: previous declaration of âconcretizeMoveAwRâ was here static sqInt concretizeMoveAwR(AbstractInstruction * self_in_concretizeMoveAwR) NoDbgRegParms; ^
On Tue, Oct 13, 2015 at 6:29 AM, Robert Withers <robert.w.withers@gmail.com> wrote:
I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors.
hi Robert, Good to see your success building the vm. btw, for any vm related discussion, its a good idea to also copy to [vm-dev] list. http://lists.squeakfoundation.org/mailman/listinfo/vm-dev cheers -ben
Alright, I'll keep that in mind. thanks, Robert On 10/13/2015 09:58 AM, Ben Coman wrote:
On Tue, Oct 13, 2015 at 6:29 AM, Robert Withers <robert.w.withers@gmail.com> wrote:
I am trying to build the vm and I got an error during make, listed at the bottom is one item that had error, but there were many conflicting types errors.
hi Robert,
Good to see your success building the vm. btw, for any vm related discussion, its a good idea to also copy to [vm-dev] list. http://lists.squeakfoundation.org/mailman/listinfo/vm-dev
cheers -ben
participants (4)
-
Ben Coman -
Clément Bera -
Max Leske -
Robert Withers