Gentoo Archives: gentoo-user

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problems with cross-compiling
Date: Sun, 27 Mar 2016 09:00:26
Message-Id: 20160327120010.71cd358d70490285dfdbf163@gentoo.org
In Reply to: Re: [gentoo-user] Problems with cross-compiling by Dan Johansson
1 On Fri, 25 Mar 2016 14:00:58 +0100 Dan Johansson wrote:
2 > Another one that is also failing (and is a dependency of many packages)
3 > is sys-libs/ncurses-6.0-r1.
4 > ncurses fails with another error than libpcre.
5 >
6 > cd c++ && make DESTDIR="" RPATH_LIST="/usr/lib" all
7 > make[1]: Entering directory
8 > '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0-.arm/ncurses/c++'
9 > cd ../obj_s; -DHAVE_CONFIG_H -I.
10 > -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++
11 > -I../include
12 > -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/../include
13 > -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXTSTRINGDEFINES -DNDEBUG -O2
14 > -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -c
15 > /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/cursesf.cc
16
17 It looks like it tries to run compile command with empty compiler
18 variable (e.g. $CC) that should be before "-DHAVE_CONFIG_H -I.".
19 You should investigate makefiles and set proper compiler value.
20
21 Best regards,
22 Andrew Savchenko