Re: strange configure error on Linux Mint 18.3

2018-04-25 Thread Thomas Stüfe
Sorry, that was wrong... here you go:

Runnable configure script is not present
Generating runnable configure script at
/shared/projects/openjdk/jdk-jdk/output-fastdebug/configure-support/generated-configure.sh
Using autoconf at /usr/bin/autoconf [autoconf (GNU Autoconf) 2.69]
configure: Configuration created at Wed Apr 25 12:09:25 CEST 2018.
checking for basename... /usr/bin/basename
checking for bash... /bin/bash
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cut... /usr/bin/cut
checking for date... /bin/date
checking for gdiff... no
checking for diff... /usr/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /bin/echo
checking for expr... /usr/bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /usr/bin/head
checking for gunzip... /bin/gunzip
checking for pigz... no
checking for gzip... /bin/gzip
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir
checking for mktemp... /bin/mktemp
checking for mv... /bin/mv
checking for nawk... /usr/bin/nawk
checking for printf... /usr/bin/printf
checking for greadlink... no
checking for readlink... /bin/readlink
checking for rm... /bin/rm
checking for rmdir... /bin/rmdir
checking for sh... /bin/sh
checking for sort... /usr/bin/sort
checking for tail... /usr/bin/tail
checking for gtar... no
checking for tar... /bin/tar
checking for tee... /usr/bin/tee
checking for touch... /usr/bin/touch
checking for tr... /usr/bin/tr
checking for uname... /bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/bin/xargs
checking for gawk... gawk
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for a sed that does not truncate output... /bin/sed
checking for cygpath... no
checking for df... /bin/df
checking for cpio... /bin/cpio
checking for nice... /usr/bin/nice
checking for pandoc... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking openjdk-build os-cpu... linux-x86_64
checking openjdk-target os-cpu... linux-x86_64
checking compilation type... native
checking for top-level directory... /shared/projects/openjdk/jdk-jdk/source
checking if custom source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which debug level to use... release
checking which variants of the JVM to build... server
checking for sysroot...
checking for toolchain path...
checking for extra path...
checking where to store configuration... in current directory
checking what configuration name to use...
/shared/projects/openjdk/jdk-jdk/output-fastdebug
checking for apt-get... apt-get
checking for gmake... no
checking for make... /usr/bin/make
configure: Testing potential make at /usr/bin/make, found using make in PATH
configure: Using GNU make at /usr/bin/make (version: GNU Make 4.1)
checking if make --output-sync is supported... yes
checking for output-sync value... none
checking if find supports -delete... yes
checking what type of tar was found... gnu
checking that grep (/bin/grep) -Fx handles empty lines in the pattern
list correctly... yes
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for ldd... /usr/bin/ldd
checking for greadelf... no
checking for readelf... /usr/bin/readelf
checking for dot... no
checking for hg... /usr/bin/hg
checking for stat... /usr/bin/stat
checking for time... /usr/bin/time
checking for flock... /usr/bin/flock
checking for dtrace... no
checking for gpatch... no
checking for patch... /usr/bin/patch
checking bash version... 4.3.48
checking if bash supports pipefail... yes
checking if bash supports errexit (-e)... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for default LOG value...
checking headless only... no
checking for graphviz dot... no, cannot generate full docs
checking for pandoc... no, cannot generate full docs
checking full docs... no, missing dependencies
checking for cacerts file... default
checking if packaged modules are kept... yes (default)
checking for version string... 11-internal+0-adhoc.thomas.source
configure: Found potential Boot JDK using configure arguments
checking for Boot JDK... /shared/projects/openjdk/jdks/openjdk9
checking Boot JDK version... openjdk version "9-internal" OpenJDK
Runtime Environment (build 9-internal+0-adhoc.jenkins.openjdk) OpenJDK
64-Bit Server VM (build 9-internal+0-adhoc.jenkins.openjdk, mixed
mode)
checking for java in Boot JDK... ok
checking for javac in Boot JDK... ok
checking for javadoc in Boot JDK... ok
checking for jar in Boot JDK... ok
checking for jarsigner in Boot J

Re: strange configure error on Linux Mint 18.3

2018-04-25 Thread Thomas Stüfe
Hi Magnus,

Ok I reverted the VM to the point before installing the dependencies.

Here you go:Runnable configure script is not present
Generating runnable configure script at
/shared/projects/openjdk/jdk-jdk/output-fastdebug/configure-support/generated-configure.sh
Using autoconf at /usr/bin/autoconf [autoconf (GNU Autoconf) 2.69]
configure: Configuration created at Wed Apr 25 12:06:11 CEST 2018.
checking for basename... /usr/bin/basename
checking for bash... /bin/bash
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cut... /usr/bin/cut
checking for date... /bin/date
checking for gdiff... no
checking for diff... /usr/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /bin/echo
checking for expr... /usr/bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /usr/bin/head
checking for gunzip... /bin/gunzip
checking for pigz... no
checking for gzip... /bin/gzip
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir
checking for mktemp... /bin/mktemp
checking for mv... /bin/mv
checking for nawk... /usr/bin/nawk
checking for printf... /usr/bin/printf
checking for greadlink... no
checking for readlink... /bin/readlink
checking for rm... /bin/rm
checking for rmdir... /bin/rmdir
checking for sh... /bin/sh
checking for sort... /usr/bin/sort
checking for tail... /usr/bin/tail
checking for gtar... no
checking for tar... /bin/tar
checking for tee... /usr/bin/tee
checking for touch... /usr/bin/touch
checking for tr... /usr/bin/tr
checking for uname... /bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/bin/xargs
checking for gawk... gawk
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for a sed that does not truncate output... /bin/sed
checking for cygpath... no
checking for df... /bin/df
checking for cpio... /bin/cpio
checking for nice... /usr/bin/nice
checking for pandoc... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking openjdk-build os-cpu... linux-x86_64
checking openjdk-target os-cpu... linux-x86_64
checking compilation type... native
checking for top-level directory... /shared/projects/openjdk/jdk-jdk/source
checking if custom source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which debug level to use... release
checking which variants of the JVM to build... server
checking for sysroot...
checking for toolchain path...
checking for extra path...
checking where to store configuration... in current directory
configure: Current directory is
/shared/projects/openjdk/jdk-jdk/output-fastdebug.
configure: Since this is not the source root, configure will output
the configuration here
configure: (as opposed to creating a configuration in
/build/).
configure: However, this directory is not empty. This is not allowed,
since it could
configure: seriously mess up just about everything.
configure: Try 'cd /shared/projects/openjdk/jdk-jdk/source' and
restart configure
configure: (or create a new empty directory and cd to it).
configure: error: Will not continue creating configuration in
/shared/projects/openjdk/jdk-jdk/output-fastdebug
configure exiting with result code 1

..Thomas



On Wed, Apr 25, 2018 at 11:23 AM, Magnus Ihse Bursie
 wrote:
> On 2018-04-24 14:50, Thomas Stüfe wrote:
>>
>> Hi all,
>
>
> Hi Thomas,
>
> What does the output from configure look like? The config.log file does not
> really help tell us how far into our configure script we've come.
>
> As John pointed out, the problem here was (likely) that you were missing the
> needed C libraries. However, we should have a test for this in configure,
> and I'm surprised it didn't alert you to the problem.
>
> /Magnus
>
>
>>
>> I got a configure error on a fresh, virgin Linux Mint 18.3 install. I
>> have not yet installed anything on that box (the only thing I
>> installed is autoconf).
>>
>> This fails at a point where normally I would get suggestions about
>> which tools to install with apt-get (which, btw, is really nice).
>> config.log contains this:
>>
>> ---
>>
>> Configured with: ../src/configure -v --with-pkgversion='Ubuntu
>> 5.4.0-6ubuntu1~16.04.5'
>> --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
>> --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++
>> --prefix=/usr --program-suffix=-5 --enable-shared
>> --enable-linker-build-id --libexecdir=/usr/lib
>> --without-included-gettext --enable-threads=posix --libdir=/usr/lib
>> --enable-nls --with-sysroot=/ --enable-clocale=gnu
>> --enable-libstdcxx-debug --enable-libstdcxx-time=yes
>> --with-default-libstdcxx-abi

Re: strange configure error on Linux Mint 18.3

2018-04-25 Thread Magnus Ihse Bursie

On 2018-04-24 14:50, Thomas Stüfe wrote:

Hi all,


Hi Thomas,

What does the output from configure look like? The config.log file does 
not really help tell us how far into our configure script we've come.


As John pointed out, the problem here was (likely) that you were missing 
the needed C libraries. However, we should have a test for this in 
configure, and I'm surprised it didn't alert you to the problem.


/Magnus



I got a configure error on a fresh, virgin Linux Mint 18.3 install. I
have not yet installed anything on that box (the only thing I
installed is autoconf).

This fails at a point where normally I would get suggestions about
which tools to install with apt-get (which, btw, is really nice).
config.log contains this:

---

Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.5'
--with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++
--prefix=/usr --program-suffix=-5 --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)
configure:35364: $? = 0
configure:35353: /usr/bin/gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:35364: $? = 1
configure:35353: /usr/bin/gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:35364: $? = 1
configure:35384: checking whether the C compiler works
configure:35406: /usr/bin/gcc -m64-m64   conftest.c  >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:35410: $? = 1
configure:35448: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "OpenJDK"
| #define PACKAGE_TARNAME "openjdk"
| #define PACKAGE_VERSION "jdk9"
| #define PACKAGE_STRING "OpenJDK jdk9"
| #define PACKAGE_BUGREPORT "build-dev@openjdk.java.net"
| #define PACKAGE_URL "http://openjdk.java.net";
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:35453: error: in `/shared/projects/openjdk/jdk-jdk/output-fastdebug':
configure:35455: error: C compiler cannot create executables

-

Weirdly enough the compiler is ran once with -qversion, which is an
AIX-only option, and once with -V, which is not valid either.

Has anyone seen this already? (Note that I used Mint18.3 as
development machine before and it just worked).

Thanks, Thomas




Re: strange configure error on Linux Mint 18.3

2018-04-24 Thread John Paul Adrian Glaubitz
On 04/24/2018 06:24 PM, Thomas Stüfe wrote:
> Thanks Adrian!
> 
> I installed the build prereqs and now I am fine.

Great. I'm glad I was able to help :).

> Wiki is good, btw.

I have written down instructions for bootstrapping various compilers
in Debian since that happens every time we are adding a new architecture:

> https://wiki.debian.org/PortsDocs/BootstrappingFPC
> https://wiki.debian.org/PortsDocs/BootstrappingGHC
> https://wiki.debian.org/PortsDocs/BootstrappingOpenJDK
> https://wiki.debian.org/PortsDocs/BootstrappingRust

The instructions aren't necessary complete or up-to-date, but they
should give good pointers.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Re: strange configure error on Linux Mint 18.3

2018-04-24 Thread Thomas Stüfe
Thanks Adrian!

I installed the build prereqs and now I am fine.

Wiki is good, btw.

Best Regards, Thomas

On Tue, Apr 24, 2018 at 3:51 PM, John Paul Adrian Glaubitz
 wrote:
> On 04/24/2018 03:25 PM, Thomas Stüfe wrote:
>>>
>>> Have you tried "apt build-dep openjdk-9"? This should install all the
>>> necessary build dependencies.
>>
>>
>> This is cool! I did not know that.
>>
>> Unfortunately it seems not to work on my box:
>>
>> thomas@mint18 /shared/projects/openjdk/jdk-jdk/source $ sudo apt-get
>> build-dep openjdk-9
>> Reading package lists... Done
>> E: You must put some 'source' URIs in your sources.list
>
>
> You need to add the corresponding "deb-src" entries for the "deb"
> entries in your /etc/apt/sources.list.
>
> On my Debian box, it looks like this:
>
> deb http://ftp.de.debian.org/debian unstable main contrib non-free
> deb-src http://ftp.de.debian.org/debian unstable main contrib non-free
>
> For Linux Mint, you need to use the corresponding line from the
> Linux Mint mirrors. After editing the sources.list, you need to
> run "apt update".
>
>> :) Sure. As I wrote, I think the bug would be that configure does not
>> display nice "you should run apt-get x" messages like it used to.
>>
>>> PS: If you are using a real Debian instead of Linux Mint, you get a
>>>  free Multi-Arch environment for free and can easily cross-build
>>>  OpenJDK for all the architectures found in Debian. Let me know
>>>  if you want me to write up a small HowTo.
>>>
>>
>> Such a braindump from you would be surely welcome.
>
>
> I just realized I already did that:
>
>> https://wiki.debian.org/PortsDocs/BootstrappingOpenJDK
>
>
> Needs some updating though.
>
>
> Adrian
>
> --
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaub...@debian.org
> `. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
>   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Re: strange configure error on Linux Mint 18.3

