#3794: Compiling a main program yields: /usr/bin/ld: cannot find -lHSrtsmain
-----------------------------+----------------------------------------------
Reporter: guest | Owner: igloo
Type: bug | Status: new
Priority: normal | Milestone: 6.12.2
Component: Build System | Version: 6.12.1
Keywords: | Difficulty:
Os: Linux | Testcase:
Architecture: x86 | Failure: Installing GHC failed
-----------------------------+----------------------------------------------
Comment(by guest):
It seems to be important whether I run as root or whether I'm a regular
user using sudo.
The first one works, the latter one does not work.
On Ubuntu it is standard to use sudo.
{{{
u...@bla:/tmp/ghc-6.12.1> umask
0077
u...@bla:/tmp/ghc-6.12.1> echo umask | sudo bash
0022
u...@bla:/tmp> tar xfj /archive/ghc-6.12.1-i386-unknown-linux-n.tar.bz2
u...@bla:/tmp> cd ghc-6.12.1/
u...@bla:/tmp/ghc-6.12.1> ./configure
checking for path to top of build tree... /tmp/ghc-6.12.1
checking for perl... /usr/bin/perl
checking if your perl works in shell scripts... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ar... /usr/bin/ar
checking whether /usr/bin/ar is GNU ar... yes
checking for ar arguments... q
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether ranlib is needed... no
checking for sed... /bin/sed
checking version of gcc... 4.3.3
checking how to run the C preprocessor... gcc -E
checking for extra options to pass gcc when compiling via C... -fwrapv
configure: creating ./config.status
config.status: creating extra-gcc-opts
config.status: creating mk/config.mk
config.status: creating mk/install.mk
****************************************************
Configuration done, ready to 'make install'
(see README and INSTALL files for more info.)
****************************************************
u...@bla:/tmp/ghc-6.12.1> sudo make install
...
u...@bla:/tmp/ghc-6.12.1> ll /usr/local/lib/ghc-6.12.1/libHS*
-rw-r--r-- 1 root root 102164 2010-01-19 19:33
/usr/local/lib/ghc-6.12.1/libHSffi.a
-rwxr-xr-x 1 root root 81578 2010-01-19 19:33 /usr/local/lib/ghc-6.12.1
/libHSffi-ghc6.12.1.so
-rw-r--r-- 1 root root 102164 2010-01-19 19:33
/usr/local/lib/ghc-6.12.1/libHSffi_p.a
-rw------- 1 root root 443834 2010-01-19 19:32
/usr/local/lib/ghc-6.12.1/libHSrts.a
-rw------- 1 root root 1604326 2010-01-19 19:32
/usr/local/lib/ghc-6.12.1/libHSrts_debug.a
-rwx------ 1 root root 1019476 2010-01-19 19:32 /usr/local/lib/ghc-6.12.1
/libHSrts_debug-ghc6.12.1.so
-rwx------ 1 root root 323893 2010-01-19 19:32 /usr/local/lib/ghc-6.12.1
/libHSrts-ghc6.12.1.so
-rw------- 1 root root 452792 2010-01-19 19:32
/usr/local/lib/ghc-6.12.1/libHSrts_l.a
-rw------- 1 root root 1026 2010-01-19 19:32
/usr/local/lib/ghc-6.12.1/libHSrtsmain.a
-rw------- 1 root root 527154 2010-01-19 19:32
/usr/local/lib/ghc-6.12.1/libHSrts_p.a
-rw------- 1 root root 515788 2010-01-19 19:32
/usr/local/lib/ghc-6.12.1/libHSrts_thr.a
-rw------- 1 root root 1872880 2010-01-19 19:32
/usr/local/lib/ghc-6.12.1/libHSrts_thr_debug.a
-rwx------ 1 root root 1189377 2010-01-19 19:32 /usr/local/lib/ghc-6.12.1
/libHSrts_thr_debug-ghc6.12.1.so
-rwx------ 1 root root 383150 2010-01-19 19:32 /usr/local/lib/ghc-6.12.1
/libHSrts_thr-ghc6.12.1.so
-rw------- 1 root root 526884 2010-01-19 19:32
/usr/local/lib/ghc-6.12.1/libHSrts_thr_l.a
-rw------- 1 root root 600860 2010-01-19 19:32
/usr/local/lib/ghc-6.12.1/libHSrts_thr_p.a
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3794#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs