Skip to content

Instantly share code, notes, and snippets.

@noinia
Created September 17, 2020 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noinia/a77769a70b833496501ffb6a6e64472f to your computer and use it in GitHub Desktop.
Save noinia/a77769a70b833496501ffb6a6e64472f to your computer and use it in GitHub Desktop.
static compilation ghc
module Main where
main = print "woei"
frank@Arya# stack ghc -- -static -optl-static -optl-pthread --make dummy -o dummy
[1 of 1] Compiling Main ( dummy.hs, dummy.o )
Linking dummy ...
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan.o)(.note.stapsdt+0x70): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_tan.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32.o)(.note.stapsdt+0x5c): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32.o)(.note.stapsdt+0xa4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32.o)(.note.stapsdt+0xf4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-fma.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-fma.o)(.note.stapsdt+0x70): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_tan-fma.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma.o)(.note.stapsdt+0x5c): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma.o)(.note.stapsdt+0xa4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma.o)(.note.stapsdt+0xf4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-fma4.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-fma4.o)(.note.stapsdt+0x70): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_tan-fma4.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma4.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma4.o)(.note.stapsdt+0x5c): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma4.o)(.note.stapsdt+0xa4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma4.o)(.note.stapsdt+0xf4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-avx.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-avx.o)(.note.stapsdt+0x70): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_tan-avx.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_mutex_init.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [2], which is defined in a discarded section
section group signature: "(null)"
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_mutex_destroy.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [2], which is defined in a discarded section
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_cond_init.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [2], which is defined in a discarded section
section group signature: "(null)"
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_cond_destroy.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [2], which is defined in a discarded section
section group signature: "(null)"
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_cond_wait.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [2], which is defined in a discarded section
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_cond_wait.o)(.note.stapsdt+0x64): error: relocation refers to local symbol "" [2], which is defined in a discarded section
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_cond_wait.o)(.note.stapsdt+0xb4): error: relocation refers to local symbol "" [2], which is defined in a discarded section
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_cond_signal.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [2], which is defined in a discarded section
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_cond_broadcast.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [2], which is defined in a discarded section
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_mutex_cond_lock.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [2], which is defined in a discarded section
section group signature: "(null)"
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_mutex_cond_lock.o)(.note.stapsdt+0x64): error: relocation refers to local symbol "" [2], which is defined in a discarded section
section group signature: "(null)"
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libpthread.a(pthread_mutex_cond_lock.o)(.note.stapsdt+0xb0): error: relocation refers to local symbol "" [2], which is defined in a discarded section
section group signature: "(null)"
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment