|
|
solaris build error ... help needed
gcc -c -O3 -Wall -KPIC -UVE_DUMP_X86 -I../include -I../../om/
include -I../../pi/include -I../../parser/include -I../../superlog/
include cheetah_rusage.cxx -o ../../../obj/sun7-gcc2.95.2-32/
cheetah_rusage.o
gcc: unrecognized option `-KPIC'
ld -r -o ../../../obj/sun7-gcc2.95.2-32/utils.o ../../../obj/sun7-
gcc2.95.2-32/cheetah_dump.o ../../../obj/sun7-gcc2.95.2-32/
cheetah_restore.o ../../../obj/sun7-gcc2.95.2-32/
dumpRoutines.o ../../../obj/sun7-gcc2.95.2-32/cheetah_rusage.o
ld: elf error: file ../../../obj/sun7-gcc2.95.2-32/cheetah_dump.o:
elf_strptr: Request error: no string table
ld: fatal: file ../../../obj/sun7-gcc2.95.2-32/cheetah_restore.o:
unknown file type
ld: fatal: File processing errors. No output written to ../../../obj/
sun7-gcc2.95.2-32/utils.o
make[1]: *** [../../../obj/sun7-gcc2.95.2-32/utils.o] Error 1
make[1]: Leaving directory `/home/hdlbuild/CHEETAH/
Cheetah_memopt.solaris/source/utils/src'
make: *** [subdir_compile] Error 1
Can somebody tell me how to fix this ?
|
|
0
|
|
|
|
Reply
|
sachin.goyal.new (3)
|
12/20/2007 7:05:33 AM |
|
solarisss wrote:
> gcc -c -O3 -Wall -KPIC -UVE_DUMP_X86 -I../include -I../../om/
> include -I../../pi/include -I../../parser/include -I../../superlog/
> include cheetah_rusage.cxx -o ../../../obj/sun7-gcc2.95.2-32/
> cheetah_rusage.o
> gcc: unrecognized option `-KPIC'
>
> ld -r -o ../../../obj/sun7-gcc2.95.2-32/utils.o ../../../obj/sun7-
> gcc2.95.2-32/cheetah_dump.o ../../../obj/sun7-gcc2.95.2-32/
> cheetah_restore.o ../../../obj/sun7-gcc2.95.2-32/
> dumpRoutines.o ../../../obj/sun7-gcc2.95.2-32/cheetah_rusage.o
>
> ld: elf error: file ../../../obj/sun7-gcc2.95.2-32/cheetah_dump.o:
> elf_strptr: Request error: no string table
> ld: fatal: file ../../../obj/sun7-gcc2.95.2-32/cheetah_restore.o:
> unknown file type
> ld: fatal: File processing errors. No output written to ../../../obj/
> sun7-gcc2.95.2-32/utils.o
> make[1]: *** [../../../obj/sun7-gcc2.95.2-32/utils.o] Error 1
> make[1]: Leaving directory `/home/hdlbuild/CHEETAH/
> Cheetah_memopt.solaris/source/utils/src'
> make: *** [subdir_compile] Error 1
>
> Can somebody tell me how to fix this ?
Use Sun Studio?
--
Ian Collins.
|
|
0
|
|
|
|
Reply
|
Ian
|
12/20/2007 8:30:21 AM
|
|
On Dec 20, 1:30 pm, Ian Collins <ian-n...@hotmail.com> wrote:
> solarisss wrote:
> > gcc -c -O3 -Wall -KPIC -UVE_DUMP_X86 -I../include -I../../om/
> > include -I../../pi/include -I../../parser/include -I../../superlog/
> > include cheetah_rusage.cxx -o ../../../obj/sun7-gcc2.95.2-32/
> > cheetah_rusage.o
> > gcc: unrecognized option `-KPIC'
>
> > ld -r -o ../../../obj/sun7-gcc2.95.2-32/utils.o ../../../obj/sun7-
> > gcc2.95.2-32/cheetah_dump.o ../../../obj/sun7-gcc2.95.2-32/
> > cheetah_restore.o ../../../obj/sun7-gcc2.95.2-32/
> > dumpRoutines.o ../../../obj/sun7-gcc2.95.2-32/cheetah_rusage.o
>
> > ld: elf error: file ../../../obj/sun7-gcc2.95.2-32/cheetah_dump.o:
> > elf_strptr: Request error: no string table
> > ld: fatal: file ../../../obj/sun7-gcc2.95.2-32/cheetah_restore.o:
> > unknown file type
> > ld: fatal: File processing errors. No output written to ../../../obj/
> > sun7-gcc2.95.2-32/utils.o
> > make[1]: *** [../../../obj/sun7-gcc2.95.2-32/utils.o] Error 1
> > make[1]: Leaving directory `/home/hdlbuild/CHEETAH/
> > Cheetah_memopt.solaris/source/utils/src'
> > make: *** [subdir_compile] Error 1
>
> > Can somebody tell me how to fix this ?
>
> Use Sun Studio?
>
> --
> Ian Collins.
That will change only the compiler, right ?
My point is whats the cause of this error ? and why gcc is having
problems ?
|
|
0
|
|
|
|
Reply
|
solarisss
|
12/20/2007 8:56:52 AM
|
|
solarisss wrote:
> gcc -c -O3 -Wall -KPIC -UVE_DUMP_X86 -I../include -I../../om/
> include -I../../pi/include -I../../parser/include -I../../superlog/
> include cheetah_rusage.cxx -o ../../../obj/sun7-gcc2.95.2-32/
> cheetah_rusage.o
> gcc: unrecognized option `-KPIC'
change this to '-fPIC' ...
.... or as already stated: use cc(Sun Studio)
but prior to this fix/remove '-Wall' ...
|
|
0
|
|
|
|
Reply
|
PM
|
12/20/2007 1:18:16 PM
|
|
solarisss wrote:
> On Dec 20, 1:30 pm, Ian Collins <ian-n...@hotmail.com> wrote:
>> solarisss wrote:
>>> gcc -c -O3 -Wall -KPIC -UVE_DUMP_X86 -I../include -I../../om/
>>> include -I../../pi/include -I../../parser/include -I../../superlog/
>>> include cheetah_rusage.cxx -o ../../../obj/sun7-gcc2.95.2-32/
>>> cheetah_rusage.o
>>> gcc: unrecognized option `-KPIC'
>>> ld -r -o ../../../obj/sun7-gcc2.95.2-32/utils.o ../../../obj/sun7-
>>> gcc2.95.2-32/cheetah_dump.o ../../../obj/sun7-gcc2.95.2-32/
>>> cheetah_restore.o ../../../obj/sun7-gcc2.95.2-32/
>>> dumpRoutines.o ../../../obj/sun7-gcc2.95.2-32/cheetah_rusage.o
>>> ld: elf error: file ../../../obj/sun7-gcc2.95.2-32/cheetah_dump.o:
>>> elf_strptr: Request error: no string table
>>> ld: fatal: file ../../../obj/sun7-gcc2.95.2-32/cheetah_restore.o:
>>> unknown file type
>>> ld: fatal: File processing errors. No output written to ../../../obj/
>>> sun7-gcc2.95.2-32/utils.o
>>> make[1]: *** [../../../obj/sun7-gcc2.95.2-32/utils.o] Error 1
>>> make[1]: Leaving directory `/home/hdlbuild/CHEETAH/
>>> Cheetah_memopt.solaris/source/utils/src'
>>> make: *** [subdir_compile] Error 1
>>> Can somebody tell me how to fix this ?
>> Use Sun Studio?
>>
*Please* don't quote signatures.
>
> That will change only the compiler, right ?
> My point is whats the cause of this error ? and why gcc is having
> problems ?
You are giving it an invalid option, as pointed out elsethread. You are
also using a really old gcc version, why not use the version supplies
with Solaris (10), or from Blastwave?
--
Ian Collins.
|
|
0
|
|
|
|
Reply
|
Ian
|
12/20/2007 7:02:11 PM
|
|
On Dec 20, 11:02 am, Ian Collins <ian-n...@hotmail.com> wrote:
> solarisss wrote:
> > On Dec 20, 1:30 pm, Ian Collins <ian-n...@hotmail.com> wrote:
> >> solarisss wrote:
> >>> gcc -c -O3 -Wall -KPIC -UVE_DUMP_X86 -I../include -I../../om/
> >>> include -I../../pi/include -I../../parser/include -I../../superlog/
> >>> include cheetah_rusage.cxx -o ../../../obj/sun7-gcc2.95.2-32/
> >>> cheetah_rusage.o
> >>> gcc: unrecognized option `-KPIC'
> >>> ld -r -o ../../../obj/sun7-gcc2.95.2-32/utils.o ../../../obj/sun7-
> >>> gcc2.95.2-32/cheetah_dump.o ../../../obj/sun7-gcc2.95.2-32/
> >>> cheetah_restore.o ../../../obj/sun7-gcc2.95.2-32/
> >>> dumpRoutines.o ../../../obj/sun7-gcc2.95.2-32/cheetah_rusage.o
> >>> ld: elf error: file ../../../obj/sun7-gcc2.95.2-32/cheetah_dump.o:
> >>> elf_strptr: Request error: no string table
> >>> ld: fatal: file ../../../obj/sun7-gcc2.95.2-32/cheetah_restore.o:
> >>> unknown file type
> >>> ld: fatal: File processing errors. No output written to ../../../obj/
> >>> sun7-gcc2.95.2-32/utils.o
> >>> make[1]: *** [../../../obj/sun7-gcc2.95.2-32/utils.o] Error 1
> >>> make[1]: Leaving directory `/home/hdlbuild/CHEETAH/
> >>> Cheetah_memopt.solaris/source/utils/src'
> >>> make: *** [subdir_compile] Error 1
> >>> Can somebody tell me how to fix this ?
> >> Use Sun Studio?
> > That will change only the compiler, right ?
> > My point is whats the cause of this error ? and why gcc is having
> > problems ?
> You are giving it an invalid option, as pointed out elsethread. You are
> also using a really old gcc version, why not use the version supplies
> with Solaris (10), or from Blastwave?
Actually he never told us what the heck he is doing. Only what is
breaking
and not much of that. Looks like a VERY old compiler using at least
one
cc option and perhaps an equally old OS on perhaps newer source code.
To top it off ld is evoked directly which isnt usually the best thing
to do.
Start with man elf_strptr after sorting out the Makefile obvious
problems I guess : /
|
|
0
|
|
|
|
Reply
|
usenetpersongerryt
|
12/21/2007 2:55:48 AM
|
|
|
5 Replies
358 Views
(page loaded in 0.073 seconds)
|
|
|
|
|
|
|
|
|