2018-04-24 Thread John Paul Adrian Glaubitz

On 04/24/2018 03:25 PM, Thomas Stüfe wrote:

Have you tried "apt build-dep openjdk-9"? This should install all the
necessary build dependencies.


This is cool! I did not know that.

Unfortunately it seems not to work on my box:

thomas@mint18 /shared/projects/openjdk/jdk-jdk/source $ sudo apt-get
build-dep openjdk-9
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list


You need to add the corresponding "deb-src" entries for the "deb"
entries in your /etc/apt/sources.list.

On my Debian box, it looks like this:

deb http://ftp.de.debian.org/debian unstable main contrib non-free
deb-src http://ftp.de.debian.org/debian unstable main contrib non-free

For Linux Mint, you need to use the corresponding line from the
Linux Mint mirrors. After editing the sources.list, you need to
run "apt update".


:) Sure. As I wrote, I think the bug would be that configure does not
display nice "you should run apt-get x" messages like it used to.


PS: If you are using a real Debian instead of Linux Mint, you get a
 free Multi-Arch environment for free and can easily cross-build
 OpenJDK for all the architectures found in Debian. Let me know
 if you want me to write up a small HowTo.



Such a braindump from you would be surely welcome.


I just realized I already did that:


https://wiki.debian.org/PortsDocs/BootstrappingOpenJDK


Needs some updating though.

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Re: strange configure error on Linux Mint 18.3

2018-04-24 Thread Thomas Stüfe
Hi Adrian,

On Tue, Apr 24, 2018 at 3:01 PM, John Paul Adrian Glaubitz
 wrote:
> Hi Thomas!
>
> On 04/24/2018 02:50 PM, Thomas Stüfe wrote:
>>
>> I got a configure error on a fresh, virgin Linux Mint 18.3 install. I
>> have not yet installed anything on that box (the only thing I
>> installed is autoconf).
>
>
> Have you tried "apt build-dep openjdk-9"? This should install all the
> necessary build dependencies.

This is cool! I did not know that.

Unfortunately it seems not to work on my box:

thomas@mint18 /shared/projects/openjdk/jdk-jdk/source $ sudo apt-get
build-dep openjdk-9
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list

>
>> This fails at a point where normally I would get suggestions about
>> which tools to install with apt-get (which, btw, is really nice).
>> config.log contains this:
>> (...)
>> /usr/bin/ld: cannot find crt1.o: No such file or directory
>> /usr/bin/ld: cannot find crti.o: No such file or directory
>> /usr/bin/ld: cannot find -lc
>> /usr/bin/ld: cannot find crtn.o: No such file or directory
>
>
> You're missing the Debian package libc6-dev:
>
> root@z6:~> dpkg -L libc6-dev |grep crt
> /usr/lib/x86_64-linux-gnu/Mcrt1.o
> /usr/lib/x86_64-linux-gnu/Scrt1.o
> /usr/lib/x86_64-linux-gnu/crt1.o
> /usr/lib/x86_64-linux-gnu/crti.o
> /usr/lib/x86_64-linux-gnu/crtn.o
> /usr/lib/x86_64-linux-gnu/gcrt1.o
> /usr/lib/x86_64-linux-gnu/grcrt1.o
> /usr/lib/x86_64-linux-gnu/rcrt1.o
> root@z6:~>
>
>> Weirdly enough the compiler is ran once with -qversion, which is an
>> AIX-only option, and once with -V, which is not valid either.
>
>
> This is perfectly normal and the way autoconf works. It tries various
> compiler options and runs various tests, including test compiles,
> and checks the result. autoconf cannot know in advance what toolchain
> and which operating system you are using, so it has to perform these
> tests. The error messages are normally just redirected to /dev/null
> and only show in config.log.

Ah, thanks for the explanation!

