Re: VB: SCons fails to build
Bill Deegan <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAEyG4CHU-rrBumv1iO7xm7jnETRamQg=udbSX9VSvFc2tRfyzg@mail.gmail.com> |
You have import project in your top level SConstruct. That's not a scons or python module. You either have it in your site_scons, or in your python tree. Thus we cannot use your example. -Bill On Fri, Oct 12, 2018 at 2:55 AM Kristian Kinderlöv < [email protected]> wrote: > Strange that it doesn’t work. I’ve double check and for me it run outside > my build tree. There are some prerequisites: gcc, scons, python, linux. Did > you get any debug/error logs? As I mentioned before I haven’t managed to > get the problem with a simple example, but I can give that one more try. > > > > In my Ubuntu environment I get: > > ./build/scons_wrapper.sh CONFIG=config/config-posix-debug.cfg > TOOLCHAIN=posix-gcc hello > > NOTE: Compiling with gcc 7 found in /usr/bin > > gcc > _output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello_main.o > > scons: *** > [_output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello_main.o] > No such file or directory > > > > And in Arch Linux or MSYS: > > ./build/scons_wrapper.sh CONFIG=config/config-posix-debug.cfg > TOOLCHAIN=posix-gcc hello NOTE: Compiling with gcc 7.2.1 found in /usr/bin > > gcc > _output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello_main.o > > gcc > _output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello > > size > _output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello > > _output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello.size > > objdump -d > _output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello > > _output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello.lst > > Install file: > "_output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello.size" > as "_output/hello/host/config-posix-debug/posix-gcc/hello.size" > > Install file: > "_output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello.lst" > as "_output/hello/host/config-posix-debug/posix-gcc/hello.lst" > > Install file: > "_output/hello/host/config-posix-debug/posix-gcc/applications/hello/hello" > as "_output/hello/host/config-posix-debug/posix-gcc/bin/hello" > > > > > > *Från:* Bill Deegan <[email protected]> > *Skickat:* den 11 oktober 2018 18:47 > *Till:* SCons users mailing list <[email protected]> > *Kopia:* Kristian Kinderlöv <[email protected]> > *Ämne:* Re: [Scons-users] VB: SCons fails to build > > > > Doesn't work. > > Trying to import project. > > > > Please make a single file to demonstrate the issue. And double check it > can be run outside your build tree. > > > > > > On Thu, Oct 11, 2018 at 9:21 AM Kristian Kinderlöv via Scons-users < > [email protected]> wrote: > > Hi again, > > > > I’ve removed the git repo check in the attached file, so hopefully it works now for you. I agree that a more simple example would be better and I’ve tried that but without getting the error/problem. Maybe the “spawn” wasn’t called in that example. > > > > *Från:* Scons-users <[email protected]> *För *Bill Deegan > *Skickat:* den 10 oktober 2018 18:43 > *Till:* SCons users mailing list <[email protected]> > *Ämne:* Re: [Scons-users] VB: SCons fails to build > > > > Ideally you'd send a single SConstruct file to demonstrate, rather than > tyring to extract some subset of your non-trivial build system. > > > > On Wed, Oct 10, 2018 at 9:51 AM Mats Wichmann <[email protected]> wrote: > > On 10/10/2018 05:41 AM, Kristian Kinderlöv via Scons-users wrote: > > Hi, > > > > I've attached an example. Extract the file with "tar -zxvf > my_project.tar.gz" and "cd" to my_project. > > > > Now you build with: > > ./build/scons_wrapper.sh CONFIG=config/config-posix-debug.cfg > TOOLCHAIN=posix-gcc hello > > > Funkar inte :) > > it seems to expect more setup than you sent along as it gets git errors > > fatal: Not a git repository (or any parent up to mount point /) > Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). > > > > Answer from the question below: > > Default in ubuntu the "sh" points to dash: > > ll /bin/sh > > lrwxrwxrwx 1 root root 9 Oct 3 09:49 /bin/sh -> /bin/dash* > > > > (I tried also to changed "sh" to point to bash instead but that gave the > same problem) > > > > Br > > Kristian > > I didn't mean the system's idea of 'sh' (I know Ubuntu makes that dash), > but scons' idea of the construction variable SHELL. However, I can grep > through what you sent and see nothing touches that. > > > > _______________________________________________ > Scons-users mailing list > [email protected] > https://pairlist4.pair.net/mailman/listinfo/scons-users > > > The information in this email may be confidential and/or legally > privileged. It has been sent for the sole use of the intended recipient(s). > If you are not an intended recipient, you are strictly prohibited from > reading, disclosing, distributing, copying or using this email or any of > its contents, in any way whatsoever. If you have received this email in > error, please contact the sender by reply email and destroy all copies of > the original message. Please also be advised that emails are not a secure > form for communication, and may contain errors. > > _______________________________________________ > Scons-users mailing list > [email protected] > https://pairlist4.pair.net/mailman/listinfo/scons-users > > > The information in this email may be confidential and/or legally > privileged. It has been sent for the sole use of the intended recipient(s). > If you are not an intended recipient, you are strictly prohibited from > reading, disclosing, distributing, copying or using this email or any of > its contents, in any way whatsoever. If you have received this email in > error, please contact the sender by reply email and destroy all copies of > the original message. Please also be advised that emails are not a secure > form for communication, and may contain errors. > _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users