Bug 286114 - math/R fails to configure
Summary: math/R fails to configure
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Only Me
Assignee: Joseph Mingrone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-15 15:30 UTC by Mikhail Teterin
Modified: 2025-04-17 17:49 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (jrm)


Attachments
config.log with the "cannot compute sizeof (int)" error (179.62 KB, text/plain)
2025-04-15 15:30 UTC, Mikhail Teterin
no flags Details
Config.log with the Fortran error (210.17 KB, text/plain)
2025-04-15 15:34 UTC, Mikhail Teterin
no flags Details
test sizeof(int) in R's configure script (3.90 KB, text/plain)
2025-04-17 17:40 UTC, Joseph Mingrone
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer freebsd_triage 2025-04-15 15:30:40 UTC
Created attachment 259585 [details]
config.log with the "cannot compute sizeof (int)" error

The configure script keeps failing here, with two different reasons alternating:
 - cannot compute sizeof (int)
 - Some fortran/C incompatibility

The _real_ problem must be somewhere else, but I don't know, how to find it.
Comment 1 Mikhail Teterin freebsd_committer freebsd_triage 2025-04-15 15:34:52 UTC
Created attachment 259586 [details]
Config.log with the Fortran error
Comment 2 Joseph Mingrone freebsd_committer freebsd_triage 2025-04-17 17:39:50 UTC
I tried to reproduce the errors building math/R in a 14.2 i386 jail but didn't run into any problems. Here's the build log from a successful run:  https://pkg.ftfl.ca/data/14i386-default/2025-04-17_11h16m08s/logs/R-4.4.3.log

If I'm interpreting the original config.log correctly, the error stems from the attached test program used to check sizeof(int).  Could you try compiling and running this manually?

Is this what you see when you build and run it with gcc13?

% gcc13 -o conftest -O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing conftest.c -lm
jrm@asn ~ % ./conftest && echo $?
0

How about the gcc14 you were using when you encountered the errors?
Comment 3 Joseph Mingrone freebsd_committer freebsd_triage 2025-04-17 17:40:54 UTC
Created attachment 259642 [details]
test sizeof(int) in R's configure script

test sizeof(int) in R's configure script
Comment 4 Mikhail Teterin freebsd_committer freebsd_triage 2025-04-17 17:49:12 UTC
> gcc13 -o conftest -O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing conftest.c -lm

With both gcc13 and gcc14 the compiled conftest runs fine, and exits with code 0...

(I also tried running it under valgrind, but the tool itself crashes of "unhandled instruction" on i386)