Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239574 - dev-scheme/schoca-0.3.0 fails to build (LDFLAGS issue)
Summary: dev-scheme/schoca-0.3.0 fails to build (LDFLAGS issue)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-04 17:15 UTC by Evil Compile Person
Modified: 2009-03-28 18:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch (schoca-0.3.0.ebuild.diff,691 bytes, patch)
2009-03-13 19:27 UTC, Vadim Kuznetsov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evil Compile Person 2008-10-04 17:15:52 UTC
make[1]: Leaving directory `/var/tmp/portage/dev-scheme/schoca-0.3.0/work/schoca-0.3.0/examples'                                                                      
make[1]: Entering directory `/var/tmp/portage/dev-scheme/schoca-0.3.0/work/schoca-0.3.0/examples'                                                                     
ocamlfind ocamlc -I ../lib -package camlp4 -ccopt "-O2 -pipe"  -I ../lib -g   -syntax camlp4o -c read_ini_file.ml                                                     
ocamlfind ocamlopt -I ../lib -package camlp4 -ccopt "-O2 -pipe"     -syntax camlp4o  -c read_ini_file.ml                                                              
ocamlfind ocamlc -linkpkg -o read_ini_file   -package camlp4 -I ../lib -Wl,-O1 \   
                -ccopt "-O2 -pipe"    nums.cma schoca.cma  \                       
                read_ini_file.cmo -g                                               
ocamlc: unknown option `-Wl,-O1'.                                                  
usage: ocamlfind ocamlc [options] file ...                                         
  -package  <name>   Refer to package when compiling                               
  -linkpkg           Link the packages in                                          
  -predicates  <p>   Add predicate <p> when resolving package properties           
  -dontlink  <name>  Do not link in package <name> and its ancestors               
  -syntax  <p>       Use preprocessor with predicate <p>                           
  -ppopt  <opt>      Append option <opt> to preprocessor invocation                
  -dllpath-pkg <pkg> Add -dllpath for this package                                 
  -dllpath-all       Add -dllpath for all linked packages                          
  -ignore-error      Ignore the 'error' directive in META files                    
  -passopt  <opt>    Pass option <opt> directly to ocamlc/opt/mktop                
STANDARD OPTIONS:                                                                  
  -a  Build a library                                                              
  -c  Compile only (do not link)                                                   
  -cc <command>  Use <command> as the C compiler and linker                        
  -cclib <opt>  Pass option <opt> to the C linker                                  
  -ccopt <opt>  Pass option <opt> to the C compiler and linker                     
  -config  print configuration values and exit                                     
  -custom  Link in custom mode                                                     
  -dllib <lib>  Use the dynamically-loaded library <lib>                           
  -dllpath <dir>  Add <dir> to the run-time search path for shared libraries       
  -dtypes  Save type information in <filename>.annot                               
  -for-pack <ident>  Ignored (for compatibility with ocamlopt)                     
  -g  Save debugging information                                                   
  -i  Print inferred interface                                                     
  -I <dir>  Add <dir> to the list of include directories                           
  -impl <file>  Compile <file> as a .ml file                                       
  -intf <file>  Compile <file> as a .mli file                                      
  -intf-suffix <string>  Suffix for interface files (default: .mli)                
  -intf_suffix <string>  (deprecated) same as -intf-suffix                         
  -labels  Use commuting label mode                                                
  -linkall  Link all modules, even unused ones                                     
  -make-runtime  Build a runtime system with given C objects and libraries         
  -make_runtime  (deprecated) same as -make-runtime                                
  -modern  (deprecated) same as -labels                                            
  -noassert  Don't compile assertion checks                                        
  -noautolink  Don't automatically link C libraries specified in .cma files        
  -nolabels  Ignore non-optional labels in types                                   
  -nostdlib  do not add default directory to the list of include directories       
  -o <file>  Set output file name to <file>                                        
  -output-obj  Output a C object file instead of an executable                     
  -pack  Package the given .cmo files into one .cmo                                
  -pp <command>  Pipe sources through preprocessor <command>                       
  -principal  Check principality of type inference                                 
  -rectypes  Allow arbitrary recursive types                                       
  -thread  Generate code that supports the system threads library                  
  -unsafe  No bounds checking on array and string access                           
  -use-runtime <file>  Generate bytecode for the given runtime system              
  -use_runtime <file>  (deprecated) same as -use-runtime                           
  -v  Print compiler version and location of standard library and exit             
  -version  Print compiler version and exit                                        
  -verbose  Print calls to external commands                                       
  -vmthread  Generate code that supports the threads library with VM-level         
     scheduling                                                                    
  -w <flags>  Enable or disable warnings according to <flags>:                     
     C/c enable/disable suspicious comment                                         
     D/d enable/disable deprecated features                                        
     E/e enable/disable fragile match                                              
     F/f enable/disable partially applied function                                 
     L/l enable/disable labels omitted in application                              
     M/m enable/disable overriden methods                                          
     P/p enable/disable partial match                                              
     S/s enable/disable non-unit statement                                         
     U/u enable/disable unused match case                                          
     V/v enable/disable overriden instance variables                               
     Y/y enable/disable suspicious unused variables                                
     Z/z enable/disable all other unused variables                                 
     X/x enable/disable all other warnings                                         
     A/a enable/disable all warnings                                               
     default setting is "Aelz"                                                     
  -warn-error <flags>  Treat the warnings of <flags> as errors, if they are        
     enabled.  See option -w for the list of flags.                                
     Default setting is "a" (warnings are not errors)                              
  -where  Print location of standard library and exit                              
  -nopervasives  (undocumented)                                                    
  -dparsetree  (undocumented)                                                      
  -drawlambda  (undocumented)                                                      
  -dlambda  (undocumented)                                                         
  -dinstr  (undocumented)
  -use-prims <file>  (undocumented)
  - <file>  Treat <file> as a file name (even if it starts with `-')
  -help  Display this list of options
  --help  Display this list of options
