[haiku-bugs] [Haiku] #12125: 'setarch x86' doesn't work as expected

  • From: "haiqu" <trac@xxxxxxxxxxxx>
  • Date: Sat, 06 Jun 2015 03:18:29 -0000

#12125: 'setarch x86' doesn't work as expected
-------------------------+------------------------------
Reporter: haiqu | Owner: nobody
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: - General | Version: R1/Development
Keywords: setarch | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
-------------------------+------------------------------
{{{
~> gcc -v
using priority 5
Reading specs from
/packages/gcc-2.95.3_2014_10_14-3/.self/develop/tools/lib/gcc-lib/i586-pc-
haiku/2.95.3-haiku-2014_07_26/specs
gcc version 2.95.3-haiku-2014_07_26
~> setarch x86
~> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/boot/system/develop/tools/x86/bin/../lib/gcc/i586-pc-
haiku/4.8.4/lto-wrapper
Target: i586-pc-haiku
Configured with: /sources/buildtools-
1a00a76b58ae57d24bd4d774f6323c4ea62dd1e7/configure --build=i586-pc-haiku
--prefix=/packages/gcc_x86-4.8.4_2014_12_21-1/.self/develop/tools/x86
--libexecdir=/packages/gcc_x86-4.8.4_2014_12_21-1/.self/develop/tools/x86/lib
--mandir=/packages/gcc_x86-4.8.4_2014_12_21-1/.self/documentation/man

--docdir=/packages/gcc_x86-4.8.4_2014_12_21-1/.self/documentation/packages/gcc_x86
--enable-threads=posix --disable-nls --enable-shared --with-gnu-ld --with-
gnu-as --enable-version-specific-runtime-libs --enable-languages=c,c++
--enable-lto --enable-frame-pointer --with-pkgversion=2014_12_21 --enable-
__cxa-atexit --with-hybrid-secondary=x86
Thread model: posix
gcc version 4.8.4 (2014_12_21)
~> setarch x86
~> gcc -v
using priority 5
Reading specs from
/packages/gcc-2.95.3_2014_10_14-3/.self/develop/tools/lib/gcc-lib/i586-pc-
haiku/2.95.3-haiku-2014_07_26/specs
gcc version 2.95.3-haiku-2014_07_26
~>

}}}


As you can see, unless one checks the compiler that's being currently used
an error could be easily made here.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12125>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: