Menu

#193 CVS (as of 28th October) does not compile with GCC 4.0.

open
nobody
Other (21)
7
2005-10-29
2005-10-29
No

Attempting to compile the current (as of the 28th) CVS
version of VBA does not appear to work with G++ 4.0.2
(on Ubuntu Linux (Breezy)). Compile GBA.cpp eats all
system resources, slowing the system (2200+ Athlon XP,
512MB RAM) to a crawl. It compiles under G++ 3.4.5.

Discussion

  • Stuart Andrew Moore

    • priority: 5 --> 7
     
  • Kalak

    Kalak - 2005-12-11

    Logged In: YES
    user_id=1402494

    Compiles under Fedora Core 4 gcc 4.0.2:
    [root@daishi ~]# gcc -v
    Using built-in specs.
    Target: i386-redhat-linux
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
    infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-
    checking=release --with-system-zlib --enable-__cxa_atexit --disable-
    libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c+
    +,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/
    java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
    Thread model: posix
    gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)

     
  • Rib Rdb

    Rib Rdb - 2005-12-14

    Logged In: YES
    user_id=518853

    I haven't tested it yet, but I believe the patch "[ 1292942 ] CPU emulation
    optimization patch" will fix this problem.
    Having a huge amount of RAM may also solve the problem.

     
  • Richard Quirk

    Richard Quirk - 2005-12-27

    Logged In: YES
    user_id=1244226

    Ubunto 5.10 uses gcc 4.0.2 20050808 (prerelease) (Ubuntu
    4.0.1-4ubuntu9) which seems older than the RedHat gcc
    version. Tested on my 1Gb machine, VBA didn't compile and
    gcc used up 1Gb mem + 1Gb swap. Ouch.

    After applying the armthumb-all-2.diff patch I can confirm
    that it compiles correctly.

     
  • Richard Quirk

    Richard Quirk - 2006-11-20

    Logged In: YES
    user_id=1244226
    Originator: NO

    GBA.cpp eats all the memory with GCC 4.1.2 and now the patch on 1292942 no longer applies.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.