[Rd] AIX 5.3 --enable-R-shlib make error with R-2.7.1

Ei-ji Nakama nakama at ki.rim.or.jp
Tue Jul 1 15:05:51 CEST 2008


Hi

Perhaps I think that there is a possibility that success of former link
was my hallucination...

Please try this patch if you like.
http://prs.ism.ac.jp/~nakama/AIX/aix_R-2.7.1_Rshlib_include_configure.patch

Some problems are left in gcc, but think that the make is possible.

If you want to eat iconv, please cook the following.
http://prs.ism.ac.jp/~nakama/AIX/AIX_iconv_CookBook.txt

However, a problem occurred in checkFF and nls when I built it in gcc.

Because nls and checkFF do not have any problem with a commercial
compiler, I think that there is a problem in recent gcc side

2008/7/1  <Jagat.K.Sheth at wellsfargo.com>:
> Using AIX 5.3 and gcc-4.2.1 for building R-2.7.1 with the following
> configure flags
>
> OBJECT_MODE=64
> CC="gcc -maix64"
> CXX="g++ -maix64"
> F77="gfortran -maix64"
> FC="gfortran -maix64"
> CFLAGS="-g -O3"
> CXXFLAGS="-g -O3"
> FFLAGS="-g -O3"
> FCFLAGS="-g -O3"
> LDFLAGS="-L/$HOME/usr/local/lib/ppc64 -L/$HOME/usr/local/lib"
> CPPFLAGS="-I/$HOME/usr/include"
> ./configure --disable-nls --without-iconv --prefix=$HOME/usr/local
> --enable-R-shlib
>
> After a successful configuration, the make stops with the following
> error on this system
>
> make[3]: Entering directory
> `/home/apps/crm_cm/n731661x/src/R-2.7.1/src/main'
> gcc -maix64 -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2
> -I../../src/extra/pcre  -I. -I../../src/include -I../../src/include
> -I//users/apps/crm_cm/n731661x/usr/include -DHAVE_CONFIG_H
> -mminimal-toc   -g -O3 -c Rmain.c -o Rmain.o
> gcc -maix64 -std=gnu99 -Wl,-brtl -Wl,-bexpall -Wl,-bpT:0x100000000
> -Wl,-bpD:0x110000000 -lc
> -L//users/apps/crm_cm/n731661x/usr/local/lib/ppc64
> -L//users/apps/crm_cm/n731661x/usr/local/lib -o R.bin Rmain.o
> -L../../lib -lR
> ld: 0711-317 ERROR: Undefined symbol: R_running_as_main_program
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
> make[3]: *** [R.bin] Error 1
> make[3]: Leaving directory
> `/home/apps/crm_cm/n731661x/src/R-2.7.1/src/main'
> make[2]: *** [R] Error 2
> make[2]: Leaving directory
> `/home/apps/crm_cm/n731661x/src/R-2.7.1/src/main'
> make[1]: *** [R] Error 1
> make[1]: Leaving directory `/home/apps/crm_cm/n731661x/src/R-2.7.1/src'
> make: *** [R] Error 1
>
> On the other hand, no problems on this system with the above
> configuration building R<=2.6.2. Can also successfully build R-2.7.1
> here without --enable-R-shlib.
>
> Will be glad to experiment or provide more details if needed anytime.
>
> Thanks,
> Jagat
>
>
> --
> Jagat K. Sheth
> Prepayment Modeling and Economics
> Wells Fargo Home Mortgage
> 7911 Forsyth Boulevard
> Suite 500, M5001-061
> Clayton, MO 63105
>
> Tel: (314)-726-4496
> Fax: (314)-726-4483
> jagat.k.sheth at wellsfargo.com
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>
>



-- 
EI-JI Nakama <nakama at ki.rim.or.jp>
"\u4e2d\u9593\u6804\u6cbb" <nakama at ki.rim.or.jp>



More information about the R-devel mailing list