Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic: (16 Items)
   
powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
Hi,

When I change a library from dynamic to static, the IDE puts the following in the common.mk file

#===== LIBS - a space-separated list of library items to be included in the link.
LIBS=-Bstatic io-char pm ps -Bdynamic


However, when it compiles, I get the following:

C:/QNX632/host/win32/x86/usr/bin/qcc -V3.3.5,gcc_ntoppc -Wl,--no-keep-memory   -oC:/ARI/IDDAerospace/Code/devc/ser8250/
ppc/be/devc-ser8250    externs.o    init.o    intr.o    main.o    options.o    query_defdev.o    sys_ttyinit.o    tto.o 
 -L. -LC:/QNX632/target/qnx6/usr/lib/xilinx -LC:/QNX632/target/qnx6/ppcbe/lib/gcc/3.3.5 -LC:/QNX632/target/qnx6/ppcbe/
lib -LC:/QNX632/target/qnx6/ppcbe/usr/lib   -l-Bstatic    -lio-char    -lpm    -lps    -l-Bdynamic   -EB        
/cygdrive/c/QNX632/host/win32/x86/usr/bin/powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic


It looks like it is confusing the option -Bstatic with -l options.  How can I fix this?

Thanks
Kevin
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
On Thu, Feb 26, 2009 at 02:57:40PM -0500, Kevin Stallard wrote:
> Hi,
> 
> When I change a library from dynamic to static, the IDE puts the following in the common.mk file
> 
> #===== LIBS - a space-separated list of library items to be included in the link.
> LIBS=-Bstatic io-char pm ps -Bdynamic
> 
> 
> However, when it compiles, I get the following:
> 
> C:/QNX632/host/win32/x86/usr/bin/qcc -V3.3.5,gcc_ntoppc -Wl,--no-keep-memory   -oC:/ARI/IDDAerospace/Code/devc/ser8250
/ppc/be/devc-ser8250    externs.o    init.o    intr.o    main.o    options.o    query_defdev.o    sys_ttyinit.o    tto.o
  -L. -LC:/QNX632/target/qnx6/usr/lib/xilinx -LC:/QNX632/target/qnx6/ppcbe/lib/gcc/3.3.5 -LC:/QNX632/target/qnx6/ppcbe/
lib -LC:/QNX632/target/qnx6/ppcbe/usr/lib   -l-Bstatic    -lio-char    -lpm    -lps    -l-Bdynamic   -EB        
> /cygdrive/c/QNX632/host/win32/x86/usr/bin/powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic
> 
> 
> It looks like it is confusing the option -Bstatic with -l options.  How can I fix this?

I think the correct way is:

LIBPREF_io-char=-Bstatic
LIBPOST_ps=-Bdynamic
LIBS=io-char pm ps

-seanb
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
Thanks Sean,

I don't know if this is problem report material or not, but the IDE is the one doing it....

Kevin

Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
On Thu, Feb 26, 2009 at 03:45:55PM -0500, Kevin Stallard wrote:
> Thanks Sean,
> 
> I don't know if this is problem report material or not, but the IDE is the one doing it....

Did the suggested change fix it?  If so I'll make a PR.

-seanb
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
It did.

The following is roughly what I did to cause the issue:

