Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support time >= 0.3.11 with gcc #597

Closed
mkroening opened this issue Nov 29, 2022 · 1 comment
Closed

Support time >= 0.3.11 with gcc #597

mkroening opened this issue Nov 29, 2022 · 1 comment

Comments

@mkroening
Copy link
Member

From hermit-os/hermit-gcc#25 (comment).

Error:

...
checking for x86_64-hermit-gcc... /build/tmp/gcc/./gcc/xgcc -B/build/tmp/gcc/./gcc/ -B/opt/hermit/x86_64-hermit/bin/ -B/opt/hermit/x86_64-hermit/lib/ -isystem /opt/hermit/x86_64-hermit/include -isystem /opt/hermit/x86_64-hermit/sys-include   
checking for C compiler default output file name... 
configure: error: in `/build/tmp/gcc/x86_64-hermit/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [Makefile:15145: configure-target-libgomp] Error 1
make[1]: Leaving directory '/build/tmp/gcc'
make[1]: Entering directory '/build/tmp/gcc'
...

/build/tmp/gcc/x86_64-hermit/libgomp/config.log:

...
configure:3709: checking for C compiler default output file name
configure:3731: /build/tmp/gcc/./gcc/xgcc -B/build/tmp/gcc/./gcc/ -B/opt/hermit/x86_64-hermit/bin/ -B/opt/hermit/x86_64-hermit/lib/ -isystem /opt/hermit/x86_64-hermit/include -isystem /opt/hermit/x86_64-hermit/sys-include    -m64 -O3   conftest.c  >&5
/opt/hermit/x86_64-hermit/bin/ld: /opt/hermit/x86_64-hermit/lib/libhermit.a(time-ec008b51df40b55c.time.b046ec56-cgu.1.rcgu.o): in function `libhermit__ZN4time8duration8Duration11seconds_f6417h2ce9577e71660f81E':
libhermit_time.b046ec56-cgu.1:(.text._ZN4time8duration8Duration11seconds_f6417h2ce9577e71660f81E+0xd7): undefined reference to `libhermit_fmod'
/opt/hermit/x86_64-hermit/bin/ld: /opt/hermit/x86_64-hermit/lib/libhermit.a(time-ec008b51df40b55c.time.b046ec56-cgu.1.rcgu.o): in function `libhermit__ZN4time8duration8Duration11seconds_f3217hf10b40a65964be25E':
libhermit_time.b046ec56-cgu.1:(.text._ZN4time8duration8Duration11seconds_f3217hf10b40a65964be25E+0xb3): undefined reference to `libhermit_fmodf'
/opt/hermit/x86_64-hermit/bin/ld: /opt/hermit/x86_64-hermit/lib/libhermit.a(time-ec008b51df40b55c.time.b046ec56-cgu.1.rcgu.o): in function `libhermit__ZN77_$LT$time..duration..Duration$u20$as$u20$core..ops..arith..Mul$LT$f32$GT$$GT$3mul17hdba7c0d172164684E':
libhermit_time.b046ec56-cgu.1:(.text._ZN77_$LT$time..duration..Duration$u20$as$u20$core..ops..arith..Mul$LT$f32$GT$$GT$3mul17hdba7c0d172164684E+0xee): undefined reference to `libhermit_fmodf'
/opt/hermit/x86_64-hermit/bin/ld: /opt/hermit/x86_64-hermit/lib/libhermit.a(time-ec008b51df40b55c.time.b046ec56-cgu.1.rcgu.o): in function `libhermit__ZN77_$LT$time..duration..Duration$u20$as$u20$core..ops..arith..Mul$LT$f64$GT$$GT$3mul17hf977b082e0d2e285E':
libhermit_time.b046ec56-cgu.1:(.text._ZN77_$LT$time..duration..Duration$u20$as$u20$core..ops..arith..Mul$LT$f64$GT$$GT$3mul17hf977b082e0d2e285E+0x11c): undefined reference to `libhermit_fmod'
/opt/hermit/x86_64-hermit/bin/ld: /opt/hermit/x86_64-hermit/lib/libhermit.a(time-ec008b51df40b55c.time.b046ec56-cgu.1.rcgu.o): in function `libhermit__ZN77_$LT$time..duration..Duration$u20$as$u20$core..ops..arith..Div$LT$f32$GT$$GT$3div17h189f18d044cf36e7E':
libhermit_time.b046ec56-cgu.1:(.text._ZN77_$LT$time..duration..Duration$u20$as$u20$core..ops..arith..Div$LT$f32$GT$$GT$3div17h189f18d044cf36e7E+0xed): undefined reference to `libhermit_fmodf'
/opt/hermit/x86_64-hermit/bin/ld: /opt/hermit/x86_64-hermit/lib/libhermit.a(time-ec008b51df40b55c.time.b046ec56-cgu.1.rcgu.o): in function `libhermit__ZN77_$LT$time..duration..Duration$u20$as$u20$core..ops..arith..Div$LT$f64$GT$$GT$3div17he68d88f5bcfc8edbE':
libhermit_time.b046ec56-cgu.1:(.text._ZN77_$LT$time..duration..Duration$u20$as$u20$core..ops..arith..Div$LT$f64$GT$$GT$3div17he68d88f5bcfc8edbE+0x11b): undefined reference to `libhermit_fmod'
collect2: error: ld returned 1 exit status
configure:3735: $? = 1
configure:3772: result: 
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Offloading and Multi Processing Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU Offloading and Multi Processing Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3778: error: in `/build/tmp/gcc/x86_64-hermit/libgomp':
configure:3782: error: C compiler cannot create executables
See `config.log' for more details.
...
@mkroening
Copy link
Member Author

This depends on rust-lang/compiler-builtins#509.

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

No branches or pull requests

1 participant