>
>> Has anyone seen this already? (Note that I used Mint18.3 as
>> development machine before and it just worked).
>
>
> Yes, it's perfectly normal when you try to configure OpenJDK without
> any of its build dependencies installed :).
>

:) Sure. As I wrote, I think the bug would be that configure does not
display nice "you should run apt-get x" messages like it used to.

> PS: If you are using a real Debian instead of Linux Mint, you get a
> free Multi-Arch environment for free and can easily cross-build
> OpenJDK for all the architectures found in Debian. Let me know
> if you want me to write up a small HowTo.
>

Such a braindump from you would be surely welcome.

..Thomas

> Adrian
>
> --
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaub...@debian.org
> `. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
>   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Re: strange configure error on Linux Mint 18.3

2018-04-24 Thread John Paul Adrian Glaubitz

Hi Thomas!

On 04/24/2018 02:50 PM, Thomas Stüfe wrote:

I got a configure error on a fresh, virgin Linux Mint 18.3 install. I
have not yet installed anything on that box (the only thing I
installed is autoconf).


Have you tried "apt build-dep openjdk-9"? This should install all the
necessary build dependencies.


This fails at a point where normally I would get suggestions about
which tools to install with apt-get (which, btw, is really nice).
config.log contains this:
(...)
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory


You're missing the Debian package libc6-dev:

root@z6:~> dpkg -L libc6-dev |grep crt
/usr/lib/x86_64-linux-gnu/Mcrt1.o
/usr/lib/x86_64-linux-gnu/Scrt1.o
/usr/lib/x86_64-linux-gnu/crt1.o
/usr/lib/x86_64-linux-gnu/crti.o
/usr/lib/x86_64-linux-gnu/crtn.o
/usr/lib/x86_64-linux-gnu/gcrt1.o
/usr/lib/x86_64-linux-gnu/grcrt1.o
/usr/lib/x86_64-linux-gnu/rcrt1.o
root@z6:~>


Weirdly enough the compiler is ran once with -qversion, which is an
AIX-only option, and once with -V, which is not valid either.


This is perfectly normal and the way autoconf works. It tries various
compiler options and runs various tests, including test compiles,
and checks the result. autoconf cannot know in advance what toolchain
and which operating system you are using, so it has to perform these
tests. The error messages are normally just redirected to /dev/null
and only show in config.log.


Has anyone seen this already? (Note that I used Mint18.3 as
development machine before and it just worked).


Yes, it's perfectly normal when you try to configure OpenJDK without
any of its build dependencies installed :).

PS: If you are using a real Debian instead of Linux Mint, you get a
free Multi-Arch environment for free and can easily cross-build
OpenJDK for all the architectures found in Debian. Let me know
if you want me to write up a small HowTo.

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


strange configure error on Linux Mint 18.3

2018-04-24 Thread Thomas Stüfe
Hi all,

I got a configure error on a fresh, virgin Linux Mint 18.3 install. I
have not yet installed anything on that box (the only thing I
installed is autoconf).

This fails at a point where normally I would get suggestions about
which tools to install with apt-get (which, btw, is really nice).
config.log contains this:

---

Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.5'
--with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++
--prefix=/usr --program-suffix=-5 --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)
configure:35364: $? = 0
configure:35353: /usr/bin/gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:35364: $? = 1
configure:35353: /usr/bin/gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:35364: $? = 1
configure:35384: checking whether the C compiler works
configure:35406: /usr/bin/gcc -m64-m64   conftest.c  >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:35410: $? = 1
configure:35448: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "OpenJDK"
| #define PACKAGE_TARNAME "openjdk"
| #define PACKAGE_VERSION "jdk9"
| #define PACKAGE_STRING "OpenJDK jdk9"
| #define PACKAGE_BUGREPORT "build-dev@openjdk.java.net"
| #define PACKAGE_URL "http://openjdk.java.net";
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:35453: error: in `/shared/projects/openjdk/jdk-jdk/output-fastdebug':
configure:35455: error: C compiler cannot create executables

-

Weirdly enough the compiler is ran once with -qversion, which is an
AIX-only option, and once with -V, which is not valid either.

Has anyone seen this already? (Note that I used Mint18.3 as
development machine before and it just worked).

Thanks, Thomas