tech-pkg archive

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

Configure fails due to pkgsrc's wrapper (-Wl,-Ttext)



Hi,

I would like to report a problem with a GNU configure script that works fine outside of pkgsrc, but fails within pkgsrc. I am not sure that this is pkgsrc's fault, it may be a bug in the configure script itself.

In short, the command run by configure is of the form:

cc [...] -Wl,-Ttext, -Wl,-Ttext [...]

which works fine outside of pkgsrc, but the real command, after the pkgsrc wrapper, is of the form:

cc [...] -Wl,-Ttext -Wl,-Ttext [...]

which leads to:

ld: invalid hex number `-Ttext'

Notice the missing comma at the end of the first `-Wl,-Ttext' in the real command (after the pkgsrc wrapper). The end of config.log is provided below.

Thanks,

Grégoire

p.s. The configure script in question is from GRUB 2 (v. 1.97.1).


configure:7069: checking whether objcopy works for absolute addresses
configure:7083: cc -c -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym,___main=0x8100 conftest.c >&5
gcc: --defsym: linker input file unused because linking not done
gcc: ___main=0x8100: linker input file unused because linking not done
configure:7086: $? = 0
configure:7096: cc -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym,___main=0x8100 -nostdlib -Wl,-N -Wl,-Ttext, -Wl,-Ttext -Wl,2000 conftest.o -o conftest.exec
ld: invalid hex number `-Ttext'

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/tmp/mypkgsrc/wip/my-grub2/work.i386/.gcc/bin/gcc -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym -Wl,___main=0x8100 -nostdlib -Wl,-N -Wl,-Ttext -Wl,-Ttext -Wl,2000 conftest.o -o conftest.exec -I/usr/tmp/mypkgsrc/wip/my-grub2/work.i386/.buildlink/include -L/usr/tmp/mypkgsrc/wip/my-grub2/work.i386/.buildlink/lib
configure:7099: $? = 1
configure:7102: error: cc cannot link at address 2000


Home | Main Index | Thread Index | Old Index