Opened 14 years ago

Closed 14 years ago

#6270 closed bug (invalid)

cc1plus: Invalid option `32'

Reported by: Karvjorm Owned by: nobody
Priority: normal Milestone: R1
Component: - General Version: R1/alpha2
Keywords: cc1plus invalid option `32' Cc: Karvjorm
Blocked By: Blocking:
Platform: All

Description

I upgraded to r37340_x86gcc2 (VMware) and tried to build sr/libs directory using "jam -q". I received serveral error messages about invalid option `32'. When copied the line including option -m32 and removed it, I could continue with the building until the next same kind of error message:

...on 400th target...
Cc ../../generated/objects/haiku_host/x86/release/libs/mesa/mesa/gen_matypes.o 
cc1: Invalid option `32'

gcc -O2 -Wall -Wno-trigraphs -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wsign-compare -m32 -Wno-multichar -include ../../headers/build/HaikuBuildCompatibility.h -c "mesa/mesa/x86/gen_matypes.c" -DARCH_x86 -D_NO_INLINE_ASM -DCOMPILE_FOR_R5 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAIKU_HOST_PLATFORM_HAIKU -I../../build/user_config_headers -I../../build/config_headers -Imesa/mesa -I../../generated/objects/common/libs/mesa/mesa -I../../generated/objects/haiku_host/x86/common/libs/mesa/mesa -I../../generated/objects/haiku/x86/common/libs/mesa/mesa -Imesa/mesa/drivers/common -Imesa/mesa/glapi -Imesa/mesa/main -Imesa/mesa/math -Imesa/mesa/shader -Imesa/mesa/shader/grammar -Imesa/mesa/shader/slang -Imesa/mesa/swrast -Imesa/mesa/swrast_setup -Imesa/mesa/tnl -Imesa/mesa/vbo -Imesa/mesa/x86 -Imesa/mesa/main -Imesa/mesa/glapi -Imesa/mesa/math -Imesa/mesa/tnl -Imesa/mesa/shader -Imesa/mesa/shader/grammar -Imesa/mesa/shader/slang -Imesa/mesa/swrast -Imesa/mesa/swrast_setup -Imesa/mesa/vbo -I- -I../../headers/libs/mesa -I../../headers/os/opengl -I../../headers/build/host/haiku_host -o "../../generated/objects/haiku_host/x86/release/libs/mesa/mesa/gen_matypes.o" ;

...failed Cc ../../generated/objects/haiku_host/x86/release/libs/mesa/mesa/gen_matypes.o ...
...skipped gen_matypes for lack of <src!libs!mesa!mesa>gen_matypes.o...
...skipped <src!libs!mesa!mesa>matypes.h.cpp for lack of gen_matypes...
...skipped <src!libs!mesa!mesa>matypes.h for lack of <src!libs!mesa!mesa>matypes.h.cpp...
...skipped <src!libs!mesa!mesa>common_x86.o for lack of <src!libs!mesa!mesa>common_x86.c...
...skipped libmesa.a for lack of <src!libs!mesa!mesa>common_x86.o...
...failed updating 1 target(s)...
...skipped 5 target(s)...
...updated 399 target(s)...

MkDir1 ../../generated/objects/haiku_host/x86/release/tools/icu/pkgdata 
C++ ../../generated/objects/haiku_host/x86/release/tools/icu/pkgdata/pkgdata.o 
cc1plus: Invalid option `32'

Cc ../../generated/objects/haiku_host/x86/release/tools/icu/pkgdata/pkgtypes.o 
cc1: Invalid option `32'

Cc ../../generated/objects/haiku_host/x86/release/tools/icu/tools/tooutil/filestrm.o 
cc1: Invalid option `32'

C++ ../../generated/objects/haiku_host/x86/release/tools/icu/tools/tooutil/filetools.o 
cc1plus: Invalid option `32'

Change History (1)

comment:1 by bonefish, 14 years ago

Resolution: invalid
Status: newclosed

You have apparently configured the Haiku build with --use-32bit. This option is only for gcc 4 and only for 64 bit hosts. You need to reconfigure or at least edit your generated/build/BuildConfig, setting HAIKU_HOST_USE_32BIT to "0".

Note: See TracTickets for help on using tickets.