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
Linux kana #1 SMP PREEMPT 2011-10-19 22:33:27 +0200 x86_64 
x86_64 x86_64 GNU/Linux`
lang/g95 fails to configure on Linux with the following error

-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

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

Automake manual says multilibs is deprecated.

In installation phase I have an error similar to the one here

pkg_create: can't stat 

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

bmake configure
in lang/g95 on Linux

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+=   --enable-languages=c
 .include "../../mk/"
+.if ${OPSYS} == "Linux"
+GCC_CONFIGURE_ARGS+=   --disable-multilib
 .if ${OPSYS} == "SunOS"
 GCC_CONFIGURE_ENV+=    OBJDUMP=/usr/sfw/bin/gobjdump
 GCC_CONFIGURE_ARGS+=   --without-gnu-ld --with-ld=/usr/ccs/bin/ld

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

Home | Main Index | Thread Index | Old Index