Opened 4 years ago

Closed 7 months ago

#5190 closed bug (fixed)

TinyCoreLinux extension

Reported by: josemaria.alkala Owned by:
Priority: low Milestone: 7.10.1
Component: Build System 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 Revisions:

Description

I am trying to create a GHC package for TinyCoreLinux http://www.tinycorelinux.com (this is a 10Mbytes linux distribution)

I have downloaded the general binary:
http://haskell.org/ghc/dist/7.0.3/ghc-7.0.3-i386-unknown-linux.tar.bz2

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 (9)

comment:1 Changed 4 years ago by simonmar

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

comment:2 Changed 4 years ago by simonmar

  • Status changed from new to infoneeded

comment:3 Changed 4 years ago by josemaria.alkala

  • Status changed from infoneeded to patch

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 FLWM_TITLEBAR_COLOR='B0:C4:DE'
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'
tc@box:~$


comment:4 Changed 4 years ago by simonmar

  • Milestone set to 7.2.1
  • Status changed from patch to new
  • Type of failure changed from Building GHC failed to Installing 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 4 years ago by igloo

  • Milestone changed from 7.2.1 to 7.4.1

comment:6 Changed 3 years ago by igloo

  • Milestone changed from 7.4.1 to 7.6.1
  • Priority changed from normal to low

comment:7 Changed 3 years ago by igloo

  • Milestone changed from 7.6.1 to 7.6.2

comment:8 Changed 10 months ago by thoughtpolice

  • Milestone changed from 7.6.2 to 7.10.1

Moving to 7.10.1.

comment:9 Changed 7 months ago by thomie

  • difficulty set to Unknown
  • Resolution set to fixed
  • Status changed from new to closed

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:
https://github.com/leonardoce/tinycore-ports/blob/master/haskell-platform/compile.sh

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

Note: See TracTickets for help on using tickets.