[haiku-development] Updating gcc

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: Haiku Development <haiku-development@xxxxxxxxxxxxx>
  • Date: Fri, 12 Jul 2013 15:52:43 -0700

Hi,

I'm still not clear on some of the basic procedures when building
a Haiku image.

I just updated my git, and am trying to compile.  I think I did all
the necessary './configure's and things (I have a "hybrid_config"
script that's supposed to do that), and then did a 'jam -q' in
the generated.x86gcc4 directory.  It fails.  This seems to be
the relevant output:

Link 
/boot/WORK/HAIKU_DEV/haiku/generated.x86gcc4/objects/haiku/x86/release/add-ons/kernel/busses/virtio/virtio_pci
 
/boot/WORK/HAIKU_DEV/haiku/generated.x86gcc4/objects/haiku/x86/release/add-ons/kernel/busses/virtio/virtio_pci.o:
 In function `uninit_bus(void*)':
virtio_pci.cpp:(.text+0x4d8): undefined reference to `operator delete[](void*)'
/boot/WORK/HAIKU_DEV/haiku/generated.x86gcc4/objects/haiku/x86/release/add-ons/kernel/busses/virtio/virtio_pci.o:
 In function `setup_interrupt(void*, unsigned short)':
virtio_pci.cpp:(.text+0xada): undefined reference to `operator new[](unsigned 
long, std::nothrow_t const&)'
collect2: error: ld returned 1 exit status

I'm assuming this means my development environment is
out of date, but I'm not sure how to fix this.

I downloaded the latest gcc4 zip from haiku-files.org and installed it,
but it hasn't cured anything. (I redid the hybrid_config too.)  I only
downloaded the compiler, so I'd guess the libraries need updating too.

What's the approved update procedure?

Thanks,

        -- Pete --

Other related posts: