|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Makefile issues on hp-uxI'm seeing some weird errors when porting some code to acc-6.16, and I figured that I'd mention it because I've wasted a considerable amount of time trying to figure out why my code isn't compiling. The following is a transcript of what I've been seeing... $ pwd /build/vitek/4.3.0/11S/tests $ gmake 20.meta.trans.sign aCC -AA -g +d +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249 +W4255,4272,4284,4285,4286,4296,4297 +W3348 -D_RWSTDDEBUG -D_RWSTD_EXT_CXX_0X -I/amd/devco /vitek/stdcxx/4.3.x/include -I/build/vitek/4.3.0/11S/include -I/amd/devco/vitek/stdcxx/4.3.x/tests/include -L/build/vitek/4.3.0/11S/rwtest -lrwtest11S -AA +nostl -Wl,+s +DD64 -L/build/vitek/4.3.0/11S/lib /amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp /build/vitek/4.3.0/11S/lib/libstd11S.a /build/vitek/4.3.0/11S/rwtest/librwtest11S.a -lstd11S -lm -o 20.meta.trans.sign "/amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp", line 38: error #2005-D: could not open source file "stddef.h" #include <stddef.h> ^ "/amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp", line 149: error #2020: identifier "size_t" is undefined size_t got_size, size_t exp_size, ^ "/amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp", line 149: error #2020: identifier "size_t" is undefined size_t got_size, size_t exp_size, ^ 3 errors detected in the compilation of "/amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp". $ cp /nfs/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp ./ $ gmake 20.meta.trans.sign aCC -c -D_RWSTDDEBUG -D_RWSTD_EXT_CXX_0X -I/amd/devco/vitek/stdcxx/4.3.x/include -I/build/vitek/4.3.0/11S/include -I/amd/devco/vitek/stdcxx/4.3.x/tests/include -AA -g +d +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249 +W4255,4272,4284,4285,4286,4296,4297 +W3348 20.meta.trans.sign.cpp aCC 20.meta.trans.sign.o -o 20.meta.trans.sign -L/build/vitek/4.3.0/11S/rwtest -lrwtest11S -AA +nostl -Wl,+s +DD64 -L/build/vitek/4.3.0/11S/lib -lstd11S -lm You might have noticed that the first gmake invocation results in a single compile/link rule, and the second invocation results in separate compile/link rules. When using the single build rule, the +nostl flag is passed to the compilation stage, which essentially removes the standard (the implicit ones) include paths from the compile line. Travis |
|
|
Re: Makefile issues on hp-uxTravis Vitek wrote:
> I'm seeing some weird errors when porting some code to acc-6.16, and I > figured that I'd mention it because I've wasted a considerable amount of > time trying to figure out why my code isn't compiling. The following is > a transcript of what I've been seeing... Yeah, there's a problem with implicit rules... Use -r to disable them and to avoid compiling and linking in one step (the +nostl option can't be used for compilation with aCC because we're using its C++ libc headers such as <cstdio>). Martin > > $ pwd > /build/vitek/4.3.0/11S/tests > $ gmake 20.meta.trans.sign > aCC -AA -g +d +DD64 +w +W392,655,684,818,819,849 > +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249 > +W4255,4272,4284,4285,4286,4296,4297 +W3348 -D_RWSTDDEBUG > -D_RWSTD_EXT_CXX_0X -I/amd/devco /vitek/stdcxx/4.3.x/include > -I/build/vitek/4.3.0/11S/include > -I/amd/devco/vitek/stdcxx/4.3.x/tests/include > -L/build/vitek/4.3.0/11S/rwtest -lrwtest11S -AA +nostl -Wl,+s +DD64 > -L/build/vitek/4.3.0/11S/lib > /amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp > /build/vitek/4.3.0/11S/lib/libstd11S.a > /build/vitek/4.3.0/11S/rwtest/librwtest11S.a -lstd11S -lm -o > 20.meta.trans.sign > "/amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp", > line 38: error #2005-D: could not open source file "stddef.h" > #include <stddef.h> > ^ > > "/amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp", > line 149: error #2020: identifier "size_t" is undefined > size_t got_size, size_t exp_size, > ^ > > "/amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp", > line 149: error #2020: identifier "size_t" is undefined > size_t got_size, size_t exp_size, > ^ > > 3 errors detected in the compilation of > "/amd/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp". > > $ cp > /nfs/devco/vitek/stdcxx/4.3.x/tests/utilities/20.meta.trans.sign.cpp ./ > $ gmake 20.meta.trans.sign > aCC -c -D_RWSTDDEBUG -D_RWSTD_EXT_CXX_0X > -I/amd/devco/vitek/stdcxx/4.3.x/include -I/build/vitek/4.3.0/11S/include > -I/amd/devco/vitek/stdcxx/4.3.x/tests/include -AA -g +d +DD64 +w > +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 > +W4227,4229,4231,4235,4237,4249 +W4255,4272,4284,4285,4286,4296,4297 > +W3348 20.meta.trans.sign.cpp > aCC 20.meta.trans.sign.o -o 20.meta.trans.sign > -L/build/vitek/4.3.0/11S/rwtest -lrwtest11S -AA +nostl -Wl,+s +DD64 > -L/build/vitek/4.3.0/11S/lib -lstd11S -lm > > You might have noticed that the first gmake invocation results in a > single compile/link rule, and the second invocation results in separate > compile/link rules. When using the single build rule, the +nostl flag is > passed to the compilation stage, which essentially removes the standard > (the implicit ones) include paths from the compile line. > > > Travis |
|
|
RE: Makefile issues on hp-ux> -----Original Message----- > From: Travis Vitek [mailto:Travis.Vitek@...] > Sent: Monday, July 07, 2008 4:24 PM > To: dev@... > Subject: Makefile issues on hp-ux > > > I'm seeing some weird errors when porting some code to acc-6.16, and I > figured that I'd mention it because I've wasted a > considerable amount of > time trying to figure out why my code isn't compiling. The > following is > a transcript of what I've been seeing... > > $ pwd > /build/vitek/4.3.0/11S/tests > $ gmake 20.meta.trans.sign > aCC -AA -g +d +DD64 +w +W392,655,684,818,819,849 > +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249 > +W4255,4272,4284,4285,4286,4296,4297 +W3348 -D_RWSTDDEBUG > -D_RWSTD_EXT_CXX_0X -I/amd/devco /vitek/stdcxx/4.3.x/include Looks like there's a missing "-I" before that last directory. Brad. |
|
|
RE: Makefile issues on hp-ux> -----Original Message----- > From: Martin Sebor [mailto:msebor@...] On Behalf Of Martin Sebor > Sent: Monday, July 07, 2008 4:36 PM > To: dev@... > Subject: Re: Makefile issues on hp-ux > > Travis Vitek wrote: > > I'm seeing some weird errors when porting some code to > acc-6.16, and I > > figured that I'd mention it because I've wasted a > considerable amount of > > time trying to figure out why my code isn't compiling. The > following is > > a transcript of what I've been seeing... > > Yeah, there's a problem with implicit rules... Use -r to disable > them and to avoid compiling and linking in one step (the +nostl > option can't be used for compilation with aCC because we're > using its C++ libc headers such as <cstdio>). I was about to ask if there were separate options for the C++ header search path and the C header search path. Brad. |
| Free Forum Powered by Nabble | Forum Help |