make[1]: *** [read_ini_file] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-scheme/schoca-0.3.0/work/schoca-0.3.0/examples'
make: *** [subdirs] Error 2
 *
 * ERROR: dev-scheme/schoca-0.3.0 failed.

Portage 2.2_rc11 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-hardened-r4 x86_64)                                                           
=================================================================                  
System uname: Linux-2.6.25-hardened-r4-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-glibc2.2.5                                                                    
Timestamp of tree: Fri, 03 Oct 2008 15:15:02 +0000                                 
ccache version 2.4 [disabled]                                                      
app-shells/bash:     3.2_p39                                                       
dev-java/java-config: 1.3.7, 2.1.6-r1                                              
dev-lang/python:     2.5.2-r8                                                      
dev-python/pycrypto: 2.0.1-r6                                                      
dev-util/ccache:     2.4-r8                                                        
sys-apps/baselayout: 2.0.0                                                         
sys-apps/openrc:     0.2.5                                                         
sys-apps/sandbox:    1.2.18.1-r3                                                   
sys-devel/autoconf:  2.63                                                          
sys-devel/automake:  1.10.1-r1                                                     
sys-devel/binutils:  2.18-r3                                                       
sys-devel/gcc-config: 1.4.0-r4                                                     
sys-devel/libtool:   2.2.6a                                                        
virtual/os-headers:  2.6.26                                                        
ACCEPT_KEYWORDS="amd64 ~amd64"                                                     
CBUILD="x86_64-pc-linux-gnu"                                                       
CFLAGS="-O2 -pipe"                                                                 
CHOST="x86_64-pc-linux-gnu"                                                        
CONFIG_PROTECT="/etc"                                                              
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/splash /etc/terminfo /etc/udev/rules.d"                                                                  
CXXFLAGS="-O2 -pipe"                                                               
DISTDIR="/usr/portage/distfiles"                                                   
FEATURES="buildpkg distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                             
GENTOO_MIRRORS="ftp://ftp.sunet.se/pub/Linux/distributions/gentoo"                 
LDFLAGS="-Wl,-O1"                                                                  
MAKEOPTS="-j4"                                                                     
PKGDIR="/usr/portage/packages"                                                     
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly objc openmp pampcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-03-13 19:27:33 UTC
Created attachment 184907 [details, diff]
proposed patch
Comment 2 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-03-28 18:32:18 UTC
Passing LDFLAGS to C linker via -cclib. 
fixed in CVS.