Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125: (11 Items)
   
make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
Hello,

I seem to have an error on compile of one of my projects when trying to link against a static library.  the make command
 on a normal commandline succeeds and I noticed that the crucial step of creating the static library archive was skipped
 by the IDE.  Specifically the ntoppc-ar line.  Is there a setting or environment variable that I am missing?


Thanks in advance for all your help.
Liam
Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
You have two  project one static library project and one another and 2nd 
trying to link
against first?
What types of projects are they? Can you post build output?

Liam Howlett wrote:
> Hello,
>
> I seem to have an error on compile of one of my projects when trying to link against a static library.  the make 
command on a normal commandline succeeds and I noticed that the crucial step of creating the static library archive was 
skipped by the IDE.  Specifically the ntoppc-ar line.  Is there a setting or environment variable that I am missing?
>
>
> Thanks in advance for all your help.
> Liam
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23211
>
>   
Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
The project is c++ with an unmanaged make build on linux

in the IDE:

/opt/qnx632/host/linux/x86/usr/bin/qcc -V3.3.5,gcc_ntoppc -c -O -Wc,-mno-fp-moves -Wc,-Wall -Wc,-Wno-parentheses   -Wc,-
msoft-float -Wp,-MD,ppc.d -DTRACE_CODE  -DCOMMON_PLATFORM_CPLD_V1 -DSWLOG_NO_STACKTRACE -fstack-check  -
DTOGGLING_LED_BUG -DBSD=199307   -DTRACE_CODE  -DCOMMON_PLATFORM_CPLD_V1 -DSWLOG_NO_STACKTRACE -fstack-check  -
DTOGGLING_LED_BUG -DBSD=199307   -DNDEBUG -g     -I. -I/home/liam/comm200/commonRblBspStartupLib630/comm200/ppc/a-be -I/
home/liam/comm200/commonRblBspStartupLib630/comm200/ppc -I/home/liam/comm200/commonRblBspStartupLib630/comm200 -I/home/
liam/comm200/commonRblBspStartupLib630/lib/ppc/a.a-be -I/home/liam/comm200/commonRblBspStartupLib630/lib/ppc -I/home/
liam/comm200/commonRblBspStartupLib630/lib -I/home/liam/comm200/commonRblBspStartupLib630/common/include -I/home/liam/
comm200/commonRblBspStartupLib630/common/include/ppc -I/home/liam/comm200/commonRblBspStartupLib630/lps/include -I/home/
liam/comm200/commonRblBspStartupLib630/include -I/opt/qnx632/target/qnx6/usr/include      -EB     -DVARIANT_a -
DVARIANT_be  /home/liam/comm200/commonRblBspStartupLib630/comm200/main.c 
make[5]: Leaving directory `/home/liam/comm200/commonRblBspStartupLib630/comm200/ppc/a-be'
make[4]: Leaving directory `/home/liam/comm200/commonRblBspStartupLib630/comm200/ppc'
make[3]: Leaving directory `/home/liam/comm200/commonRblBspStartupLib630/comm200'
make -Ccommon install
make[3]: Entering directory `/home/liam/comm200/commonRblBspStartupLib630/common'
make -j 1 -Cppc -fMakefile install
make[4]: Entering directory `/home/liam/comm200/commonRblBspStartupLib630/common/ppc'
make -j 1 -Cbe -fMakefile install


on the command line:

/opt/qnx632/host/linux/x86/usr/bin/qcc -V3.3.5,gcc_ntoppc -c  -Wc,-mno-fp-moves -Wc,-Wall -Wc,-Wno-parentheses   -Wc,-
msoft-float -DTRACE_CODE  -DCOMMON_PLATFORM_CPLD_V1 -DSWLOG_NO_STACKTRACE -fstack-check  -DTOGGLING_LED_BUG -DBSD=199307
   -DTRACE_CODE  -DCOMMON_PLATFORM_CPLD_V1 -DSWLOG_NO_STACKTRACE -fstack-check  -DTOGGLING_LED_BUG -DBSD=199307 -DNULL -
DCOMM200 -DDOC_PRESENT -DNULL -DPCI_PRESENT -DNULL -DUART0 -DNULL -DNDEBUG     -I. -I/home/liam/comm200/
ppc405epRblBspPro/comm200/ppc/a-be -I/home/liam/comm200/ppc405epRblBspPro/comm200/ppc -I/home/liam/comm200/
ppc405epRblBspPro/comm200 -I/home/liam/comm200/ppc405epRblBspPro/lib/ppc/a.a-be -I/home/liam/comm200/ppc405epRblBspPro/
lib/ppc -I/home/liam/comm200/ppc405epRblBspPro/lib -I/home/liam/comm200/ppc405epRblBspPro/common/include -I/home/liam/
comm200/ppc405epRblBspPro/comm200/include -I/home/liam/comm200/ppc405epRblBspPro/include -I/opt/qnx632/target/qnx6/usr/
include      -EB     -DVARIANT_a -DVARIANT_be  /home/liam/comm200/ppc405epRblBspPro/comm200/pci.c                       
                                                                          
/bin/rm -f  /home/liam/comm200/ppc405epRblBspPro/comm200/ppc/a-be/libipl-ppc.a                                          
                                                               
/opt/qnx632/host/linux/x86/usr/bin/ntoppc-ar -r  /home/liam/comm200/ppc405epRblBspPro/comm200/ppc/a-be/libipl-ppc.a eth.
o gpio.o ioLib.o leds.o main.o pci.o                           
make[5]: Leaving directory `/home/liam/comm200/ppc405epRblBspPro/comm200/ppc/a-be'                                      
                                                               
make[4]: Leaving directory `/home/liam/comm200/ppc405epRblBspPro/comm200/ppc'                                           
                                                               
make[3]: Leaving directory `/home/liam/comm200/ppc405epRblBspPro/comm200'                                               
                                                               
done.                                                                                                                   
                                                               
Making common...         ...
View Full Message
Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
If it just make project IDE just launches make. The only difference can 
be in targets,
what make target IDE uses when you run it? (Also can be env vars, but 
this is only if you run make -e)

Liam Howlett wrote:
> The project is c++ with an unmanaged make build on linux
>
> in the IDE:
>
> /opt/qnx632/host/linux/x86/usr/bin/qcc -V3.3.5,gcc_ntoppc -c -O -Wc,-mno-fp-moves -Wc,-Wall -Wc,-Wno-parentheses   -Wc
,-msoft-float -Wp,-MD,ppc.d -DTRACE_CODE  -DCOMMON_PLATFORM_CPLD_V1 -DSWLOG_NO_STACKTRACE -fstack-check  -
DTOGGLING_LED_BUG -DBSD=199307   -DTRACE_CODE  -DCOMMON_PLATFORM_CPLD_V1 -DSWLOG_NO_STACKTRACE -fstack-check  -
DTOGGLING_LED_BUG -DBSD=199307   -DNDEBUG -g     -I. -I/home/liam/comm200/commonRblBspStartupLib630/comm200/ppc/a-be -I/
home/liam/comm200/commonRblBspStartupLib630/comm200/ppc -I/home/liam/comm200/commonRblBspStartupLib630/comm200 -I/home/
liam/comm200/commonRblBspStartupLib630/lib/ppc/a.a-be -I/home/liam/comm200/commonRblBspStartupLib630/lib/ppc -I/home/
liam/comm200/commonRblBspStartupLib630/lib -I/home/liam/comm200/commonRblBspStartupLib630/common/include -I/home/liam/
comm200/commonRblBspStartupLib630/common/include/ppc -I/home/liam/comm200/commonRblBspStartupLib630/lps/include -I/home/
liam/comm200/commonRblBspStartupLib630/include -I/opt/qnx632/target/qnx6/usr/include      -EB     -DVARIANT_a -
DVARIANT_be  /home/liam/comm200/commonRblBspStartupLib630/comm200/main.c 
> make[5]: Leaving directory `/home/liam/comm200/commonRblBspStartupLib630/comm200/ppc/a-be'
> make[4]: Leaving directory `/home/liam/comm200/commonRblBspStartupLib630/comm200/ppc'
> make[3]: Leaving directory `/home/liam/comm200/commonRblBspStartupLib630/comm200'
> make -Ccommon install
> make[3]: Entering directory `/home/liam/comm200/commonRblBspStartupLib630/common'
> make -j 1 -Cppc -fMakefile install
> make[4]: Entering directory `/home/liam/comm200/commonRblBspStartupLib630/common/ppc'
> make -j 1 -Cbe -fMakefile install
>
>
> on the command line:
>
> /opt/qnx632/host/linux/x86/usr/bin/qcc -V3.3.5,gcc_ntoppc -c  -Wc,-mno-fp-moves -Wc,-Wall -Wc,-Wno-parentheses   -Wc,-
msoft-float -DTRACE_CODE  -DCOMMON_PLATFORM_CPLD_V1 -DSWLOG_NO_STACKTRACE -fstack-check  -DTOGGLING_LED_BUG -DBSD=199307
   -DTRACE_CODE  -DCOMMON_PLATFORM_CPLD_V1 -DSWLOG_NO_STACKTRACE -fstack-check  -DTOGGLING_LED_BUG -DBSD=199307 -DNULL -
DCOMM200 -DDOC_PRESENT -DNULL -DPCI_PRESENT -DNULL -DUART0 -DNULL -DNDEBUG     -I. -I/home/liam/comm200/
ppc405epRblBspPro/comm200/ppc/a-be -I/home/liam/comm200/ppc405epRblBspPro/comm200/ppc -I/home/liam/comm200/
ppc405epRblBspPro/comm200 -I/home/liam/comm200/ppc405epRblBspPro/lib/ppc/a.a-be -I/home/liam/comm200/ppc405epRblBspPro/
lib/ppc -I/home/liam/comm200/ppc405epRblBspPro/lib -I/home/liam/comm200/ppc405epRblBspPro/common/include -I/home/liam/
comm200/ppc405epRblBspPro/comm200/include -I/home/liam/comm200/ppc405epRblBspPro/include -I/opt/qnx632/target/qnx6/usr/
include      -EB     -DVARIANT_a -DVARIANT_be  /home/liam/comm200/ppc405epRblBspPro/comm200/pci.c                       
                                                                          
> /bin/rm -f  /home/liam/comm200/ppc405epRblBspPro/comm200/ppc/a-be/libipl-ppc.a                                        
                                                                 
> /opt/qnx632/host/linux/x86/usr/bin/ntoppc-ar -r  /home/liam/comm200/ppc405epRblBspPro/comm200/ppc/a-be/libipl-ppc.a 
eth.o gpio.o ioLib.o leds.o main.o pci.o                           
> make[5]: Leaving directory `/home/liam/comm200/ppc405epRblBspPro/comm200/ppc/a-be'                                    
                                                                 
> make[4]: Leaving directory `/home/liam/comm200/ppc405epRblBspPro/comm200/ppc'                                         
                                                                 
> make[3]: Leaving directory...
View Full Message
Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
Well,

They both "make load".

There are some variables I set.. EXCLUDE_VARIANTLIST=g and such, but I have set them in the IDE as Environment variables
.  Also, these should be fine as it would fail a different way.

Is there anything else that could cause ntoppc-ar to not be used? some tool configuration or anything?
Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
Make does not use env variables as "make variables" by default (if make 
sets them  env do not have precedence). You need to add flag -e to make 
to use them. Or just edit make command
to
make EXCLUDE_VARIANTLIST=g

in the project properties

Liam Howlett wrote:
> Well,
>
> They both "make load".
>
> There are some variables I set.. EXCLUDE_VARIANTLIST=g and such, but I have set them in the IDE as Environment 
variables.  Also, these should be fine as it would fail a different way.
>
> Is there anything else that could cause ntoppc-ar to not be used? some tool configuration or anything?
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23238
>
>   
Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
I tried that suggestion but it still failed.

I seem to have it working using the gnu toolchain instead of the QNX toolchain, although some warnings are showing up as
 errors.

Is there a place to turn down the strictness?

Thanks,
Liam
Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
> I tried that suggestion but it still failed.
> 
> I seem to have it working using the gnu toolchain instead of the QNX toolchain
> , although some warnings are showing up as errors.
> 
> Is there a place to turn down the strictness?
> 
> Thanks,
> Liam

Specifically the error in question is many like the following:
"/opt/qnx632/target/qnx6/usr/include/c++/3.3.5/bits/localefwd.h macro "toupper" passed 2 arguments, but takes just 1"

These are due to using c in a c++ project, I'd like to stop this from being detected as an error.

Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
In this thread I found console output but not make file itself. Is it a 
problem  for you to send a small project as an example of what you are 
trying to do? Iwould really appreciate that.

Alex



On 02/03/2009 4:47 PM, Liam Howlett wrote:
> I tried that suggestion but it still failed.
>
> I seem to have it working using the gnu toolchain instead of the QNX toolchain, although some warnings are showing up 
as errors.
>
> Is there a place to turn down the strictness?
>
> Thanks,
> Liam
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23283
>
>    
Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
Our build is a combination of scripts and make files, I was just hoping for a simple answer for a setting.  Apparently 
the build was setup to support make from an older QNX that didn't do dependencies correctly (I'm not sure on the details
 as it was before my time).. but the short answer is that I don't know enough about the scripts to create a new project 
to show what is going on and I don't think I'm allowed to send it out as it is.

Oddly enough, one of my coworkers managed to build the same project without these issues using the QNX toolchain, so I'm
 pretty sure it's something in my environment that caused the error that was fixed by switching toolchains.

Now I'd just like a way to turn down the error reporting, as the build succeeds with warnings on the commandline but the
 project in the IDE reports these warnings as errors.
Re: make command not executing archiver (ntoppc-ar) in qde 4.5.1 Build id: I20081125  
IDE does not convert any warning to errors. It just runs make. You have different environment/toolchain when you running
 command line vs IDE.

Liam Howlett wrote:
> Our build is a combination of scripts and make files, I was just hoping for a simple answer for a setting.  Apparently
 the build was setup to support make from an older QNX that didn't do dependencies correctly (I'm not sure on the 
details as it was before my time).. but the short answer is that I don't know enough about the scripts to create a new 
project to show what is going on and I don't think I'm allowed to send it out as it is.
> 
> Oddly enough, one of my coworkers managed to build the same project without these issues using the QNX toolchain, so 
I'm pretty sure it's something in my environment that caused the error that was fixed by switching toolchains.
> 
> Now I'd just like a way to turn down the error reporting, as the build succeeds with warnings on the commandline but 
the project in the IDE reports these warnings as errors.
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23355
>