Mike Sullivan wrote:
> yuan.fan wrote:
>> Hi Eddie
>>
>> You can got nightly build log at
>> /net/greatwall.prc/projects/usb/nightly.log
>> John Gu just build successfully at sfwcfi.sfbay,I will change the
>> build server and try again.
>>
>> Thanks very much.
>> error massage of lua as below.
>>
>> cc: Warning: illegal option -m64
>> cc: Warning: illegal option -xcode=pic13
>> cc: Warning: using -Xa, ignoring all other -X options
>> "/usr/include/sys/isa_defs.h", line 476: #error: "ISA not supported"
>> cc: acomp failed for lstrlib.c
>> *** Error code 2
>> cc -xO3 -Xc -Kpic -xO3 -m64 -xarch=generic -Ui386 -U__i386 -Xa -xildoff
>> -xc99=all -xcode=pic13 -DLUA_
>> USE_POSIX -DLUA_USE_DLOPEN -D__EXTENSIONS__ -c loadlib.c
>> cc: Warning: illegal option -m64
>> cc: Warning: illegal option -xcode=pic13
>> cc: Warning: using -Xa, ignoring all other -X options
>> "/usr/include/sys/isa_defs.h", line 476: #error: "ISA not supported"
>> cc: acomp failed for loadlib.c
>> *** Error code 2
>> cc -xO3 -Xc -Kpic -xO3 -m64 -xarch=generic -Ui386 -U__i386 -Xa -xildoff
>> -xc99=all -xcode=pic13 -DLUA_
>> USE_POSIX -DLUA_USE_DLOPEN -D__EXTENSIONS__ -c linit.c
>> cc: Warning: illegal option -m64
>> cc: Warning: illegal option -xcode=pic13
>> cc: Warning: using -Xa, ignoring all other -X options
>> "/usr/include/sys/isa_defs.h", line 476: #error: "ISA not supported"
>> cc: acomp failed for linit.c
>> *** Error code 2
>> make: Warning: Target `liblua.so' not remade because of errors
>
> If you are really seeing lua run 'cc' and not something like
> '/ws/onnv-tools/SUNWspro/SS12/bin/cc' then that's a bug.
>
> Indeed I see that in the gate logs:
>
> (cd lua-5.1.4; env MAKE="/usr/ccs/bin/make" /usr/ccs/bin/make)
> cd src && /usr/ccs/bin/make solaris
> /usr/ccs/bin/make all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN
> -D__EXTENSIONS__" MYLIBS="-ldl"
> cc -xO3 -Xc -Kpic -DLUA_USE_POSIX -DLUA_USE_DLOPEN -D__EXTENSIONS__
> -c lapi.c
> cc -xO3 -Xc -Kpic -DLUA_USE_POSIX -DLUA_USE_DLOPEN -D__EXTENSIONS__
> -c lcode.ccc -xO3 -Xc -Kpic -DLUA_USE_POSIX -DLUA_USE_DLOPEN
> -D__EXTENSIONS__ -c ldebug.c
>
> that's wrong because it's picking up whatever compiler it finds in
> the path, in your case you must have something that is older and
> doesn't understand those options. lua really needs to force it
> to use $(CC) from Makefile.master as the build both needs to not
> depend on whatever compiler you have (likely in /opt/SUNWspro) and
> we need to use the 'right' compiler.
>
> This seems to make it better:
>
> {mike_s:sfwnv:32} sccs diffs Makefile.sfw
>
> ------- Makefile.sfw -------
> 40a41
> > TARGET_ENV += CC="$(CC)"
> 44a46
> > TARGET_ENV64 += CC="$(CC)"
>
> Though the 64-bit build complains a bit:
>
> /ws/onnv-tools/SUNWspro/SS12/bin/cc -xO3 -Xc -Kpic -xO3 -m64
> -xcode=abs64 -dalign -xspace -W0,-Lt -Xa -xildoff -xc99=all
> -W2,-xwrap_int -xcode=pic13 -DLUA_USE_POSIX -DLUA_USE_DLOPEN
> -D__EXTENSIONS__ -c lbaselib.c
> cc: Warning: using -Xa, ignoring all other -X options
>
> that should be cleaned up too.
>
> Can you file a bug and fix this please Eddie?
>
> Mike
6815200 was filed and I'm fixing it.
Thanks,
Eddie