Skip to content

Update make.config.in to support subdirs#240

Merged
bendudson merged 1 commit intoboutproject:masterfrom
dschwoerer:make-subdirs
Sep 26, 2016
Merged

Update make.config.in to support subdirs#240
bendudson merged 1 commit intoboutproject:masterfrom
dschwoerer:make-subdirs

Conversation

@dschwoerer
Copy link
Contributor

Include example

Should answer question #229

@bendudson bendudson merged commit 1c70aa8 into boutproject:master Sep 26, 2016
@JensMadsen
Copy link
Contributor

Hi

Thank you for doing this. However, when trying to make your example I get

yolen@ubuntu:~/xtradisk/numerics/BOUT-dev/examples/make_subdir$ make
Compiling fuu.cxx
Linking sub
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function _start': /build/glibc-qbmteM/glibc-2.21/csu/../sysdeps/x86_64/start.S:114: undefined reference tomain'
collect2: error: ld returned 1 exit status
../../../make.config:165: recipe for target 'sub' failed
make[1]: *** [sub] Error 1
../../make.config:86: recipe for target 'fuu' failed
make: *** [fuu] Error 2

Can you help?

@bendudson
Copy link
Contributor

I had the same problem, but think I found the solution: You have to run
"configure" first, to update the make.config script

On 26 September 2016 at 13:03, Jens Madsen notifications@github.com wrote:

Hi

Thank you for doing this. However, when trying to make your example I get

yolen@ubuntu:~/xtradisk/numerics/BOUT-dev/examples/make_subdir$ make
Compiling fuu.cxx
Linking sub
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In
function _start':
/build/glibc-qbmteM/glibc-2.21/csu/../sysdeps/x86_64/start.S:114:
undefined reference tomain'
collect2: error: ld returned 1 exit status
../../../make.config:165: recipe for target 'sub' failed
make[1]: *** [sub] Error 1
../../make.config:86: recipe for target 'fuu' failed
make: *** [fuu] Error 2

Can you help?


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#240 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AANYYZkkvyIMxbTzg-GJmMpApCuwVz1rks5qt7SJgaJpZM4KDL_k
.

@JensMadsen
Copy link
Contributor

That fixed my problems:-D Sorry

@dschwoerer
Copy link
Contributor Author

Yes, otherwise sub is not recognized as specialized target, and therefore it is trying to link the module to a binary - which then fails ...

@dschwoerer dschwoerer deleted the make-subdirs branch September 26, 2016 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants