Hi Rishkesh,

Did you have time to take a look at this error?

Thanks a lot,

Ricardo Salveti

On Sunday 27 May 2007 21:02:46 Ricardo Salveti de Araujo wrote:
>Hi Rishikesh,
>
>Here is how I generally compile LTP for 64:
>pine:~/ltp-full-20070430 # export CC="gcc -m64"
>pine:~/ltp-full-20070430 # make
>
>But with this version, I'm getting the following results:
>make[4]: Entering directory
>`/root/ltp-full-20070430/testcases/kernel/containers/utsname'
>gcc -Wall  -I../../../../include -I../libclone -Wall
>check_utsns_enabled.c  -L../../../../lib -L../libclone
> ../libclone/libclone.a -lltp -o check_utsns_enabled
>/usr/bin/ld: skipping incompatible ../../../../lib/libltp.a when searching
>for -lltp
>/usr/bin/ld: cannot find -lltp
>collect2: ld returned 1 exit status
>make[4]: *** [check_utsns_enabled] Error 1
>make[4]: Leaving directory
>`/root/ltp-full-20070430/testcases/kernel/containers/utsname'
>make[3]: *** [all] Error 2
>make[3]: Leaving directory
>`/root/ltp-full-20070430/testcases/kernel/containers'
>make[2]: *** [all] Error 2
>make[2]: Leaving directory `/root/ltp-full-20070430/testcases/kernel'
>make[1]: *** [all] Error 2
>make[1]: Leaving directory `/root/ltp-full-20070430/testcases'
>make: *** [all] Error 2
>
>It's because utsname has CC=gcc at the make file, and, because of this, it's
>trying to compile it for 32 bits and trying to link it with 64 ltp libs.
>
>Thanks,
>
>Ricardo Salveti
>
>On Wednesday 23 May 2007 06:38:12 Rishikesh wrote:
>>Ricardo Salveti de Araujo wrote:
>>> Hi,
>>>
>>> everytime that we test LTP with different releases and kernels, we test
>>> it in both 32 and 64 bits.
>>>
>>> Until now, we just needed to export CC='gcc -m64' to let LTP compile
>>> successfully for 64.
>>>
>>> With release 20070430 I got to an error when compiling utsname, because
>>> it was trying to link it with the ltp libs (that are compiled with 64
>>> successfully).
>>
>>Hi Ricardo,
>>
>>Can you provide me the log of error which you are getting for 64 bit
>>machine ? It will be very useful for me to look into the problem.
>>
>>Thanks
>>Rishi
>>
>>> I checked to see in other Makefiles, and we don't export CC in it (but
>>> correct me if I'm wrong).
>>> This small patch just remove the line that put CC=gcc.
>>>
>>> Thanks,
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> Author: Ricardo Salveti de Araujo  <[EMAIL PROTECTED]>
>>> Date:   Mon May 21 17:53:57 2007 -0300
>>>
>>>     Fixing utsname to let LTP compile for 64 just exporting CC with "gcc
>>> -m64"
>>>
>>>     Signed-off-by: Ricardo Salveti de Araujo
>>> <[EMAIL PROTECTED]>
>>>
>>> diff --git a/testcases/kernel/containers/utsname/Makefile
>>> b/testcases/kernel/containers/utsname/Makefile index 7a18a82..0c19193
>>> 100755
>>> --- a/testcases/kernel/containers/utsname/Makefile
>>> +++ b/testcases/kernel/containers/utsname/Makefile
>>> @@ -1,5 +1,3 @@
>>> -CC=gcc
>>> -
>>>  CFLAGS += -I../../../../include -I../libclone -Wall
>>>  LDLIBS += -L../../../../lib -L../libclone ../libclone/libclone.a -lltp
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Ltp-list mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/ltp-list



-- 
Ricardo Salveti de Araujo

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to