pkgsrc-Bugs archive

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

pkg/45092: Grub does not configure for amd64



>Number:         45092
>Category:       pkg
>Synopsis:       Grub does not configure for amd64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 21 15:10:01 +0000 2011
>Originator:     Cesar Catrian Carreno
>Release:        5.99.47
>Organization:
>Environment:
NetBSD core 5.99.47 NetBSD 5.99.47 (SAT @ CORE) #0: Sun Mar  6 20:30:53 CLST 
2011  cetrox@core:/home/src/netbsd-current/obj/sys/arch/amd64/compile/SAT amd64
>Description:
Problem doing configure:

===> Configuring for grub-0.97nb9
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Checking for portability problems in extracted files
checking for a BSD-compatible install... /usr/bin/install -c -o cetrox -g cetrox
checking whether build environment is sane... yes
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64--netbsd-gcc... cc
checking for x86_64--netbsd-gcc... (cached) cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C 
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
*** Error code 1

This is config.log:
configure:2424: cc -m32 -O2 -I/usr/pkg/include/ncurses 
-I/usr/pkg/include/ncurses
 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:2427: $? = 0
configure:2473: result: a.out
configure:2478: checking whether the C compiler works
configure:2484: ./a.out
[1]   Abort trap              ./${ac_file}
configure:2487: $? = 134
configure:2494: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

If the compiler flag -m32 is removed, configure keeps going, but gets stuck 
with this:
checking for x86_64--netbsd-objcopy... no
checking for objcopy... objcopy
checking if C symbols get an underscore after compilation... no
checking whether objcopy works for absolute addresses... no
configure: error: GRUB requires a working absolute objcopy; upgrade your 
binutils
*** Error code 1
Stop.
make: stopped in /home/src/pkgsrc-current/sysutils/grub
*** Error code 1
Stop.
make: stopped in /home/cetrox/src/pkgsrc/sysutils/grub

and config.log complains about objcopy:
configure:3870: checking whether objcopy works for absolute addresses
configure:3883: cc -c -O2 -I/usr/pkg/include/ncurses -I/usr/pkg/include/ncurses 
-
Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -falign-jumps=1 
-fali
gn-loops=1 -falign-functions=1 -Wundef conftest.c >&5
conftest.c:3: warning: no previous prototype for 'cmain'
configure:3886: $? = 0
configure:3896: cc -O2 -I/usr/pkg/include/ncurses -nostdlib -Wl,-N -Wl,-Ttext 
-Wl
,2000 conftest.o -o conftest.exec
ld: warning: cannot find entry symbol _start; defaulting to 0000000000002000
configure:3899: $? = 0
configure:3907: objcopy -O binary conftest.exec conftest
configure:3910: $? = 0
configure:3896: cc -O2 -I/usr/pkg/include/ncurses -nostdlib -Wl,-N -Wl,-Ttext 
-Wl
,8000 conftest.o -o conftest.exec
ld: warning: cannot find entry symbol _start; defaulting to 0000000000008000
configure:3899: $? = 0
configure:3907: objcopy -O binary conftest.exec conftest
configure:3910: $? = 0
configure:3918: cmp -s conftest.old conftest
configure:3921: $? = 1
configure:3932: result: no
configure:3935: error: GRUB requires a working absolute objcopy; upgrade your 
binutils
>How-To-Repeat:
grub/> $ make configure
>Fix:



Home | Main Index | Thread Index | Old Index