The project (and it's funny because it just all of a sudden started to do this) is a devc driver, devc-ser8250 to be 
exact.

I created a project in the IDE called devc, copied the contents of the BSP's devc folder into my devc folder.

I then changed io-char from dynamic to static, et voila, les problems


Thanks again,
Kevin
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
Please send pr

Kevin Stallard wrote:
> Thanks Sean,
> 
> I don't know if this is problem report material or not, but the IDE is the one doing it....
> 
> Kevin
> 
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23021
> 
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
Yay! That worked!

Thanks
Kevin
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
PR57544, PR60961

Was  fixed in IDE 4.5

Regards,

Alex

On 26/02/2009 2:57 PM, Kevin Stallard wrote:
> Hi,
>
> When I change a library from dynamic to static, the IDE puts the following in the common.mk file
>
> #===== LIBS - a space-separated list of library items to be included in the link.
> LIBS=-Bstatic io-char pm ps -Bdynamic
>
>
> However, when it compiles, I get the following:
>
> C:/QNX632/host/win32/x86/usr/bin/qcc -V3.3.5,gcc_ntoppc -Wl,--no-keep-memory   -oC:/ARI/IDDAerospace/Code/devc/ser8250
/ppc/be/devc-ser8250    externs.o    init.o    intr.o    main.o    options.o    query_defdev.o    sys_ttyinit.o    tto.o
  -L. -LC:/QNX632/target/qnx6/usr/lib/xilinx -LC:/QNX632/target/qnx6/ppcbe/lib/gcc/3.3.5 -LC:/QNX632/target/qnx6/ppcbe/
lib -LC:/QNX632/target/qnx6/ppcbe/usr/lib   -l-Bstatic    -lio-char    -lpm    -lps    -l-Bdynamic   -EB
> /cygdrive/c/QNX632/host/win32/x86/usr/bin/powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic
>
>
> It looks like it is confusing the option -Bstatic with -l options.  How can I fix this?
>
> Thanks
> Kevin
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23017
>
>    
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
I'm using 4.5...maybe I've got some setting wrong?

Kevin
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
On 26/02/2009 4:20 PM, Kevin Stallard wrote:
> I'm using 4.5...maybe I've got some setting wrong?
>
> Kevin
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23028
>
>    
Below is a bug description. Is it your case?

===============================================================

$ make
C:/QNX640/host/win32/x86/usr/bin/make.exe -j 1 -Cppc -fMakefile
make.exe[1]: Entering directory `c:/ide-4.5-workspace/taseon2/ppc'
C:/QNX640/host/win32/x86/usr/bin/make.exe -j 1 -Co-be -fMakefile
make.exe[2]: Entering directory `c:/ide-4.5-workspace/taseon2/ppc/o-be'
../../common.mk:60: no file name for `-include'
make.exe[2]: *** No rule to make target `lib-Bstatic.a', needed by
`c:/ide-4.5-w
orkspace/taseon2/ppc/o-be/adfmgr'.  Stop.
make.exe[2]: Leaving directory `c:/ide-4.5-workspace/taseon2/ppc/o-be'
make.exe[1]: *** [all] Error 2
make.exe[1]: Leaving directory `c:/ide-4.5-workspace/taseon2/ppc'
C:\QNX640\host\win32\x86\usr\bin\make.exe: *** [all] Error 2
$

How to Reproduce:
Create Hello QNX project, then create empty static library QNX project, add to
the first one on the extra libraries tab (see properties) the static linc to
the second one, then try to build from IDE and from the command lin. In the
last case you'll get something like that:

make.exe[2]: *** No rule to make target `lib-Bstatic.a', needed by ...


==================================================================

It seems to me that it was 4.5.1, not 4.5.0
If you could send an example, it would be greate.
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
Maybe, common.mk + .qnx_internal.mk would be enough.

On 26/02/2009 4:20 PM, Kevin Stallard wrote:
> I'm using 4.5...maybe I've got some setting wrong?
>
> Kevin
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23028
>
>    
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
Attached are the files in the state wherein they mess up....

Thanks
Kevin
Attachment: Text common.mk 2.33 KB
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
One more

Kevin
Attachment: Text .qnx_internal.mk 2.54 KB
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
Probably it is just enough to open properties-> QNX project properties 
and press OK.
If it doesn't help, could you please just re-import this BSP to your 
IDE. I think it was orginaly imported in IDE4.0.1

On 26/02/2009 6:19 PM, Kevin Stallard wrote:
> One more
>
> Kevin
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23040
>    
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
Hey Alex,

While you're looking at those files, can you tell me why I get the following error message?

C:\QNX632\host\win32\x86\usr\bin\make -k CPULIST=ppc EXCLUDE_VARIANTLIST=le/ VARIANTLIST=g all --file=C:/DOCUME~1/Kevin/
LOCALS~1/Temp/QMakefile123569279695350925.tmp 
C:/QNX632/host/win32/x86/usr/bin/make -j 1 -Cser8250 -fMakefile all
make[1]: Entering directory `C:/ARI/IDDAerospace/Code/devc/ser8250'
C:/QNX632/host/win32/x86/usr/bin/make -j 1 -Cppc -fMakefile all
make[2]: Entering directory `C:/ARI/IDDAerospace/Code/devc/ser8250/ppc'
C:/QNX632/host/win32/x86/usr/bin/make -j 1 -Co-be-g -fMakefile all
../../../common.mk:35: /pinfo.mk: No such file or directory
make[3]: *** No rule to make target `/pinfo.mk'.
make[3]: Failed to remake makefile `/pinfo.mk'.
make[3]: Entering directory `C:/ARI/IDDAerospace/Code/devc/ser8250/ppc/o-be-g'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `C:/ARI/IDDAerospace/Code/devc/ser8250/ppc/o-be-g'
make[2]: Leaving directory `C:/ARI/IDDAerospace/Code/devc/ser8250/ppc'
make[1]: Leaving directory `C:/ARI/IDDAerospace/Code/devc/ser8250'
Re: powerpc-unknown-nto-qnx6.3.0-ld: cannot find -l-Bstatic  
Not sure 100%, but I don't see variant level in your project tree (last 
entering into ppc directory), though variantlist = g. Weird...

On 26/02/2009 7:02 PM, Kevin Stallard wrote:
> Hey Alex,
>
> While you're looking at those files, can you tell me why I get the following error message?
>
> C:\QNX632\host\win32\x86\usr\bin\make -k CPULIST=ppc EXCLUDE_VARIANTLIST=le/ VARIANTLIST=g all --file=C:/DOCUME~1/
Kevin/LOCALS~1/Temp/QMakefile123569279695350925.tmp
> C:/QNX632/host/win32/x86/usr/bin/make -j 1 -Cser8250 -fMakefile all
> make[1]: Entering directory `C:/ARI/IDDAerospace/Code/devc/ser8250'
> C:/QNX632/host/win32/x86/usr/bin/make -j 1 -Cppc -fMakefile all
> make[2]: Entering directory `C:/ARI/IDDAerospace/Code/devc/ser8250/ppc'
> C:/QNX632/host/win32/x86/usr/bin/make -j 1 -Co-be-g -fMakefile all
> ../../../common.mk:35: /pinfo.mk: No such file or directory
> make[3]: *** No rule to make target `/pinfo.mk'.
> make[3]: Failed to remake makefile `/pinfo.mk'.
> make[3]: Entering directory `C:/ARI/IDDAerospace/Code/devc/ser8250/ppc/o-be-g'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `C:/ARI/IDDAerospace/Code/devc/ser8250/ppc/o-be-g'
> make[2]: Leaving directory `C:/ARI/IDDAerospace/Code/devc/ser8250/ppc'
> make[1]: Leaving directory `C:/ARI/IDDAerospace/Code/devc/ser8250'
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post23043
>
>