public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Can't compile crosstool-ng-1.15.2 on OpenSuse Linux
@ 2012-07-05 21:07 Simon Gornall
  2012-07-05 22:51 ` Samuel Martin
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Gornall @ 2012-07-05 21:07 UTC (permalink / raw)
  To: crossgcc

Hi there, 

I just downloaded crosstool-ng-1.15.2 and tried to compile under Suse Linux, to make myself an arm cross-compiler. Unfortunately I can't get past the first stage:

xanadu% wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.15.2.tar.bz2
xanadu% ./configure --prefix=/opt
xanadu% tar xjvf crosstool-ng-1.15.2.tar.bz2
xanadu% cd crosstool-ng-1.15.2/
xanadu% ./configure --prefix=/opt

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking whether sed understands -r -i -e... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for objcopy... objcopy
checking for absolute path to objcopy... /usr/bin/objcopy
checking for objdump... objdump
checking for absolute path to objdump... /usr/bin/objdump
checking for readelf... readelf
checking for absolute path to readelf... /usr/bin/readelf
checking for bison... bison
checking for flex... flex
checking for gperf... gperf
checking for gawk... gawk
checking for makeinfo... makeinfo
checking for cut... cut
checking for stat... stat
checking for readlink... readlink
checking for wget... wget
checking for tar... tar
checking for gzip... gzip
checking for bzip2... bzip2
checking for patch... /usr/bin/patch
checking for bash >= 3.1... /bin/bash
checking for GNU make >= 3.80... /usr/bin/make
checking whether /usr/bin/make sets $(MAKE)... yes
checking for GNU libtool >= 1.5.26... /usr/bin/libtool
checking for GNU libtoolize >= 1.5.26... /usr/bin/libtoolize
checking for GNU automake >= 1.10... /usr/bin/automake
checking for xz... xz
checking for cvs... cvs
checking for svn... svn
checking for inline... inline
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether gettext is declared... yes
checking ncurses/ncurses.h usability... yes
checking ncurses/ncurses.h presence... yes
checking for ncurses/ncurses.h... yes
checking for library containing initscr... -lncursesw
configure: creating ./config.status
config.status: creating Makefile

xanadu%  make 
  SED    'ct-ng'
  SED    'scripts/crosstool-NG.sh'
  SED    'scripts/saveSample.sh'
  SED    'scripts/showTuple.sh'
  GEN    'config/configure.in'
  GEN    'paths.mk'
  GEN    'paths.sh'
  DEP    'nconf.gui.dep'
  DEP    'nconf.dep'
  DEP    'lxdialog/menubox.dep'
  DEP    'lxdialog/textbox.dep'
  DEP    'lxdialog/yesno.dep'
  DEP    'lxdialog/util.dep'
  DEP    'lxdialog/inputbox.dep'
  DEP    'lxdialog/checklist.dep'
  DEP    'mconf.dep'
  DEP    'conf.dep'
  BISON  'zconf.tab.c'
  GPERF  'zconf.hash.c'
  LEX    'lex.zconf.c'
  DEP    'zconf.tab.dep'
  CC     'zconf.tab.o'
  CC     'conf.o'
  LD     'conf'
  CC     'lxdialog/checklist.o'
  CC     'lxdialog/inputbox.o'
  CC     'lxdialog/util.o'
  CC     'lxdialog/yesno.o'
  CC     'lxdialog/textbox.o'
  CC     'lxdialog/menubox.o'
  CC     'mconf.o'
  LD     'mconf'
  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


I tried to see if menu.h was really there but somehow being missed:

xanadu%   find . -name menu.h
xanadu%   

It wasn't there, so I thought I'd redo-from-scratch  and tried:

xanadu% make mrproper
  RM     'ct-ng'
  RM     'scripts/crosstool-NG.sh'
  RM     'scripts/saveSample.sh'
  RM     'scripts/showTuple.sh'
  RM     'paths'
  RM     'config/configure.in'
  RM     'kconfig'
  RM     'docs/ct-ng.1'
  RM     'docs/ct-ng.1.gz'
  RM     'Makefile'
  RM     'autostuff'
xanadu%  autoconf
xanadu% !./configure && make

... but still got the same errors.  Am I doing something stupid, or is this a known bug ?

Cheers
	Simon



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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can't compile crosstool-ng-1.15.2 on OpenSuse Linux
  2012-07-05 21:07 Can't compile crosstool-ng-1.15.2 on OpenSuse Linux Simon Gornall
@ 2012-07-05 22:51 ` Samuel Martin
  2012-07-05 23:18   ` Simon Gornall
  0 siblings, 1 reply; 8+ messages in thread
From: Samuel Martin @ 2012-07-05 22:51 UTC (permalink / raw)
  To: Simon Gornall; +Cc: crossgcc

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.

Cheers,

-- 
Sam

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can't compile crosstool-ng-1.15.2 on OpenSuse Linux
  2012-07-05 22:51 ` Samuel Martin
@ 2012-07-05 23:18   ` Simon Gornall
  2012-07-06 14:07     ` Trevor Woerner
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Gornall @ 2012-07-05 23:18 UTC (permalink / raw)
  To: crossgcc


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can't compile crosstool-ng-1.15.2 on OpenSuse Linux
  2012-07-05 23:18   ` Simon Gornall
@ 2012-07-06 14:07     ` Trevor Woerner
  2012-07-09  1:35       ` Simon Gornall
  2012-07-22 14:42       ` Yann E. MORIN
  0 siblings, 2 replies; 8+ messages in thread
