bugGNU nano - Bugs: bug #66978, cross-compiling configure...

 
 

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

bug #66978: cross-compiling configure regression in nano-8.4

Submitter:  Chris Renshaw <osm0sis>
Submitted:  Wed 02 Apr 2025 08:37:05 PM UTC
Votes: 1
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  None Open/Closed:  Open

Jump to the original submission

Mon 14 Apr 2025 08:57:43 AM UTC, comment #9: 

Addressed in git, commit 131849e7, by pulling in the fix from gnulib.

Benno Schulenberg <bens>
Group administrator
Thu 10 Apr 2025 03:43:16 PM UTC, comment #8: 

Thanks everyone, very much appreciate your efforts!

Chris Renshaw <osm0sis>
Thu 10 Apr 2025 02:44:29 PM UTC, comment #7: 
Bruno Haible <haible>
Thu 10 Apr 2025 01:54:05 PM UTC, comment #6: 

Thanks for posting the report, Rudi.

Nano can be built for Termux with a cross-compiler by using the same 'gl_cv_func_strcasecmp_works=yes' "cheat":

https://github.com/termux/termux-packages/commit/55a5a4f88cea

Benno Schulenberg <bens>
Group administrator
Thu 10 Apr 2025 01:50:26 PM UTC, comment #5: 
Rudi Heitbaum <heitbaum>
Thu 10 Apr 2025 12:59:32 PM UTC, comment #4: 

Diffutils 3.12 also fails on Linux Ubuntu when cross compiling. Link: https://lists.gnu.org/archive/html/bug-diffutils/2025-04/msg00003.html

I have tested using gl_cv_func_strcasecmp_works=yes which allows configure to pass. But really not sure on the check, as doing a host compile returns an error of 2 the first time in the config.log

Rudi Heitbaum <heitbaum>
Thu 10 Apr 2025 03:24:30 AM UTC, comment #3: 

I can confirm rolling back the gnulib hash got 8.4 to cross compile. Unfortunately I won't have time for awhile to file anything with gnulib regarding the issue. If you'd be able to instead that's great, if not I'll eventually get to it.

Chris Renshaw <osm0sis>
Wed 09 Apr 2025 10:46:55 AM UTC, comment #2: 

Ping?  Any news on this, Chris?

Benno Schulenberg <bens>
Group administrator
Thu 03 Apr 2025 09:31:51 AM UTC, comment #1: 

Grepping the config.logs from 8.3 and 8.4 for "casecmp" and diffing the results gave me:

-configure:45182: checking for strcasecmp
-configure:45195: checking for strncasecmp
-configure:45207: checking whether strncasecmp is declared
+configure:45307: checking for strcasecmp
+configure:45317: checking whether strcasecmp works
+configure:45782: checking for strncasecmp
+configure:45792: checking whether strcasecmp works
+configure:45856: checking whether strncasecmp is declared
 ac_cv_func_strcasecmp=yes
 ac_cv_func_strncasecmp=yes
 ac_cv_have_decl_strncasecmp=yes
+gl_cv_func_strcasecmp_works=yes

Apparently gnulib has added a check to see whether strcasecmp() works.  I suppose that check should be skipped when cross-compiling?  Please report this issue to bug-gnulib.

Benno Schulenberg <bens>
Group administrator
Wed 02 Apr 2025 08:37:05 PM UTC, original submission:  

Using my same android toolchains (arm-linux-androideabi and aarch64-linux-android) which worked for nano-8.3 I'm now getting an error while trying to configure for nano-8.4.


configure output ends with:

checking whether strcasecmp works... configure: error: in '/home/osm0sis/nano-8.4':
configure: error: cannot run test program while cross compiling
See 'config.log' for more details


config.log ends with:

#define HAVE_STRCASECMP 1

configure: exit 1


Happy to try out any potential patches to fix or provide more complete logs. Thanks!

Chris Renshaw <osm0sis>

 

(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 haible (Posted a comment)
  • -email is unavailable- added by heitbaum (Posted a comment)
  • -email is unavailable- added by heitbaum (Voted in favor of this item)
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by osm0sis (Submitted the item)
  •  

    There is 1 vote 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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-04-14 bens StatusNone Fixed
        SummaryCross-compiling configure regression in nano-8.4 cross-compiling configure regression in nano-8.4
    2025-04-06 heitbaum Carbon-Copy- Added heitbaum

    Back to the top

    Powered by Savane 3.14-962f.
    Corresponding source code