OSX tool build warnings->errors with gdb

Daron Chabot daron.chabot at gmail.com
Mon Jun 15 10:42:21 UTC 2009


Andrei,

I've stumbled over this before, cross-compiling gdb for RTEMS on os x
(10.4). Check out this thread on the user list for the solution(s):
    http://www.rtems.com/ml/rtems-users/2008/april/msg00163.html


-- dc


On Mon, Jun 15, 2009 at 12:41 AM, Andrei Chichak<groups at chichak.ca> wrote:
> Hi all,
>
> I got DarwinPorts and wget installed, ran Alan Cudmore's script and
> everything was going very well until the build blew up trying to build
> gdb.
>
> There seems to be an issue with the DEF_VEC_P macro in vec.h when
> compiling m68k-tdep.c.  Checking the 'net it looks like it has been
> seen before with gdb 6.8 for various architectures.
>
> I get the messages:
>
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_last’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_index’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_space’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_quick_push’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_pop’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_truncate’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_replace’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_quick_insert’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_ordered_remove’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_unordered_remove’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_block_remove’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h: In function
> ‘VEC_breakpoint_p_safe_grow’:
> /Users/andreichichak/Projects/gdb-6.8/gdb/breakpoint.h:456: warning:
> format not a string literal, argument types not checked
>
> which wouldn't be much of a problem, but the compile is set up with -
> Werror so these warnings, and others, are now errors.
>
> I suspect that someone has dealt with this before.
>
> Anybody?
>
> Thanks,
> Andrei
>
> On 2009-June-11, at 3:03 PM, Alan Cudmore wrote:
>
>> I'm still refining this script, but it I have it working on OS X,
>> Linux, and Cygwin so far.
>>
>>> Hello all,
>>>
>>> We go sick and tired of being sick and tired and bought a bunch of
>>> Macs (perfectly good UNIX boxen).
>>>
>>> I am in need of scripts to build the tools and compilers for m68k
>>> hosted on a Mac.
>>>
>>> I could run the whole thing on a virtual XP box, but I'd rather eat
>>> worms^H^H^H^H^H^H^H^H^H just have it work.
>>>
>>> Thanks
>>> Andrei
>
>
> ---------------------
> Andrei Chichak
>
> Systems Developer
> CBF Systems Inc.
> 4-038 NINT Innovation Centre
> 11421 Saskatchewan Drive
> Edmonton, Alberta
> T6G 2M9
>
> Phone: 780-628-2072
> Skype: andrei.chichak
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>



More information about the users mailing list