Opened 8 years ago

Closed 5 years ago

Last modified 11 months ago

#5190 closed bug (fixed)

TinyCoreLinux extension

Reported by: josemaria.alkala Owned by:
Priority: low Milestone: 7.10.1
Component: Build System (make) Version: 7.0.3
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Installing GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


I am trying to create a GHC package for TinyCoreLinux (this is a 10Mbytes linux distribution)

I have downloaded the general binary:

When I execute: ./configure, I get: checking for path to top of build tree... ghc-pwd: mkTextEncoding: invalid argument (Invalid argument) configure: error: cannot determine current directory

As a disclaimer, I am not a developer!

Change History (10)

comment:1 Changed 8 years ago by simonmar

what is your LANG environment variable set to? Does TinyCoreLinux support locales at all?

comment:2 Changed 8 years ago by simonmar

Status: newinfoneeded

comment:3 Changed 8 years ago by josemaria.alkala

Status: infoneededpatch

This is the environment:

tc@box:~$ export
export BACKUP='1'
export COLORFGBG='15;0'
export COLORTERM='rxvt'
export DESKTOP='flwm_topside'
export DISPLAY=':0.0'
export ENV='/home/tc/.ashrc'
export G_FILENAME_ENCODING='iso8859-1'
export HOME='/home/tc'
export ICONS='wbar'
export LANG='C'
export LOGNAME='tc'
export OLDPWD='/usr/local/bin'
export PAGER='less -EM'
export PATH='/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin'
export PS1='\u@\h:\w\$ '
export PWD='/home/tc'
export SHELL='/bin/sh'
export TERM='rxvt'
export TZ='UTC'
export USER='tc'
export WINDOWID='10485762'
export WM_PID='4479'
export XAUTHORITY='/home/tc/.Xauthority'

comment:4 Changed 8 years ago by simonmar

Milestone: 7.2.1
Status: patchnew
Type of failure: Building GHC failedInstalling GHC failed

ghc-pwd is a GHC-compiled binary used by the installer configure script. It's trying to call iconv to get the locale encoding. I presume TinyCoreLinux is missing some iconv functionality or something, but I'm not sure exactly what, or how we should work around it. Someone will have to install TinyCoreLinux and investigate further.

comment:5 Changed 8 years ago by igloo


comment:6 Changed 8 years ago by igloo

Priority: normallow

comment:7 Changed 7 years ago by igloo


comment:8 Changed 5 years ago by thoughtpolice


Moving to 7.10.1.

comment:9 Changed 5 years ago by thomie

difficulty: Unknown
Resolution: fixed
Status: newclosed

Thank you for your bug report. This was most likely fixed in 2043afcb0b938bc89257ab64d72a75b44a475c82 (2011).

Avoid using iconv for the locale TextEncoding if we can help it

Check also this script for an attempt to install the haskell-platform on TinyCoreLinux:

Feel free to reopen this ticket it you're still having difficulties.

comment:10 Changed 11 months ago by bgamari

Component: Build SystemBuild System (make)

The new Hadrian build system has been merged. Relabeling the tickets concerning the legacy make build system to prevent confusion.

Note: See TracTickets for help on using tickets.