bugGNU Astronomy Utilities - Bugs: bug #57893, Failure to cross-compile Gnuastro...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #57893: Failure to cross-compile Gnuastro 0.11 for i686-linux-musl

Submitter:  Mosè Giordano <giordano>
Submitted:  Tue 25 Feb 2020 03:59:24 PM UTC
   
 
Category:  Installation Severity:  3 - Normal
Item Group:  Configuration file Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Tue 25 Feb 2020 11:25:06 PM UTC, comment #3: 

Great! I am happy it worked out ;-). So I'll "close" the bug.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 25 Feb 2020 11:00:57 PM UTC, comment #2: 

Oh, I see what happened.  The environment where I'm building is a x86_64-linux-musl (based on Alpine Linux).  It can theoretically run i686-linux-musl programs as well, but the toolchain for i686-linux-musl is a bit bugged and it can actually run only few programs.  Thus, the test to check whether we're cross-compiling indicates that we can run programs, but the check for a working getgroups fails to run the program, thus failing the test and causing the problems during the compilation mentioned in the original message.

My temporary solution is to convince the `configure` script that I'm cross-compiling, so that it won't try to run programs.  The long-term solution will be to fix the toolchain so that it'll be able to run all kind of programs.

Thanks for the pointer to the failing getgroups check, that was very useful!

Mosè Giordano <giordano>
Group Member
Tue 25 Feb 2020 10:28:08 PM UTC, comment #1: 

Thanks, I have seen this error before. Can you send me the `config.log' file.

It is a problem in the configure step: for some reason, Gnulib getgroups test is failing, so it thinks you don't have getgroups, while you do.

I remember in the other case, it was a linking problem ;-).

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 25 Feb 2020 03:59:24 PM UTC, original submission:  

I'm trying to cross-copmile Gnuastro for all platforms supported by Julia, to make it easier for users to interface to the library and call the executables from within Julia, but the build for i686-linux-musl is failing with the following error:


libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I/workspace/destdir/include -Wall -O3 -pthread -MT getgroups.lo -MD -MP -MF .deps/getgroups.Tpo -c getgroups.c  -fPIC -DPIC -o .libs/getgroups.o
In file included from getgroups.c:22:0:
getgroups.c:33:1: error: conflicting types for ‘rpl_getgroups’
 getgroups (int n _GL_UNUSED, GETGROUPS_T *groups _GL_UNUSED)
 ^
In file included from getgroups.c:22:0:
./unistd.h:1251:1: note: previous declaration of ‘rpl_getgroups’ was here
 _GL_FUNCDECL_RPL (getgroups, int, (int n, gid_t *groups));
 ^
make[4]: *** [Makefile:2403: getgroups.lo] Error 1
make[4]: Leaving directory '/workspace/srcdir/gnuastro-0.11/bootstrapped/lib'
make[3]: *** [Makefile:2425: all-recursive] Error 1
make[3]: Leaving directory '/workspace/srcdir/gnuastro-0.11/bootstrapped/lib'
make[2]: *** [Makefile:2180: all] Error 2
make[2]: Leaving directory '/workspace/srcdir/gnuastro-0.11/bootstrapped/lib'
make[1]: *** [Makefile:2077: all-recursive] Error 1
make[1]: Leaving directory '/workspace/srcdir/gnuastro-0.11'
make: *** [Makefile:1967: all] Error 2


I found old reports about this issues, but it wasn't clear to me whether this was supposed to have been fixed

Mosè Giordano <giordano>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Posted a comment)
  • -email is unavailable- added by giordano (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-25 makhlaghi Open/ClosedOpen Closed
    2020-02-25 giordano StatusNone Invalid

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code