pkgsrc-WIP-discuss archive

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

Re: .wrapper/bin/cc ignoring -I/usr/pkg/include flag



> pkgsrc hides everything from the compiler that is not explicitly
> mentioned as a dependency. Adding the following line to your package
> Makefile should be enough:
> 
> .include "../../devel/binutils/buildlink3.mk"
> 
> Roland

That is already in my Makefile. I am updating my pkgsrc now as i have is
a couple of years old, which may make a significant difference.

As a result of:
make clean
make wrapper
make show-var VARNAME=BUILDLINK_DIR

bash-3.00# ls -l /usr/pkgsrc/wip/edoc/work/.buildlink/include
drwxr-xr-x  2 root  wheel  2048 Aug 13 19:43 python2.4

So it does not have the specified bfd.h file. I looked at the .work.log
file and it seems that: -I/usr/pkg/include is being mapped to:
-I/usr/pkgsrc/wip/edoc/work/.buildlink/include

The problem is that the bfd.h file does not exist in the new location,
only in the /usr/pkg/include/ location. I am also not sure if that
mapping comes in as a result of the python2.4 buildlink.mk file that is
also included in my Makefile as the python stuff has been correctly
mapped to the given location. I will see how the pkgsrc update goes.
Could it be a bug in the very old binutils buildink.mk file?


Below is what i think is the relevant section of the .work.log file.

[*] /usr/pkgsrc/wip/edoc/work/.wrapper/bin/cc -o conftest -O2
-I/usr/pkg/include/python2.4 -I/usr/include -I/usr/pkg/include/python2.4
-I/usr/include -I/usr/pkg/include -L/usr/pkg/lib/python2.4/config
-Wl,-R/usr/pkg/lib/python2.4/config -L/usr/lib -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c -lbfd -liberty -lintl
    (wrapper.sh) append args:
-I/usr/pkgsrc/wip/edoc/work/.buildlink/include -L/
usr/pkgsrc/wip/edoc/work/.buildlink/lib
    (arg-source) push: -o
    (arg-source) push: conftest
    (arg-source) push: -O2
    (arg-source) push: -I/usr/pkg/include/python2.4
    (arg-source) push: -I/usr/include
    (arg-source) push: -I/usr/pkg/include/python2.4
    (arg-source) push: -I/usr/include
    (arg-source) push: -I/usr/pkg/include
    (arg-source) push: -L/usr/pkg/lib/python2.4/config
    (arg-source) push: -Wl,-R/usr/pkg/lib/python2.4/config
    (arg-source) push: -L/usr/lib
    (arg-source) push: -Wl,-R/usr/lib
    (arg-source) push: -Wl,-R/usr/pkg/lib
    (arg-source) push: -L/usr/pkg/lib
    (arg-source) push: conftest.c
    (arg-source) push: -lbfd
    (arg-source) push: -liberty
    (arg-source) push: -lintl
    (arg-source) push: -I/usr/pkgsrc/wip/edoc/work/.buildlink/include
    (arg-source) push: -L/usr/pkgsrc/wip/edoc/work/.buildlink/lib
    (logic) pop:  -o
    (logic) to:   -o [cached]
    (logic) push: -o
    (logic) pop:  conftest
    (logic) push: conftest [skipped]
    (logic) pop:  -O2
    (logic) to:   -O2 [cached]
    (logic) push: -O2
    (logic) pop:  -I/usr/pkg/include/python2.4
    (logic) to:
-I/usr/pkgsrc/wip/edoc/work/.buildlink/include/python2.4 [cach
ed]
    (logic) push: -I/usr/pkgsrc/wip/edoc/work/.buildlink/include/python2.4
    (logic) pop:  -I/usr/include
    (logic) to:    [cached]
    (logic) push:
    (logic) pop:  -I/usr/pkg/include/python2.4
    (logic) to:
-I/usr/pkgsrc/wip/edoc/work/.buildlink/include/python2.4 [cach
ed]
    (logic) push: -I/usr/pkgsrc/wip/edoc/work/.buildlink/include/python2.4
    (logic) pop:  -I/usr/include
    (logic) to:    [cached]
    (logic) push:
    (logic) pop:  -I/usr/pkg/include
    (logic) to:   -I/usr/pkgsrc/wip/edoc/work/.buildlink/include
    (logic) push: -I/usr/pkgsrc/wip/edoc/work/.buildlink/include
    (logic) pop:  -L/usr/pkg/lib/python2.4/config
    (logic) to:
