LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-27-2012, 07:41 AM   #16
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,397

Rep: Reputation: Disabled

It would be possible to build OpenJDK on Slackware ARM 13.37 ... I did the same for Slackware 13.37. But you have to tweak the installation of gcc and seamonkey for that.

There are two scripts which I wrote that apply these tweaks. They are in my openjdk/build directory: create_gcj_jvm.sh
and fix_seamonkey_pkgconfig.sh. Run both of them, once. The change will be permanent for gcc (basically it will add a directory structure with a lot of symlinks and this will not alter any of the existing gcc files). The change willnot be permanent for seamonkey: it will be undone when you upgrade that package.

After running those two scripts, try compiling openjdk again. And remove any old Sun/Oracle JDK/JRE first! And logout/login again.

Eric
 
Old 03-27-2012, 08:37 AM   #17
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
A consistent error log ^^:

checking for a JDK home directory... /usr/lib/jvm
checking if a java binary was specified... no
checking if /usr/lib/jvm/bin/java is a valid executable file... yes
checking for javac... /usr/lib/jvm/bin/javac
checking for ecj... /usr/bin/ecj
checking if we are using ecj as javac... yes
checking if a javah executable is specified... no
checking if /usr/lib/jvm/bin/javah is a valid executable file... yes
checking if a jar executable is specified... no
checking if /usr/lib/jvm/bin/jar is a valid executable file... yes
checking whether jar supports @<file> argument... yes
checking whether jar supports stdin file arguments... yes
checking whether jar supports -J options at the end... yes
checking if an rmic executable is specified... no
checking if /usr/lib/jvm/bin/rmic is a valid executable file... yes
checking if a native2ascii binary was specified... no
checking if /usr/lib/jvm/bin/native2ascii is a valid executable file... no
checking for native2ascii... no
checking for gnative2ascii... no
configure: error: "A native2ascii converter was not found."
make: *** No targets specified and no makefile found. Stop.
 
Old 03-27-2012, 04:32 PM   #18
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,397

Rep: Reputation: Disabled
Ah yes, this is a bug in the packaging of the gcc compilers, which was fixed in Slackware-current.
The gnative2ascii program is mistakenly present in the gcc-gnat package. Install that and try again.
Better even: do a full Slackware install and then try again. I usually do not support failed compilations on non-full Slackware installations.

Eric
 
Old 03-28-2012, 03:43 AM   #19
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
gcc-gnat doesn't exist in ARMeslack (should i whine/report to MoZes ?).
gnative2ascii should normally be in which package ?

I'll take a look to see if i can compile the sources.
--edit: erf, it's all gcc in one source :/

Last edited by Linux.tar.gz; 03-28-2012 at 03:45 AM.
 
Old 03-28-2012, 11:57 AM   #20
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,397

Rep: Reputation: Disabled
Quote:
Originally Posted by Linux.tar.gz View Post
gcc-gnat doesn't exist in ARMeslack (should i whine/report to MoZes ?).
gnative2ascii should normally be in which package ?
Upgrade to armdslack-current then. It's fixed there.

Eric
 
Old 03-28-2012, 12:02 PM   #21
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
It's a bit radical.
Maybe i can try to install/upgrade only the package supposed to contain gnative2ascii ?
 
Old 03-28-2012, 01:42 PM   #22
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,397

Rep: Reputation: Disabled
You can not update only gcc. It's all or nothing when talking about updates to gcc/glibc - all or nothing meaning all the rest too.

Eric
 
Old 03-28-2012, 03:44 PM   #23
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Ok.

Thanks for all help.
 
Old 04-09-2012, 08:23 AM   #24
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Building on ARMedslack -current:
At the first compile line after the ./configure from the Slackbuild script:
gcj: internal compiler error: Killed (program jc1)
 
Old 04-09-2012, 09:21 AM   #25
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,397

Rep: Reputation: Disabled
Building what? LibreOffice or OpenJDK?

Eric
 
Old 04-10-2012, 12:30 PM   #26
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Oh ! It was OpenJDK.
 
Old 04-12-2012, 04:50 PM   #27
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,397

Rep: Reputation: Disabled
I uploaded my LibreOffice 3.5.2 packages earlier today. The SlackBuild I used for those, is the same which is compiling LibreOffice on my trimslice at the moment (going at it for a day already): http://slackware.com/~alien/slackbui...ice.SlackBuild . Note that the build directory contains two patches specific to ARM and gcc 4.7. Let's hope the build succeeds before the trimslice runs out of diskspace... like it did yesterday.

Needless to say that I am building on a slackware-current port for ARM. It needs Java and gcj will not do. You will need OpenJDK which I could only compile on -current for ARM (needed a recent gcc and glibc).

Eric
 
Old 04-13-2012, 06:30 AM   #28
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Will retry OpenJDK with the new gcc updates from -current.

Is there a discussion around here to create a sub-forum dedicated to ARM ?
 
Old 04-13-2012, 07:34 AM   #29
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Same problem :/
 
Old 08-26-2012, 09:34 PM   #30
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
I'm re-giving a go.

In the openjdk SlackBuild, i don't see when the arm patch is applied.
http://www.slackware.com/~alien/slac...jdk.SlackBuild
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libre office take up whole window. casperdaghost Linux - Newbie 4 02-04-2012 09:44 AM
Libre Office database jdtiede Linux - Software 1 12-11-2011 05:22 AM
install libre office mposwal Slackware 12 11-03-2011 08:34 PM
LXer: Libre Office Initial plans for the free office suite [German] LXer Syndicated Linux News 2 11-14-2010 06:14 PM


All times are GMT -5. The time now is 06:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration