Compiling Ubuntu 12.04

81 views
Skip to first unread message

cesaraugust...@richmond.edu

unread,
Feb 16, 2013, 1:53:46 AM2/16/13
to arm...@googlegroups.com
Hi. First of all, congratulations for the project. I've checked your webpage and it is, at least, an interesting project!
Looking over different forums, blogs (and Google replies) it is one of the ARM emulators top references.

Well, by this time I wasn't able to test by myself because I'm not able to compile it... I felt a lack of a tutorial or step-by-step on the "how-to's". I think it's an interesting suggestion (I would myself help on doing one, right after I make mine run).
Anyway, after downloading the referenced dependencies (libc6, libgcc1, libgtkmm-3.0-1, libglibmm-2.4-1c2a, libsigc++0c2, libxml++2.6-2. Those were the ones available via apt-get), I unzipped the ARMware-0.4.7z into my home folder. Inside the ARMWare folder, simply typing "make", I got the following message:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Compiling /home/cesar/ARMware/ARMware/obj/ARMware.o (custom mode)
In file included from ARMware.cpp:21:0:
Log.hpp: In member function ‘virtual int ARMware::SplittedLogStreamBuf::overflow(int)’:
Log.hpp:105:23: warning: conversion to ‘char’ from ‘int’ may alter its value [-Wconversion]
In file included from ARMware.cpp:22:0:
ARMware.hpp: At global scope:
ARMware.hpp:372:30: error: declaration of ‘typedef struct ARMware::AlignNeeds<(ARMware::DataWidthEnum)2u> ARMware::DataWidthTraits<(ARMware::DataWidthEnum)2u>::AlignNeeds’ [-fpermissive]
ARMware.hpp:358:10: error: changes meaning of ‘AlignNeeds’ from ‘struct ARMware::AlignNeeds<(ARMware::DataWidthEnum)2u>’ [-fpermissive]
ARMware.hpp:383:35: error: declaration of ‘typedef struct ARMware::AlignNeeds<(ARMware::DataWidthEnum)1u> ARMware::DataWidthTraits<(ARMware::DataWidthEnum)1u>::AlignNeeds’ [-fpermissive]
ARMware.hpp:352:10: error: changes meaning of ‘AlignNeeds’ from ‘struct ARMware::AlignNeeds<(ARMware::DataWidthEnum)1u>’ [-fpermissive]
ARMware.hpp:394:30: error: declaration of ‘typedef struct ARMware::AlignNeeds<(ARMware::DataWidthEnum)0u> ARMware::DataWidthTraits<(ARMware::DataWidthEnum)0u>::AlignNeeds’ [-fpermissive]
ARMware.hpp:346:10: error: changes meaning of ‘AlignNeeds’ from ‘struct ARMware::AlignNeeds<(ARMware::DataWidthEnum)0u>’ [-fpermissive]
make[2]: *** [/home/cesar/ARMware/ARMware/obj/ARMware.o] Error 1
make[2]: Leaving directory `/home/cesar/ARMware/ARMware/src'
make[1]: *** [produce_objfile] Error 1
make[1]: Leaving directory `/home/cesar/ARMware/ARMware'
make: *** [all] Error 2
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Do you have a clue on what can it be?
As an extra, my Ubuntu is 32-bit and it's running on VMWare Player.

Thanks in advance,
Cesar.

Wei Hu

unread,
Feb 17, 2013, 12:00:08 AM2/17/13
to arm...@googlegroups.com
Dear Cesar,

ARMware is written in the time of GCC 4.0, and different GCC versions have different restrictions and minor behavior changes.
Hence, if you use latest GCC to build, you will encounter these warnings or errors.

If you use GCC 4.0 to build, I think you will see no warnings/errors, because I clean all of them under GCC 4.0.
I think it is not hard to port ARMware to newer GCC, you can try it.
(I am too busy to finish this task...)

Wei.
Reply all
Reply to author
Forward
0 new messages