Re: Assembler in openbsd is different from Linux ?

2013-01-17 Thread WANG Siyuan
Hi, unixeric
Thank you for replay.
I check the error. It is GCC inline assembly.
I set CC as egcc in Makefile, Why this happen? This project could
build on Linux.
Thank you!

On Thu, Jan 17, 2013 at 11:52 PM, unix  wrote:
> Le 17/01/2013 16:27, WANG Siyuan a écrit :
>
>> Hi,
>> I want to build a software on openbsd. But I get this error:
>>
>> src/util.c: Assembler messages:
>> src/util.c:93: Error: `%es:(%di)' is not a valid 32 bit base/index
>> expression
>>
>> This project is developed on Linux. How to install assembler used in
>> Linux?
>> Thank you!
>> --
>> Yours sincerely,
>> WANG Siyuan
>>
>>
>
> you must install gmake and may be gawk
> the construction on linux is slightly different on OpenBSD
> # pkg_add gmake
> and type "gmake" instead of "make"
>



-- 
Yours sincerely,
WANG Siyuan



Assembler in openbsd is different from Linux ?

2013-01-17 Thread WANG Siyuan
Hi,
I want to build a software on openbsd. But I get this error:

src/util.c: Assembler messages:
src/util.c:93: Error: `%es:(%di)' is not a valid 32 bit base/index expression

This project is developed on Linux. How to install assembler used in   Linux?
Thank you!
--
Yours sincerely,
WANG Siyuan



Re: how to upgrade gcc 4.2.1 to gcc-4.7.1

2013-01-17 Thread WANG Siyuan
Thank you!
I just want to build a software on openbsd.

On Thu, Jan 17, 2013 at 10:58 PM, Ville Valkonen  wrote:
> On 17 January 2013 16:29, WANG Siyuan  wrote:
>> Hi,
>>
>> I install gcc 4.7 on openbsd using pkg_add. after installation, I use
>> 'gcc -v' to check, I found it is also gcc 4.2 !
>>
>> how to upgrade gcc 4.2 to gcc 4.7 on openbsd? thank you!
>>
>>
>> --
>> Yours sincerely,
>> WANG Siyuan
>
> Hi,
>
> packages/ports gcc is renamed to "egcc" that it won't be mixed up to
> system's gcc. Therefore, /usr/local/bin/ecpp is one that you want. And
> no, you DON'T want to replace system's gcc.
>
> --
> Sincerely,
> Ville Valkonen



--
Yours sincerely,
WANG Siyuan



how to upgrade gcc 4.2.1 to gcc-4.7.1

2013-01-17 Thread WANG Siyuan
Hi,

I install gcc 4.7 on openbsd using pkg_add. after installation, I use
'gcc -v' to check, I found it is also gcc 4.2 !

how to upgrade gcc 4.2 to gcc 4.7 on openbsd? thank you!


--
Yours sincerely,
WANG Siyuan