pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46137: Wrapper behaves inconsistently if gcc does not accept -R option



>Number:         46137
>Category:       pkg
>Synopsis:       Wrapper behaves inconsistently if gcc does not accept -R option
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 03 17:05:00 +0000 2012
>Originator:     Litvinov Sergey
>Release:        Ubuntu Linux
>Organization:
>Environment:
Linux vital303-desktop 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:50:54 UTC 
2012 i686 athlon i386 GNU/Linux
>Description:
In devel/scmgit-base (as an example) I did
bmake wrapper

I created a file
> cat test.c
int main() {
};

The file compiles and links in this way 
(in this way linker is checked in  ./configure of devel/scmgit-base)
> ./work/.wrapper/bin/gcc -R / test.c

But it gives error if I add ${LOCALBASE}/lib as an argument
> ./work/.wrapper/bin/gcc -R/home/vital303/netbsd/lib test.c
gcc: error: unrecognized option '-R'

If I link directly with gcc I get errors
> gcc -R/home/vital303/netbsd/lib test.c
gcc: error: unrecognized option '-R'

> gcc -R /  test.c
gcc: error: unrecognized option '-R'

work/.work.log
[*] ./work/.wrapper/bin/gcc ./work/.wrapper/bin/gcc -R / test.c
<.> /media/sdb2/src/pkgsrc/devel/scmgit-base/work/.gcc/bin/gcc test.c 
-std=gnu99 -I/media/sdb2/src/pkgsrc/devel/scmgit-base/work/.buildlink/include 
-L/media/sdb2/src/pkgsrc/devel/scmgit-base/work/.buildlink/lib 
[*] ./work/.wrapper/bin/gcc ./work/.wrapper/bin/gcc -R/home/vital303/netbsd/lib 
test.c
WARNING: [transform-gcc] passing unknown option -R/home/vital303/netbsd/lib
<.> /media/sdb2/src/pkgsrc/devel/scmgit-base/work/.gcc/bin/gcc 
-R/home/vital303/netbsd/lib test.c -std=gnu99 
-I/media/sdb2/src/pkgsrc/devel/scmgit-base/work/.buildlink/include 
-L/media/sdb2/src/pkgsrc/devel/scmgit-base/work/.buildlink/lib 

My gcc version is
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

>How-To-Repeat:
bmake install in
devel/scmgit-base

for gcc with no -R option
>Fix:
For devel/scmgit-base I add
CONFIGURE_ENV+=         git_cv_ld_dashr=no
to devel/scmgit-base/Makefile



Home | Main Index | Thread Index | Old Index