DragonFly kernel List (threaded) for 2007-08
DragonFly BSD
DragonFly kernel List (threaded) for 2007-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

error in creating amd64 port rtld modules


From: "Noah yan" <noah.yan@xxxxxxxxx>
Date: Thu, 30 Aug 2007 17:13:43 -0500

I have a ld link error when creating a shared rtld kernel modules.
have  not find reason for this and hope somebody here have some hints
of this:

Thanks
Noah


===> bus/cam/scsi
cc -O -pipe   -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -ansi -DKLD_MODULE -nostdinc  -I. -I@
-I/usr/obj/home/yanyh/gitscm/dragonfly.cvs2git/sys/AMD64_GENERIC
-I/usr/obj/home/yanyh/gitscm/dragonfly.cvs2git/sys/AMD64_GENERIC/include
-I@/../include -include
/usr/obj/home/yanyh/gitscm/dragonfly.cvs2git/sys/AMD64_GENERIC/opt_global.h
-g -finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common -ffreestanding
-mpreferred-stack-boundary=4 -mcmodel=kernel -mno-red-zone
-mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float
-fno-asynchronous-unwind-tables -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -ansi -c
/home/yanyh/gitscm/dragonfly.cvs2git/sys/bus/cam/scsi/scsi_low.c
cc -O -pipe   -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -ansi -DKLD_MODULE -nostdinc  -I. -I@
-I/usr/obj/home/yanyh/gitscm/dragonfly.cvs2git/sys/AMD64_GENERIC
-I/usr/obj/home/yanyh/gitscm/dragonfly.cvs2git/sys/AMD64_GENERIC/include
-I@/../include -include
/usr/obj/home/yanyh/gitscm/dragonfly.cvs2git/sys/AMD64_GENERIC/opt_global.h
-g -finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common -ffreestanding
-mpreferred-stack-boundary=4 -mcmodel=kernel -mno-red-zone
-mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float
-fno-asynchronous-unwind-tables -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -ansi -c
/home/yanyh/gitscm/dragonfly.cvs2git/sys/bus/cam/scsi/scsi_low_pisa.c
ld  -r -o scsi_low.kld scsi_low.o scsi_low_pisa.o
ld -Bshareable  -o scsi_low.ko scsi_low.kld
/usr/obj/home/yanyh/gitscm/dragonfly.cvs2git/ctools_i386_amd64/usr/libexec/binutils217/elf/ld:
scsi_low.kld: relocation R_X86_64_32S against `a local symbol' can not
be used when making a shared object; recompile with -fPIC
scsi_low.kld: could not read symbols: Bad value
*** Error code 1 (continuing)
`all' not remade because of errors.



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