-L/usr/pkgsrc/wip/edoc/work/.buildlink/lib/python2.4/config [c
ached]
    (logic) push:
-L/usr/pkgsrc/wip/edoc/work/.buildlink/lib/python2.4/config
    (logic) pop:  -Wl,-R/usr/pkg/lib/python2.4/config
    (logic) to:   -Wl,-R/usr/pkg/lib/python2.4/config [cached]
    (logic) push: -Wl,-R/usr/pkg/lib/python2.4/config
    (logic) pop:  -L/usr/lib
    (logic) to:    [cached]
    (logic) push:
    (logic) pop:  -Wl,-R/usr/lib
    (logic) to:    [cached]
    (logic) push:
    (logic) pop:  -Wl,-R/usr/pkg/lib
    (logic) to:   -Wl,-R/usr/pkg/lib [cached]
    (logic) push: -Wl,-R/usr/pkg/lib
    (logic) pop:  -L/usr/pkg/lib
    (logic) to:   -L/usr/pkgsrc/wip/edoc/work/.buildlink/lib
    (logic) push: -L/usr/pkgsrc/wip/edoc/work/.buildlink/lib
    (logic) pop:  conftest.c
    (logic) to:   conftest.c [untransformed]
    (logic) push: conftest.c
    (logic) pop:  -lbfd
    (logic) to:   -lbfd [cached]
    (logic) push: -lbfd [split]
    (logic) pop:  -liberty
    (logic) to:   -liberty [cached]
    (logic) push: -liberty [split]
    (logic) pop:  -lintl
    (logic) to:   -lintl [cached]
    (logic) push: -lintl [split]
    (logic) pop:  -I/usr/pkgsrc/wip/edoc/work/.buildlink/include
    (logic) to:   -I/usr/pkgsrc/wip/edoc/work/.buildlink/include [cached]
    (logic) push: -I/usr/pkgsrc/wip/edoc/work/.buildlink/include
    (logic) pop:  -L/usr/pkgsrc/wip/edoc/work/.buildlink/lib
    (logic) to:   -L/usr/pkgsrc/wip/edoc/work/.buildlink/lib [cached]
    (logic) push: -L/usr/pkgsrc/wip/edoc/work/.buildlink/lib
    (cmd-sink) pop: -o
    (cmd-sink) pop: conftest
    (cmd-sink) pop: -O2
    (cmd-sink) pop: -I/usr/pkgsrc/wip/edoc/work/.buildlink/include/python2.4
    (cmd-sink) pop:
    (cmd-sink) pop: -I/usr/pkgsrc/wip/edoc/work/.buildlink/include/python2.4
    (cmd-sink) pop:
    (cmd-sink) pop: -I/usr/pkgsrc/wip/edoc/work/.buildlink/include
    (cmd-sink) pop:
-L/usr/pkgsrc/wip/edoc/work/.buildlink/lib/python2.4/config
    (cmd-sink) pop: -Wl,-R/usr/pkg/lib/python2.4/config
    (cmd-sink) pop:
    (cmd-sink) pop:
    (cmd-sink) pop: -Wl,-R/usr/pkg/lib
    (cmd-sink) pop: -L/usr/pkgsrc/wip/edoc/work/.buildlink/lib
    (cmd-sink) pop: conftest.c
    (cmd-sink) pop: -lbfd
    (cmd-sink) pop: -liberty
    (cmd-sink) pop: -lintl
    (cmd-sink) pop: -I/usr/pkgsrc/wip/edoc/work/.buildlink/include
    (cmd-sink) pop: -L/usr/pkgsrc/wip/edoc/work/.buildlink/lib
<.> /usr/pkgsrc/wip/edoc/work/.gcc/bin/gcc -o conftest -O2
I/usr/pkgsrc/wip/edoc/work/.buildlink/include/python2.4
-I/usr/pkgsrc/wip/edoc/work/.buildlink/include
-L/usr/pkgsrc/wip/edoc/work/.buildlink/lib/python2.4/config
-Wl,-R/usr/pkg/lib/python2.4/config -Wl,-R/usr/pkg/lib
-L/usr/pkgsrc/wip/edoc/work/.buildlink/lib conftest.c -lbfd -liberty -lintl


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss




Home | Main Index | Thread Index | Old Index