[Hackage] #98: cabal assumes -x option for linking

Hackage trac at galois.com
Thu Oct 18 09:10:11 EDT 2007

#98: cabal assumes -x option for linking
  Reporter:  Christian.Maeder at dfki.de  |        Owner:  ijones         
      Type:  defect                    |       Status:  new            
  Priority:  normal                    |    Milestone:  Cabal-1.2      
 Component:  Cabal                     |      Version:  1.2.0          
  Severity:  normal                    |   Resolution:                 
  Keywords:                            |   Difficulty:  easy (<4 hours)
Ghcversion:  6.6                       |     Platform:  Other Unix     
Comment (by guest):

 this is how the error message looks like:

 /usr/ccs/bin/ld: illegal option -- x
 usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?]
         [-64]           enforce a 64-bit link-edit
         [-a]            create an absolute file
         [-b]            do not do special PIC relocations in a.out
         [-B direct | nodirect]
                         establish direct bindings, or inhibit direct
                         to, the object being created
         [-B dynamic | static]
                         search for shared libraries|archives
         [-B eliminate]  eliminate unqualified global symbols from the
                         symbol table
         [-B group]      relocate object from within group
         [-B local]      reduce unqualified global symbols to local
         [-B reduce]     process symbol reductions
         [-B symbolic]   bind external references to definitions when
                         shared objects
         [-c name]       record configuration file `name'
         [-C]            demangle C++ symbol name diagnostics
         [-d y | n]      operate in dynamic|static mode
         [-D token,...]  print diagnostic messages
         [-e epsym]      use `epsym' as entry point address
         [-f name]       specify library for which this file is an
         [-F name]       specify library for which this file is a filter
         [-G]            create a shared object
         [-h name]       use `name' as internal shared object identifier
         [-i]            ignore LD_LIBRARY_PATH setting
         [-I name]       use `name' as path of interpreter
         [-l x]          search for libx.so or libx.a
         [-L path]       search for libraries in directory `path'
         [-m]            print memory map
         [-M mapfile]    use processing directives contained in `mapfile'
         [-N string]     create a dynamic dependency for `string'
         [-o outfile]    name the output file `outfile'
         [-p auditlib]   identify audit library to accompany this object
         [-P auditlib]   identify audit library for processing the
                         of this object
         [-Q y | n]      do|do not place version information in output file
         [-r]            create a relocatable object
         [-R path]       specify a library search path to be used at run
         [-s]            strip any symbol and debugging information
         [-S supportlib]
                         specify a link-edit support library
         [-t]            do not warn of multiply-defined symbols that have
                         different sizes or alignments
         [-u symname]    create an undefined symbol `symname'
         [-V]            print version information
         [-Y P,dirlist]  use `dirlist' as a default path when searching for
         [-z absexec]    when building an executable absolute symbols
                         referenced in dynamic objects are promoted to
                         the executable
         [-z allextract | defaultextract | weakextract]
                         extract all member files, only members that
                         undefined tor tentative symbols, or allow
 extraction of
                         archive members to resolvetweak references from
                         archive files
         [-z altexec64]  execute the 64-bit link-editor
         [-z combreloc]  combine multiple relocation sections
         [-z defs]       disallow undefined symbol references
         [-z direct | nodirect]
                         enable|disable direct binding to shared object
         [-z endfiltee]  marks a filtee such that it will terminate a
         [-z finiarray=function]
                         name of function to be appended to the .finiarray
         [-z groupperm | nogroupperm]
                         enable|disable setting of group permissions
                         on dynamic dependencies
         [-z help ]      print this usage message
         [-z ignore | record]
                         ignore|record unused dynamic dependencies
         [-z initarray=function]
                         name of function to be appended to the .initarray
         [-z initfirst]  mark object to indicate that its .init section
                         be executed before the .init section of any other
         [-z interpose]  dynamic object is to be an `interposer' on direct
         [-z lazyload | nolazyload]
                         enable|disable delayed loading of shared object
         [-z ld32=arg1,arg2,...]
                         define arguments applicable to the 32-bit class of
         [-z ld64=arg1,arg2,...]
                         define arguments applicable to the 64-bit class of
         [-z loadfltr]   mark filter as requiring immediate loading of its
                         filtees at runtime
         [-z muldefs]    allow multiply-defined symbols
         [-z nocompstrtab]
                         disable compression of string tables
         [-z nodefs]     allow undefined symbol references
         [-z nodefaultlib]
                         mark object to ignore any default library search
         [-z nodelete]   mark object as non-deletable
         [-z nodlopen]   mark object as non-dlopen()'able
         [-z nodump]     mark object as non-dldump()'able
         [-z now]        mark object as requiring non-lazy binding
         [-z nopartial]  expand any partially initialized symbols
         [-z noversion]  don't record any version sections
         [-z origin]     mark object as requiring $ORIGIN processing
         [-z preinitarray=function]
                         name of function to be appended to the
         [-z redlocsym]  reduce local syms in .symtab to a minimum
         [-z rescan]     rescan archive list until no further member
                         extraction occurs
         [-z text]       disallow output relocations against text
         [-z textoff]    allow output relocations against text
         [-z textwarn]   warn if there are relocations against text
         [-z verbose]    generate warnings for suspicious processings
 gmake[2]: *** [dist/build/HSbase-3.0.o] Error 1

 I could continue with a gnu linker only after cleaning up completely.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/98#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list