Re: Fwd: Compile for different machine

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

 



W dniu 27.09.2012 16:40, Sergey Ivanov pisze:
> 2012/9/27 Marcin Mirosław <marcin@xxxxxxxx>:
>> W dniu 27.09.2012 15:28, Sergey Ivanov pisze:
>>> Tried to compile code for i686 instructions set under my AMD x64 in gcc 4.6.
>>> Specified -march=i686.
>>> Obtained "error: CPU you selected does not support x86-64 instruction set"
>>> Why?
>>> Full options line is:
>>> export CC=$(compiler) -O3 -finline-limit=100000 --param
>>> inline-unit-growth=10000 --param large-function-growth=100000 \
>>>   --param large-function-insns=47000 -march=i686 -Wall
>>> -Wno-format-security $(GCC_VER_MORE_45_NO_UNUSED_RET) --param
>>> large-stack-frame=65536 \
>>>   --param large-stack-frame-growth=3000 $(explicit_templates) -pg
>>>
>>
>> Hi,
>> maybe with "-m32" it will work better?
>> Regards.
>>
> With m32 doesn't work with other reason:
> 
> ice@ubuntu:~/science/trunk/main/monte_carlo_offlattice_moldyn/src$ make
> In file included from
> /usr/include/c++/4.6/x86_64-linux-gnu/32/bits/os_defines.h:40:0,
>                  from
> /usr/include/c++/4.6/x86_64-linux-gnu/32/bits/c++config.h:393,
>                  from /usr/include/c++/4.6/cstdio:43,
>                  from Exception.cpp:4:
> /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such
> file or directory
> compilation terminated.
> 
> Seems headers for 32bit environment are wrong. What should i do to
> make them better?

I don't use ubuntu so I can't check this solution:
http://ubuntuforums.org/showthread.php?t=1877944



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux