Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,828
    • Issues 4,828
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 452
    • Merge requests 452
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #3637

Closed
Open
Created Nov 03, 2009 by kolmodin@dtek.chalmers.se@trac-kolmodin

./configure doesn't understand Gentoo's build/host/target

Apparently there are several styles in how to write your build/host/target variables.

In Gentoo they look like this for my amd64 x86_64-pc-linux-gnu which doesn't play well with the current build system.

Default ./configure execution in Gentoo ebuilds will pass the following flags:

./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man \
    --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc \
    --localstatedir=/var/lib --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu

Which results in:

checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for GHC version date... given 6.12.0.20091010
checking for ghc... /usr/bin/ghc
checking version of ghc... 6.10.4
Target platform inferred as: x86_64-unknown-linux
Unknown vendor linux

So we sed it like this:

build=`echo "$build" | sed -e 's/linux-gnu/linux/' -e 's/-pc-/-unknown-/'`
host=`echo "$host" | sed -e 's/linux-gnu/linux/' -e 's/-pc-/-unknown-/'`
target=`echo "$target" | sed -e 's/linux-gnu/linux/' -e 's/-pc-/-unknown-/'`

but of course we would prefer not to have to handle this specially.

That is, the vendor is pc and the OS is linux-gnu.

Trac metadata
Trac field Value
Version 6.12.1 RC1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking