[haiku-bugs] Re: [Haiku] #6177: Obsolete option -I- used

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Sat, 19 Jun 2010 15:13:34 -0000

#6177: Obsolete option -I- used
---------------------------------+------------------------------------------
 Reporter:  Karvjorm             |       Owner:  nobody   
     Type:  bug                  |      Status:  new      
 Priority:  normal               |   Milestone:  R1       
Component:  - General            |     Version:  R1/alpha2
 Keywords:  obsolete option -I-  |   Blockedby:           
    Patch:  0                    |    Platform:  All      
 Blocking:                       |  
---------------------------------+------------------------------------------

Comment(by siarzhuk):

 Well, starting from the very beginning:

 Replying to [ticket:6177 Karvjorm]:
 > When I tried to build several test applications, I got the following
 warning: "cc1plus: note: obsolete option -I- used, please use -iquote
 instead"
 > Revision: 37152


 Which "test application" do you meant here?

 Please differentiate two cases:

 1) Normal build environment - when you trying to compile some 3rd-party or
 your private project that is not belong to Haiku source tree. Such project
 usually uses it's own build rules from the local Makefile/ Jamfile or
 something like this. Many BeOS/Haiku source projects are including so
 known "engines": /boot/develop/etc/makefile-engine or /boot/develop/etc
 /Jamfile-engine for make and jam builds correspondently. Those engines
 minimize size and complexity of project's Makefiles or Jamfiles.

 2) "System build environment" - this is the special case of building whole
 system with "jam" utility that uses lot of jam scripts from ./build/jam/
 folder.

 My fixes were applied to makefile-engine - so they can affect only on
 "case 1) builds". May be your "test applications" are using such
 makefiles? In this case that "-I- obsolete" warning should not bother you
 anymore. In opposite case you should localize the problem by trying to
 find which module produce such warning during compilation.

 But now...

 Replying to [comment:11 Karvjorm]:
 > I don't know about Jamefile-engine, but my environment is still broken.
 I made ./configure --target=haiku in svn root and cleared a part of
 generated .o files to be on the safe side but I will still receive the
 following error message:
 >
 > {{{
 > Link ../../../../generated/objects/haiku/x86/release/kits/libbe.so
 >
 
../../../../generated/objects/haiku/x86/release/libs/icon/libicon.a(GradientTransformable.o):
 In function `BPrivate::Icon::Gradient::FitToBounds(BRect const&)':
 > GradientTransformable.cpp:(.text+0xf1): undefined reference to
 `agg::trans_affine::rect_to_parl(double, double, double, double, double
 const*)'
 > }}}


 This problem has nothing to do with original description of this bug. Now
 you observing linking problem not a compile-time problem. Unfortunately,
 "jam" utility looks like not strong enough to find out all cases of
 outdated dependencies in all possible situations. Looks like some object
 modules under your "generated" directory were not rebuild automatically.
 In such situation I usually do the following: 1) go to folder "generated"
 and delete or move away all files and folders from there excluding
 "download" folder. 2) go back to the root of svn tree, perform configure
 and try to build the system from the scratch. In case this doesn't help -
 current revision may be broken. :-(

 Good luck!

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6177#comment:12>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: