public inbox for eclipse@sourceware.org
 help / color / mirror / Atom feed
From: Marcos Dione <mdione@grulic.org.ar>
To: eclipse@sources.redhat.com
Subject: cannot build from srpm.
Date: Tue, 12 Aug 2003 14:53:00 -0000	[thread overview]
Message-ID: <20030812115856.GD2137@sexy> (raw)


    I know this is a redhat mailing list, but I think that if this can
be built in redhat, it must be buildable on any distro. so...

    I'm using eclipse under debian. once I heard that it was compiled
under linux w/ gcj, I wanted to do the same. so I downloaded the srpm,
used alien to convert it to a .tgz which contained the .spect and the
tar.gz w/ the sources. I uncompressed the sources and poked into the
.spec searching for the %build section. I found it, copied it to a
script file, set up the variables correctly and run it. the compilation
stops in the link step:

mdione@sexy:~/src/e$ ./b.sh
gcj-3.3 -shared --encoding=ISO-8859-1 -fPIC  --classpath=.:compiler:batch --extdirs=/usr/share/java -o lib-org-eclipse-jdt-core.so obj/antadapter/org/eclipse/jdt/core/EcjJDTCompilerAdapter.o ... obj/compiler/org/eclipse/jdt/internal/compiler/parser/parser5.o -l-org-apache-tools-1.5.2
/usr/bin/ld: cannot find -l-org-apache-tools-1.5.2
collect2: ld returned 1 exit status
make: *** [lib-org-eclipse-jdt-core.so] Error 1

the script I use (that b.sh) is:

export java_home=/usr/lib/j2se/1.4;
export java_jre=/usr;
export java_runtime=${java_jre}/share/java/libgcj-3.3.1.jar;
export java_bin=/usr/bin;
#
# Define as true to compile to native.
export gcj_build=true;
# Define as true to build .class files with ecj.
export ecj_build=true;

export JAVA_HOME=${java_home};
export PATH=${java_bin}:/usr/bin:$PATH;

target=buildAll;
build_options="-os linux -ws gtk -bc ${java_runtime}";

if ${gcj_build}; then
  export JAVACMD=${java_bin}/gij-3.3;
  export GCJ=gcj-3.3;
  export CC=gcc-3.3;
  target=gcjBuild;
fi;

if ${ecj_build}; then
  build_options="$build_options -ecj";
fi;

./build -target $target $build_options;

    as you can see, is a bash version of the %build section of the .spec
file. I don't see any org.apache.tools dir nor a way to compile that
lib. what's wrong? or is it that the build is too much coupled to the
redhat distro?

             reply	other threads:[~2003-08-12 14:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-12 14:53 Marcos Dione [this message]
2003-08-12 16:06 ` Tom Tromey
2003-08-12 16:31   ` Marcos Dione
2003-08-12 16:34     ` Tom Tromey
2003-08-12 17:08       ` Marcos Dione
2003-08-12 18:09         ` Tom Tromey
2003-08-12 21:27         ` Jan Schulz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030812115856.GD2137@sexy \
    --to=mdione@grulic.org.ar \
    --cc=eclipse@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).