harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Garner <robin.gar...@anu.edu.au>
Subject Re: [DRLVM] Build problems - missing bfd.h
Date Fri, 22 Sep 2006 01:18:16 GMT
Geir Magnusson Jr. wrote:
> 
> On Sep 21, 2006, at 1:09 AM, Robin Garner wrote:
> 
>> Trying to build the latest trunk (r448461) on Ubuntu (6.06).
> 
> 
> That's my main build platform.  No need to hack anything.
> 
>>   Had to hack build.sh because the ant executable isn't in ANT_HOME,
> 
> That's weird.  You shouldn't have to do that.

These fragments from build.sh:

# Apache Ant 1.6.2 or higher (can be obtained at http://ant.apache.org)
if [ -z "$ANT_HOME" ]; then
     ANT_HOME=$EXTERNAL_DIR/common/apache-ant-1.6.5-bin/apache-ant-1.6.5
fi
...
elif [ ! -x $ANT_HOME/bin/ant ]; then
    echo "* File $ANT_HOME/bin/ant not found."
    echo "* Make sure you have Ant 1.6.5 or above installed from"
    echo "* http://ant.apache.org/bindownload.cgi and that ANT_HOME 
environment"
    echo "* variable points out to the Ant installation dir, e.g. "
    echo "* export ANT_HOME=/usr/local/ant_1.6.5"
    ERROR
fi
...
export ANT_HOME=`(cd $ANT_HOME;pwd)`
...
ANT_COMMAND="$ANT_HOME/bin/ant --noconfig"

seems to indicate otherwise, if you want to use the default ubuntu ant 
install.  Doing "export ANT_HOME=`(cd $ANT_HOME;pwd)`" seems a bit 
*cough* 'suboptimal' :)

>> and add a URL to download xalan
> 
> No need to do that either.  The xalan problem means that DRLVM wasn't 
> finding the classlib tree correctly, where the Xalan dep is.   By 
> default, DRLVM assumes that classlib and it are arranged on the 
> filesystem as they are in SVN :
> 
>    enhanced/
>              classlib/
>                      trunk/
>              drlvm/
>                     trunk/
> 
> but if you are using the "federated build" that is enhanced/trunk, then 
> the relationship is different.
>
> The best way is to look at   build/drlvm.properties.example, copy to 
> build/drlvm.properties and adjust so it's right.

Ah ... yep, works a treat.

>> , but now the build fails with a missing "bfd.h" (full error message 
>> below).
> 
> you need to install binutils for bfd, IIRC.

binutils-dev does the trick.

Thanks,
Robin

>>
>> Any pointers ?
>>
>> cheers,
>> Robin
>>
>> ------------------
>>
>> build.native.c:
>>        [cc] Starting dependency analysis for 10 files.
>>        [cc] 10 files are up to date.
>>        [cc] 0 files to be recompiled from dependency analysis.
>>        [cc] 2 total files to be compiled.
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:21:17: 
>> error: bfd.h: No such file or directory
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:22:21: 
>> error: dis-asm.h: No such file or directory
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:63: 
>> error: syntax error before ‘fprintf_ftype’
>>        [cc] cc1: warnings being treated as errors
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:65: 
>> warning: ‘struct disassemble_info’ declared inside parameter list
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:65: 
>> warning: its scope is only this definition or declaration, which is 
>> probably not what you want
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:70: 
>> error: field ‘bfd_info’ has incomplete type
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:81: 
>> error: syntax error before ‘bfd_decoder’
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:81: 
>> warning: initialization makes integer from pointer without a cast
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:81: 
>> warning: data definition has no type or storage class
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:89: 
>> error: syntax error before ‘src’
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c: In 
>> function ‘disasm_read_memory’:
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:94: 
>> error: ‘buffer’ undeclared (first use in this function)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:94: 
>> error: (Each undeclared identifier is reported only once
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:94: 
>> error: for each function it appears in.)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:94: 
>> error: ‘src’ undeclared (first use in this function)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:94: 
>> error: ‘n’ undeclared (first use in this function)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c: At top 
>> level:
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:103: 
>> error: syntax error before ‘memaddr’
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c: In 
>> function ‘disasm_print_adress_default’:
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:105: 
>> error: ‘info’ undeclared (first use in this function)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:105: 
>> error: ‘memaddr’ undeclared (first use in this function)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c: In 
>> function ‘disasm_print’:
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:177: 
>> error: ‘bfd_vma’ undeclared (first use in this function)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:177: 
>> error: syntax error before ‘apr_uint32_t’
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:183: 
>> error: syntax error before ‘apr_uint32_t’
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c: In 
>> function ‘port_disasm_initialize’:
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:297: 
>> error: ‘disassembler_ftype’ undeclared (first use in this function)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:297: 
>> error: syntax error before ‘bfd_print_insn_sym’
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c: In 
>> function ‘port_disassembler_create’:
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:330: 
>> error: ‘bfd_arch_i386’ undeclared (first use in this function)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:331: 
>> error: ‘bfd_mach_i386_i386_intel_syntax’ undeclared (first use in this 
>> function)
>>        [cc] 
>> /home/robing/harmony/drlvm/vm/port/src/disasm/linux/disasm.c:339: 
>> error: ‘BFD_ENDIAN_LITTLE’ undeclared (first use in this function)
>>
>> BUILD FAILED
>> /home/robing/harmony/drlvm/build/make/build.xml:404: The following 
>> error occurred while executing this line:
>> /home/robing/harmony/drlvm/build/make/build.xml:411: The following 
>> error occurred while executing this line:
>> /home/robing/harmony/drlvm/build/make/build_component.xml:72: The 
>> following error occurred while executing this line:
>> /home/robing/harmony/drlvm/build/lnx_ia32_gcc_debug/semis/build/targets/build.native.xml:65:

>> gcc failed with return code 1
>>
>> Total time: 47 seconds
>> *
>> * Please, refer to README.txt for details.
>>
>>
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> 


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message