public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Simon Gornall <sgornall@apple.com>
To: crossgcc@sourceware.org
Subject: Re: Can't compile crosstool-ng-1.15.2 on OpenSuse Linux
Date: Thu, 05 Jul 2012 23:18:00 -0000	[thread overview]
Message-ID: <22E7D1D0-1E04-4067-AF49-D2B00EB6DAF2@apple.com> (raw)
In-Reply-To: <CAHXCMMKTki-uP+uPy+Y5a9fn2WW-fRo9YVdksSMu+XdZb6dyjA@mail.gmail.com>


On Jul 5, 2012, at 3:50 PM, Samuel Martin wrote:

> Hi Somon, all,
> 
>> In file included from nconf.c:12:0:
>> nconf.h:19:18: fatal error: menu.h: No such file or directory
>> compilation terminated.
>> make[2]: *** [nconf.o] Error 1
>> make[1]: *** [build-lib-kconfig] Error 2
>> make: *** [build] Error 2
>> 
>> 
>> I tried to see if menu.h was really there but somehow being missed:
>> 
>> xanadu%   find . -name menu.h
>> xanadu%
>> 
> 
> menu.h comes with ncurses; make sure development package for ncurses
> are installed on your system.


Thanks for the quick response [grin]  I didn't know menu.h was part of ncurses, so I've now made sure it's there

xanadu% ls /usr/include/ncurses/
cursesapp.h  curses.h   cursesp.h  cursslk.h  etip.h  menu.h      ncurses_dll.h  panel.h    term_entry.h  tic.h
cursesf.h    cursesm.h  cursesw.h  eti.h      form.h  nc_tparm.h  ncurses.h      termcap.h  term.h        unctrl.h

but I still get the same:

xanadu% make
  GEN    'config/configure.in'
  GEN    'paths.mk'
  GEN    'paths.sh'
  CC     'nconf.o'
In file included from nconf.c:12:0:
nconf.h:19:18: fatal error: menu.h: No such file or directory
compilation terminated.
make[2]: *** [nconf.o] Error 1
make[1]: *** [build-lib-kconfig] Error 2
make: *** [build] Error 2

... so I tried a 'make mrproper' / 'autoconf' in case something was cached, but still got the same. Tracking down 'nconf.c' to the kconfig directory,  I saw that nconf.h does a  "#include <menu.h>" so I ended up adding "-I/usr/include/ncurses" to the CFLAGS declaration inside the Makefile in kconfig/  At least that way I could get it to compile :)


Cheers	
	Simon

--
For unsubscribe information see http://sourceware.org/lists.html#faq

  reply	other threads:[~2012-07-05 23:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-05 21:07 Simon Gornall
2012-07-05 22:51 ` Samuel Martin
2012-07-05 23:18   ` Simon Gornall [this message]
2012-07-06 14:07     ` Trevor Woerner
2012-07-09  1:35       ` Simon Gornall
2012-07-22 14:42       ` Yann E. MORIN
2012-07-22 16:15         ` Simon Gornall
2012-07-31 21:20           ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22E7D1D0-1E04-4067-AF49-D2B00EB6DAF2@apple.com \
    --to=sgornall@apple.com \
    --cc=crossgcc@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).