pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46397: [LINUX] lang/g95 fails to configure



>Number:         46397
>Category:       pkg
>Synopsis:       [LINUX] lang/g95 fails to configure
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 02 07:25:00 +0000 2012
>Originator:     Litvinov Sergey
>Release:        SuSe Linux
>Organization:
>Environment:
Linux kana 2.6.37.6-0.9-desktop #1 SMP PREEMPT 2011-10-19 22:33:27 +0200 x86_64 
x86_64 x86_64 GNU/Linux`
>Description:
lang/g95 fails to configure on Linux with the following error

/scratch/src/pkgsrc/lang/g95/work/gcc-4.0.3/g95/gcc/xgcc 
-B/scratch/src/pkgsrc/lang/g95/work/gcc-4.0.3/g95/gcc/ 
-B/scratch/netbsd/x86_64-unknown-linux-gnu/bin/ 
-B/scratch/netbsd/x86_64-unknown-linux-gnu/lib/ -isystem 
/scratch/netbsd/x86_64-unknown-linux-gnu/include -isystem 
/scratch/netbsd/x86_64-unknown-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
 -isystem ./include  -I. -I32 -I../../gcc -I../../gcc/32 -I../../gcc/../include 
-I../../gcc/../libcpp/include  -m32 -g0 -finhibit-size-directive 
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss 
-fno-unit-at-a-time -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
   -c ../../gcc/crtstuff.c -DCRT_BEGIN \
  -o 32/crtbegin.o
In file included from /usr/include/features.h:371,
                 from /usr/include/stdio.h:28,
                 from ../../gcc/tsystem.h:90,
                 from ../../gcc/crtstuff.c:64:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[3]: *** [32/crtbegin.o] Error 1
make[3]: Leaving directory `/scratch/src/pkgsrc/lang/g95/work/gcc-4.0.3/g95/gcc'
make[2]: *** [extra32] Error 2
make[2]: Leaving directory `/scratch/src/pkgsrc/lang/g95/work/gcc-4.0.3/g95/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/scratch/src/pkgsrc/lang/g95/work/gcc-4.0.3/g95/gcc'
make: *** [all-gcc] Error 2
*** Error code 2

This error is also seen in
http://ftp.netbsd.org/pub/pkgsrc/misc/sbd/reports/Linux-x86_64/20120312.1713/g95-0.92/configure.log
http://ftp.netbsd.org/pub/pkgsrc/misc/sbd/reports/Linux-x86_64/20111109.1551/g95-0.92/configure.log


I add
GCC_CONFIGURE_ARGS+=    --disable-multilib
to lang/g95/Makefile
and it helped.

Automake manual says multilibs is deprecated.
http://www.gnu.org/software/automake/manual/html_node/Multilibs.html

In installation phase I have an error similar to the one here
http://mova.org/~cheusov/pub/pkgsrc-distbb/Debian50/current/logs/20120407.1734/lang_g95_g95-0.92/stage_Package.html

pkg_create: can't stat 
`/tmp/obj_pkgsrc/lang/g95/work/.destdir/usr/pkg/lib/gcc-lib/i386-debian-linux/4.0.3/crtbegin.o'

I had to add
MACHINE_GNU_PLATFORM=           x86_64-unknown-linux-gnu
to mk.conf

>How-To-Repeat:
bmake configure
in lang/g95 on Linux

>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/g95/Makefile,v
retrieving revision 1.9
diff -u -p -u -a -r1.9 Makefile
--- Makefile    20 Mar 2012 17:26:19 -0000      1.9
+++ Makefile    2 May 2012 07:22:01 -0000
@@ -27,8 +27,11 @@ GCC_G95_DIR=         ${GCC_DIR}/g95
 GCC_CONFIGURE_SCRIPT=  ../configure
 GCC_CONFIGURE_ARGS=    ${CONFIGURE_ARGS}
 GCC_CONFIGURE_ARGS+=   --enable-languages=c
-
 .include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Linux"
+GCC_CONFIGURE_ARGS+=   --disable-multilib
+.endif
+
 .if ${OPSYS} == "SunOS"
 GCC_CONFIGURE_ENV+=    OBJDUMP=/usr/sfw/bin/gobjdump
 GCC_CONFIGURE_ARGS+=   --without-gnu-ld --with-ld=/usr/ccs/bin/ld
===================================================================


Add 
MACHINE_GNU_PLATFORM=           x86_64-unknown-linux-gnu
to mk.conf



Home | Main Index | Thread Index | Old Index