Hello all,
I'm wanting to be able to build c++ applications on a Leopard machine (it is PPC) but have the binaries able to execute on Tiger (intel or PPC). When my build machine was running Tiger, this was no problem.
Now, even the simplest program involving malloc fails:
void main() {
// headers above and some printfs here removed for clarity
void *p = malloc( 1024 );
}
gcc test.c -o test
This simplest of programs of course runs without incident on Leopard. If I copy it to a machine running Tiger (PPC or intel), it crashes, with this in the crashreporter:
<snip other stuff out here>
Rosetta Version: 17.26
Args: ./testsize
Exception: EXC_BAD_ACCESS (0x0001)
Thread 0: Crashed (0xb7fff9c0, 0xb80a564f)
0x9012e090: /usr/lib/libSystem.B.dylib : __malloc_initialize + 0x34
0x90002a5c: /usr/lib/libSystem.B.dylib : _malloc + 0x30
0x90118d44: /usr/lib/libSystem.B.dylib : _localeconv_l + 0x64
0x9000bb10: /usr/lib/libSystem.B.dylib : ___vfprintf$LDBL128 + 0x40
0x9010466c: /usr/lib/libSystem.B.dylib : _vfprintf_l$LDBL128 + 0x7c
0x90106a60: /usr/lib/libSystem.B.dylib : _printf$LDBL128 + 0x7c
0x00001eb4: ./testsize : _main + 0x2c
0x00001e34: ./testsize : start + 0x44
0x00000000: ./testsize : + 0x0
I have been googling like a madman for several hours and can't find the solution, which I'm sure is simple. I should point out that I'm relatively new to os x programming, but an experienced programmer... Any tips about gotchas building on Leopard but wanting to target Tiger would be appreciated.
fa, austin tx
I'm wanting to be able to build c++ applications on a Leopard machine (it is PPC) but have the binaries able to execute on Tiger (intel or PPC). When my build machine was running Tiger, this was no problem.
Now, even the simplest program involving malloc fails:
void main() {
// headers above and some printfs here removed for clarity
void *p = malloc( 1024 );
}
gcc test.c -o test
This simplest of programs of course runs without incident on Leopard. If I copy it to a machine running Tiger (PPC or intel), it crashes, with this in the crashreporter:
<snip other stuff out here>
Rosetta Version: 17.26
Args: ./testsize
Exception: EXC_BAD_ACCESS (0x0001)
Thread 0: Crashed (0xb7fff9c0, 0xb80a564f)
0x9012e090: /usr/lib/libSystem.B.dylib : __malloc_initialize + 0x34
0x90002a5c: /usr/lib/libSystem.B.dylib : _malloc + 0x30
0x90118d44: /usr/lib/libSystem.B.dylib : _localeconv_l + 0x64
0x9000bb10: /usr/lib/libSystem.B.dylib : ___vfprintf$LDBL128 + 0x40
0x9010466c: /usr/lib/libSystem.B.dylib : _vfprintf_l$LDBL128 + 0x7c
0x90106a60: /usr/lib/libSystem.B.dylib : _printf$LDBL128 + 0x7c
0x00001eb4: ./testsize : _main + 0x2c
0x00001e34: ./testsize : start + 0x44
0x00000000: ./testsize : + 0x0
I have been googling like a madman for several hours and can't find the solution, which I'm sure is simple. I should point out that I'm relatively new to os x programming, but an experienced programmer... Any tips about gotchas building on Leopard but wanting to target Tiger would be appreciated.
fa, austin tx