i383-elf-gdb build help

Dongsheng Wang dongsheng at gmail.com
Thu Sep 29 11:10:42 PDT 2011


Thanks, Ryan,

Have never done that, but I will give it a try.

ds

On Thu, Sep 29, 2011 at 1:21 AM, Ryan Schmidt <ryandesign at macports.org>wrote:

> On Sep 28, 2011, at 14:09, Dongsheng Wang wrote:
>
> > It seems i386-elf-gdb port is not available, so I am trying to build it
> manually, and I got a error for make command.
> >
> > ====
> >
> > In file included from ../../gdb-7.3.1/bfd/archive.c:130:
> > ../../gdb-7.3.1/bfd/sysdep.h:173:21: error: libintl.h: No such file or
> directory
> > cc1: warnings being treated as errors
> > ../../gdb-7.3.1/bfd/archive.c: In function ‘_bfd_write_archive_contents’:
> > ../../gdb-7.3.1/bfd/archive.c:2126: warning: implicit declaration of
> function ‘dgettext’
> > ../../gdb-7.3.1/bfd/archive.c:2126: warning: incompatible implicit
> declaration of built-in function ‘dgettext’
> > ../../gdb-7.3.1/bfd/archive.c: In function
> ‘_bfd_archive_bsd_update_armap_timestamp’:
> > ../../gdb-7.3.1/bfd/archive.c:2414: warning: incompatible implicit
> declaration of built-in function ‘dgettext’
> > ../../gdb-7.3.1/bfd/archive.c:2438: warning: incompatible implicit
> declaration of built-in function ‘dgettext’
> > make[4]: *** [archive.lo] Error 1
> > make[3]: *** [all-recursive] Error 1
> > make[2]: *** [all] Error 2
> > make[1]: *** [all-bfd] Error 2
> > make: *** [all] Error 2
> >
> > ====
> >
> > These are the command I used.
> >
> >     ../gdb-7.3.1/configure --target=i386-elf --program-prefix=i386-elf-
> --prefix=/opt/local --with-build-libsubdir=/opt/local 2>&1 | tee
> configure.log
> >     make 2>&1 | tee make.log
> >
> > I am pretty sure libintl.h is available under /opt/local/include.
> >
> > Can someone give me some hints what is wrong?
>
> Did you set CFLAGS, CPPFLAGS, CXXFLAGS, LDFLAGS, CPATH, LIBRARY_PATH the
> same as MacPorts sets them? Consult most any port's main.log.
>
> Instead of trying to build by hand, you may want to try to create a
> portfile. You can base it on the existing cross gdb ports. This way you
> don't have to worry about manually setting the environment variables. And
> when you succeed, the portfile will be all done and you can submit it to us
> for inclusion.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20110929/c06f181f/attachment.html>


More information about the macports-users mailing list