* gdb 6.6 build fails on Solaris 9
@ 2007-06-22 17:04 Jonah Simandjuntak
2007-06-22 17:17 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Jonah Simandjuntak @ 2007-06-22 17:04 UTC (permalink / raw)
To: gdb
[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]
Hello,
I've been searching the archive, but couldn't find a solution to the problem below. I am compiling this on a SPARC Solaris 9.
Here is the output:
...
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include -I./../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o bfd.lo bfd.c
gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include -I./../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c bfd.c -o bfd.o
cc1: warnings being treated as errors
bfd.c: In function `_bfd_abort':
bfd.c:848: warning: `noreturn' function does return
*** Error code 1
make: Fatal error: Command failed for target `bfd.lo'
Current working directory /export/home/simandj/gdb-6.6/bfd
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/simandj/gdb-6.6/bfd
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /export/home/simandj/gdb-6.6/bfd
*** Error code 1
make: Fatal error: Command failed for target `all-bfd'
Current working directory /export/home/simandj/gdb-6.6
*** Error code 1
make: Fatal error: Command failed for target `all'
Any idea?
Thanks.
--Jonah
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdb 6.6 build fails on Solaris 9
2007-06-22 17:04 gdb 6.6 build fails on Solaris 9 Jonah Simandjuntak
@ 2007-06-22 17:17 ` Daniel Jacobowitz
2007-06-22 17:46 ` Jonah Simandjuntak
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-06-22 17:17 UTC (permalink / raw)
To: Jonah Simandjuntak, binutils; +Cc: gdb
Copying the binutils list, as that's where BFD is maintained.
On Fri, Jun 22, 2007 at 01:04:20PM -0400, Jonah Simandjuntak wrote:
> Hello,
>
> I've been searching the archive, but couldn't find a solution to the problem below. I am compiling this on a SPARC Solaris 9.
>
> Here is the output:
> ...
> /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include -I./../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o bfd.lo bfd.c
> gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include -I./../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c bfd.c -o bfd.o
> cc1: warnings being treated as errors
> bfd.c: In function `_bfd_abort':
> bfd.c:848: warning: `noreturn' function does return
> *** Error code 1
Sounds to me like your headers do not mark _exit as noreturn, and GCC
is not doing so automatically. I don't remember how this is supposed
to work, but I thought GCC would automatically add the attribute.
What version of gcc is this?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdb 6.6 build fails on Solaris 9
2007-06-22 17:17 ` Daniel Jacobowitz
@ 2007-06-22 17:46 ` Jonah Simandjuntak
2007-06-22 17:53 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Jonah Simandjuntak @ 2007-06-22 17:46 UTC (permalink / raw)
To: binutils, gdb
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
On Fri, Jun 22, 2007 at 01:17:39PM -0400, Daniel Jacobowitz wrote:
> What version of gcc is this?
>
> --
> Daniel Jacobowitz
> CodeSourcery
This is the output of gcc:
Thread model: posix
gcc version 3.0
Should I use the latest gcc then?
TIA.
--Jonah
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdb 6.6 build fails on Solaris 9
2007-06-22 17:46 ` Jonah Simandjuntak
@ 2007-06-22 17:53 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-06-22 17:53 UTC (permalink / raw)
To: Jonah Simandjuntak; +Cc: binutils, gdb
On Fri, Jun 22, 2007 at 01:46:32PM -0400, Jonah Simandjuntak wrote:
> On Fri, Jun 22, 2007 at 01:17:39PM -0400, Daniel Jacobowitz wrote:
> > What version of gcc is this?
> >
> > --
> > Daniel Jacobowitz
> > CodeSourcery
>
> This is the output of gcc:
> Thread model: posix
> gcc version 3.0
>
> Should I use the latest gcc then?
That's a very old version - I believe it's from 2000. I would
recommend you get a newer compiler.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-22 17:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-22 17:04 gdb 6.6 build fails on Solaris 9 Jonah Simandjuntak
2007-06-22 17:17 ` Daniel Jacobowitz
2007-06-22 17:46 ` Jonah Simandjuntak
2007-06-22 17:53 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox