error: C compiler cannot create executables

662 views
Skip to first unread message

bobajeff

unread,
Feb 28, 2015, 9:37:14 PM2/28/15
to emscripte...@googlegroups.com
I having a little trouble with emconfigure. When I use the normal configure by it's self everything is fine but when I used it I get something like this:

configure:2237: error: C compiler cannot create executables
See `config.log' for more details.
configure: exit 77

Here's the config.log:
https://github.com/bobajeff/fastcompconfdebug/blob/master/config.log

I think the relevant part is this:

Target: x86_64-unknown-linux-gnu
Thread model: posix
Selected GCC installation:
INFO root: [32m(Emscripten: Running sanity checks) [0m
emcc (Emscripten GCC-like replacement + linker emulating GNU ld ) 1.29.0
configure:2135: $? = 0
configure:2142: /mnt/home/ec2-user/build/emscripten/emcc -V >&5
clang: error: unsupported option '-V -nostdinc'
clang: error: no input files
configure:2145: $? = 1
configure:2168: checking for C compiler default output file name
configure:2195: /mnt/home/ec2-user/build/emscripten/emcc conftest.c >&5
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: cannot find -lgcc_s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:2198: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "LLVM"
| #define PACKAGE_TARNAME "llvm"
| #define PACKAGE_VERSION "3.4svn"
| #define PACKAGE_STRING "LLVM 3.4svn"
| #define PACKAGE_BUGREPORT "http://llvm.org/bugs/"
| #define LLVM_VERSION_MAJOR 3
| #define LLVM_VERSION_MINOR 4
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:223

I'm not sure what configure is trying to do diffrently when emconfigure is in there. BTW This is using the current master of emscripten from git compiled manually.

Alon Zakai

unread,
Mar 2, 2015, 6:36:40 PM3/2/15
to emscripte...@googlegroups.com
You can try to force js in configure with EMCONFIGURE_JS=1 or 2. Or, the question is what are those crtbegin.o, -lgcc -lgcc_s things.

- Alon



--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bobajeff

unread,
Mar 2, 2015, 11:26:15 PM3/2/15
to emscripte...@googlegroups.com
Yeah, I was wondering why it had problems finding lgcc and crtbegin.o when using emconfigure. This create an executable test that configure is running didn't seem to trip up emscripten last time I tried to compile fastcomp with it. I was thinking maybe my system wasn't setup right.

I'll try using emconfigure_js=n to see if that does anything.

bobajeff

unread,
Mar 3, 2015, 8:39:12 AM3/3/15
to emscripte...@googlegroups.com
Update:

EMCONFIGURE_JS=1 worked. Still don't know what changed in emscripten or Fastcomp's (LLVM's) configure to make it necessary but not worried about it. I'd like to eventually do a port with out the need of emconfigure or emmake magic anyway.
Reply all
Reply to author
Forward
0 new messages