From: Trevor Woerner @ 2012-07-06 14:07 UTC (permalink / raw)
  To: Simon Gornall; +Cc: crossgcc

On Thu, Jul 5, 2012 at 7:17 PM, Simon Gornall <sgornall@apple.com> wrote:
> 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
> but I still get the same

Does the following help?
http://sourceware.org/ml/crossgcc/2012-02/msg00002.html

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can't compile crosstool-ng-1.15.2 on OpenSuse Linux
  2012-07-06 14:07     ` Trevor Woerner
@ 2012-07-09  1:35       ` Simon Gornall
  2012-07-22 14:42       ` Yann E. MORIN
  1 sibling, 0 replies; 8+ messages in thread
From: Simon Gornall @ 2012-07-09  1:35 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: crossgcc


On 6 Jul 2012, at 06:40, Trevor Woerner wrote:

> On Thu, Jul 5, 2012 at 7:17 PM, Simon Gornall <sgornall@apple.com> wrote:
>> 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
>> but I still get the same
> 
> Does the following help?
> http://sourceware.org/ml/crossgcc/2012-02/msg00002.html

Yep, that works as well :)

Cheers
	Simon


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can't compile crosstool-ng-1.15.2 on OpenSuse Linux
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Yann E. MORIN @ 2012-07-22 14:42 UTC (permalink / raw)
  To: crossgcc; +Cc: Trevor Woerner, Simon Gornall

Trevor, Simon, All,

On Friday 06 July 2012 15:40:01 Trevor Woerner wrote:
> On Thu, Jul 5, 2012 at 7:17 PM, Simon Gornall <sgornall@apple.com> wrote:
> > 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
> > but I still get the same
> 
> Does the following help?
> http://sourceware.org/ml/crossgcc/2012-02/msg00002.html

Unfortunately, that patch breaks on other distros (eg. Debian squeeze).

IIRC, there was another solution: install the non-wide-char ncurses devel
package.

Regards,
Yann E. MORIN, still purging the back-log...

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can't compile crosstool-ng-1.15.2 on OpenSuse Linux
  2012-07-22 14:42       ` Yann E. MORIN
@ 2012-07-22 16:15         ` Simon Gornall
  2012-07-31 21:20           ` Yann E. MORIN
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Gornall @ 2012-07-22 16:15 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc, Trevor Woerner


On 22 Jul 2012, at 07:37, Yann E. MORIN wrote:

> Trevor, Simon, All,
> 
> On Friday 06 July 2012 15:40:01 Trevor Woerner wrote:
>> On Thu, Jul 5, 2012 at 7:17 PM, Simon Gornall <sgornall@apple.com> wrote:
>>> 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
>>> but I still get the same
>> 
>> Does the following help?
>> http://sourceware.org/ml/crossgcc/2012-02/msg00002.html
> 
> Unfortunately, that patch breaks on other distros (eg. Debian squeeze).
> 
> IIRC, there was another solution: install the non-wide-char ncurses devel
> package.

In which case, doing what I originally did, and adding "-I/usr/include/ncurses" to the CFLAGS declaration inside the Makefile in kconfig/  might seem to be the way to go. Adding ncurses itself didn't help because they're installed inside a container directory in /usr/include, but appending the above -I flag ought to be innocuous on non-suse systems (right?) and it lets suse-linux compile cleanly.

Cheers
	Simon


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can't compile crosstool-ng-1.15.2 on OpenSuse Linux
  2012-07-22 16:15         ` Simon Gornall
@ 2012-07-31 21:20           ` Yann E. MORIN
  0 siblings, 0 replies; 8+ messages in thread
From: Yann E. MORIN @ 2012-07-31 21:20 UTC (permalink / raw)
  To: crossgcc; +Cc: Simon Gornall, Trevor Woerner

Simon, Trevor, All,

On Sunday 22 July 2012 17:54:24 Simon Gornall wrote:
> On 22 Jul 2012, at 07:37, Yann E. MORIN wrote:
> > On Friday 06 July 2012 15:40:01 Trevor Woerner wrote:
> >> On Thu, Jul 5, 2012 at 7:17 PM, Simon Gornall <sgornall@apple.com> wrote:
> >>> 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
> >>> but I still get the same
> >> 
> >> Does the following help?
> >> http://sourceware.org/ml/crossgcc/2012-02/msg00002.html
> > 
> > Unfortunately, that patch breaks on other distros (eg. Debian squeeze).
> > 
> > IIRC, there was another solution: install the non-wide-char ncurses devel
> > package.
> 
> In which case, doing what I originally did, and adding
> "-I/usr/include/ncurses" to the CFLAGS declaration inside the Makefile
> in kconfig/  might seem to be the way to go. Adding ncurses itself didn't
> help because they're installed inside a container directory in
> /usr/include, but appending the above -I flag ought to be innocuous on
> non-suse systems (right?) and it lets suse-linux compile cleanly.

That's what I'll do.

I have a more invasive patch to replace our bundled kconfig with the
kconfig-frontends package, but it is a bit too-much invasive...

Thank you for helping solve this issue.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-07-31 21:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-05 21:07 Can't compile crosstool-ng-1.15.2 on OpenSuse Linux Simon Gornall
2012-07-05 22:51 ` Samuel Martin
2012-07-05 23:18   ` Simon Gornall
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

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).