Re: [GHC] #6086: Cross compilation fails using system linker for other architecture binaries

#6086: Cross compilation fails using system linker for other architecture binaries
----------------------------------------------+---------------------------
Reporter: mtjm | Owner:
Type: bug | Status: closed
Priority: high | Milestone: 7.8.4
Component: Build System | Version: 7.8.3
Resolution: fixed | Keywords:
Operating System: Linux | Architecture: arm
Type of failure: Building GHC failed | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: 9421 | Related Tickets:
Differential Revisions: |
----------------------------------------------+---------------------------
Comment (by cetu86):
Inside your cross toolchain there is a directory that is literally called
"sysroot". Inside it you'll find your standard unix root. Looks like this
{{{
.
└── arm-unknown-linux-gnueabi
├── arm-unknown-linux-gnueabi
│ └── sysroot
│ ├── bin
│ ├── etc
│ ├── include
│ ├── lib
│ ├── sbin
│ ├── share
│ ├── usr
│ │ ├── bin
│ │ ├── include --> ncurses.h, curses.h go here
│ │ ├── lib --> libncurses.a goes here
│ └── var
}}}
If you use ".../sysroot/usr" as prefix everything should go fine. Except
ncurses puts its header files in a subdirectory "include/ncurses" but ghc
includes the header file as
{{{
#include
participants (1)
-
GHC