Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879193 - dev-lang/R-4.2.1 - ld: ../../lib/libR.so: undefined reference to `libintl_dgettext' (on musl)
Summary: dev-lang/R-4.2.1 - ld: ../../lib/libR.so: undefined reference to `libintl_dge...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on: 885501
Blocks: musl-porting
  Show dependency tree
 
Reported: 2022-11-02 15:37 UTC by ernsteiswuerfel
Modified: 2023-10-26 00:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (R-4.2.1:20221102-151714.log,107.65 KB, text/plain)
2022-11-02 15:37 UTC, ernsteiswuerfel
Details
emerge --info (file_879193.txt,7.38 KB, text/plain)
2022-11-02 15:38 UTC, ernsteiswuerfel
Details
build.log (amd64, 4.2.2) (R-4.2.2:20230208-121549.log,124.51 KB, text/plain)
2023-02-08 13:04 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-11-02 15:37:55 UTC
Created attachment 826709 [details]
build.log

[...]
x86_64-gentoo-linux-musl-gcc -shared -fopenmp -O2 -march=bdver3 -mtune=bdver3 -pipe -flto -fpic  -Wl,-O1 -Wl,--as-needed  -o libR.so CommandLineArgs.o Rdynload.o Renviron.o RNG.o agrep.o altclasses.o altrep.o apply.o arithmetic.o array.o attrib.o bind.o builtin.o character.o clippath.o coerce.o colors.o complex.o connections.o context.o cum.o dcf.o datetime.o debug.o deparse.o devices.o dotcode.o dounzip.o dstruct.o duplicate.o edit.o engine.o envir.o errors.o eval.o format.o gevents.o gram.o gram-ex.o graphics.o grep.o identical.o inlined.o inspect.o internet.o iosupport.o lapack.o list.o localecharset.o logic.o main.o mapply.o mask.o match.o memory.o names.o objects.o options.o paste.o patterns.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o qsort.o radixsort.o random.o raw.o registration.o relop.o rlocale.o saveload.o scan.o seq.o serialize.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o times.o unique.o util.o version.o g_alab_her.o g_cntrlify.o g_fontdb.o g_her_glyph.o xxxpr.o   `ls ../unix/*.o ../appl/*.o ../nmath/*.o`   ../extra/intl/libintl.a  -lblas  -lgfortran -lm -lssp_nonshared -lquadmath  ../extra/intl/libintl.a   -lreadline  -ltre -lpcre2-8 -llzma -lbz2 -lz -ltirpc -lrt -ldl -lm -licuuc -licui18n  
make[4]: Entering directory '/var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/src/main'
mkdir -p -- /var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/bin/exec
mkdir -p -- /var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/lib
make[4]: Leaving directory '/var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/src/main'
make[3]: Leaving directory '/var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/src/main'
make[3]: Entering directory '/var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/src/main'
x86_64-gentoo-linux-musl-gcc  -I/usr/include/tirpc -I. -I../../src/include -I../../src/include   -I../../src/nmath -DHAVE_CONFIG_H   -fopenmp -fpic  -O2 -march=bdver3 -mtune=bdver3 -pipe -flto -c Rmain.c -o Rmain.o
x86_64-gentoo-linux-musl-gcc -O2 -march=bdver3 -mtune=bdver3 -pipe -flto -fpic  -Wl,--export-dynamic -fopenmp  -L"../../lib" -Wl,-O1 -Wl,--as-needed -o R.bin Rmain.o  -lR 
/usr/lib/gcc/x86_64-gentoo-linux-musl/12/../../../../x86_64-gentoo-linux-musl/bin/ld: ../../lib/libR.so: undefined reference to `libintl_dgettext'
/usr/lib/gcc/x86_64-gentoo-linux-musl/12/../../../../x86_64-gentoo-linux-musl/bin/ld: ../../lib/libR.so: undefined reference to `libintl_gettext'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:149: R.bin] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/src/main'
make[2]: *** [Makefile:140: R] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/src/main'
make[1]: *** [Makefile:28: R] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/src'
make: *** [Makefile:61: R] Error 1
 * ERROR: dev-lang/R-4.2.1::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2022-11-02 15:38:44 UTC
Created attachment 826711 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2023-02-08 13:04:44 UTC
Created attachment 850164 [details]
build.log (amd64, 4.2.2)

No change with 4.2.2.
Comment 3 hugegameartgd 2023-10-26 00:33:39 UTC
=dev-lang/R-4.3.1 compiles with Clang 18.0.0 after disabling nls useflag (segfaults with GCC 14.0.0_pre20231022-r1)
See https://bugs.r-project.org/show_bug.cgi?id=18502#c1 (requires external libintl library?)