Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90701 - ncurses think of being crosscompiling on g/fbsd systems
Summary: ncurses think of being crosscompiling on g/fbsd systems
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-28 04:34 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ncurses-5.4-r6.patch (ncurses-5.4-r6.patch,528 bytes, patch)
2005-04-28 04:36 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
ncurses-configure-output (ncurses-configure-output,10.82 KB, text/plain)
2005-06-20 11:33 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-28 04:34:34 UTC
Don't know exactly why, but building ncurses on g/fbsd makes it fails as it tries to use system's tic command to build terminfo data.

The attached patch fixes the problem, as it makes clear to configure which CC and HOSTCC are used, so that it can really find out that is not crosscompiling.

The modified ebuild works fine for me on linux, too.

HTH, Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-28 04:36:28 UTC
Created attachment 57464 [details, diff]
ncurses-5.4-r6.patch
Comment 2 SpanKY gentoo-dev 2005-04-28 07:04:53 UTC
i havent really looked but i'm 99% sure that patch is wrong

ncurses use $(BUILD_CC) to build executables it will then run ... and HOSTCC is just the old name autotools used for BUILD_CC
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-28 07:22:06 UTC
Makefiles still uses HOSTCC, that's why I passed it.

The patch then can be wrong and needs to be inverted, sorry about that, I have never set up a crosscompiler and I tried to understand how it was working with lu_zero but seems like we misunderstood the order.

It should be inverted, so?
Comment 4 SpanKY gentoo-dev 2005-04-28 16:01:11 UTC
no, the makefile sets HOSTCC to BUILD_CC:

misc/Makefile.in:HOSTCC         = @BUILD_CC@

i dont see why anything needs to be forced other than what is in the ebuild now ...
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-28 16:07:50 UTC
Mainly because ncurses on g/fbsd finds 'gcc' as $CC instead of i686-*-gcc.
Comment 6 SpanKY gentoo-dev 2005-04-28 16:20:01 UTC
so ?
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-28 16:25:57 UTC
so CC != HOSTCC and it tries to use the system's tic command which isn't there (in a plain fbsd system, in a 5.3 g/fbsd system or in a non-bootstrapped 5.4 (experimental) g/fbsd system), failing the compilation.
Comment 8 SpanKY gentoo-dev 2005-04-28 16:33:39 UTC
why dont you paste an actual build log so i can investigate further ? :p
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-28 16:40:28 UTC
Can you wait till tomorrow? My g/fbsd box is off right now as it's night and it does a lot of noise.
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-20 11:33:25 UTC
Created attachment 61587 [details]
ncurses-configure-output

Forgot about that, sorry.
Comment 11 SpanKY gentoo-dev 2005-06-20 21:01:40 UTC
i dont see any error in that log ... i do see this though:
checking whether we are cross compiling... no
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-21 04:26:37 UTC
The problem is that one of the makefiles (just don't remember which one right 
now) refuses to use the just compiled tic because HOST_CC != CC, considering 
that a kind of crosscompiling. 
 
Comment 13 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-07-17 04:01:24 UTC
Well not a problem at this point, as tic is in the base stage, so this can be 
closed for now.