Re: [SUSPECTED-SPAM] Re: Re: Linux on Bochs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Rahul.
Luckily I got gcc-3.4.2 built using gcc-4.3.2 and also got bochs-2.2.6 built using gcc-3.4.2 and its working fine now..



On Mon, Dec 29, 2008 at 8:18 AM, Rahul Pydimukkala <prahul@xxxxxxxxxxxxxx> wrote:
On 00:38 Mon 29 Dec     , sahlot arvind wrote:
> Thanks guys.
> I see that bochs is already there with Ubuntu but since I need to enable
> debugging options I need to compile it from its source. I am trying to
> compile gcc-3.3.3 in order to compile bochs using that.
> I am again working on Fedora Core 10 since I was not getting compiled any
> version of gcc on Ubuntu.
> On Fedora Core 10, I have got gcc-4.3.2 which I am using to compile
> gcc-3.3.3 but I am getting compilation error listed below:
>
> -------------
> gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
> -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I. -I./. -I./config
> -I./../include ./read-rtl.c -o read-rtl.o
> In file included from ./read-rtl.c:25:
> ./rtl.h:132: warning: type of bit-field 'code' is a GCC extension
> ./rtl.h:135: warning: type of bit-field 'mode' is a GCC extension
> ./read-rtl.c: In function 'fatal_with_file_and_line':
> ./read-rtl.c:53: warning: traditional C rejects ISO C style function
> definitions
> ./read-rtl.c: In function 'read_rtx':
> ./read-rtl.c:653: error: lvalue required as increment operand
> gmake[1]: *** [read-rtl.o] Error 1
> gmake[1]: Leaving directory
> `/home/arvind/OperatingSystemEngineering/toolchain/gcc-3.3.3/gcc'
> gmake: *** [all-gcc] Error 2
> -------------
>
> What could be wrong and what should I do to build gcc-3.3.3?

It seems not poosible to build one version gcc from another version of gcc.
This is due to incompatibilities that arise due to changes in gcc releases.

There seems to be a difference between traditional C and ISO C.
The warning explains it all:

> ./read-rtl.c:53: warning: traditional C rejects ISO C style function
> definitions

One way to get around this is to change you build environment. Try setting
the variable CC in the make file to one of the below and see if it compiles
fine.

gcc -ansi -Wall -pedantic
gcc -traditional -Wall -pedantic



Another way would be what my debian is able to do for me:

# gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)


# apt-get build-dep gcc-3.3
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
 autoconf autoconf2.13 automake1.4 autotools-dev bison cpp-3.3 dejagnu doxygen expect-tcl8.3 flex gawk gcc-3.3 gcc-3.3-base gperf graphviz gsfonts-x11
 libgc-dev libgc1c2 libltdl3 libperl5.8 libtool lsb-release m4 realpath sharutils tcl8.3 tcl8.4 tk8.4 zlib1g-dev
The following packages will be upgraded:
 perl perl-base perl-modules
3 upgraded, 29 newly installed, 0 to remove and 297 not upgraded.
Need to get 20.4MB/21.4MB of archives.
After unpacking 41.8MB of additional disk space will be used.
Do you want to continue [Y/n]?









--
http://linuxexplained.blogspot.com

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux