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

Bash version #15

Open
edenhill opened this issue Jul 9, 2015 · 8 comments
Open

Bash version #15

edenhill opened this issue Jul 9, 2015 · 8 comments

Comments

@edenhill
Copy link
Owner

edenhill commented Jul 9, 2015

mklove currently depends on bash functionality which is only available from bash version 3.2 and later.
Bash 3.2 was released in 2006 so it should be available on most systems.

@4picht
Copy link

4picht commented Nov 6, 2017

Seems 3.2 does not do the trick...
$ ./bash-3.2/bash configure
mklove/modules/configure.base: line 272: unexpected token (', expected )'
mklove/modules/configure.base: line 272: syntax error near ^[0-9]+(['
mklove/modules/configure.base: line 272: elif [[ ! ( "$val" =~ ^[0-9]+([lL]?[lL][dDuU]?)?$ || '
configure: line 19: mkl_in_list: command not found
configure: line 21: mkl_in_list: command not found
configure: line 22: mkl_in_list: command not found
configure: line 27: mkl_check_terminal_color_support: command not found
configure: line 39: mkl_require: command not found
configure: line 42: mkl_require: command not found
configure: line 45: mkl_require: command not found
configure: line 59: mkl_require: command not found
configure: line 193: mkl_cache_read: command not found
configure: line 196: mkl_checks_run: command not found
configure: line 199: mkl_check_fails: command not found
configure: line 202: mkl_generate: command not found
configure: line 205: mkl_summary: command not found
configure: line 208: mkl_cache_write: command not found

$ ./bash-4.0/bash ./configure
Works for me, although I need to pass TOPDIR manually for the Makefile to work.

@EugenDueck
Copy link

@edenhill

Bash 3.2 was released in 2006 so it should be available on most systems.

I just installed MinGW to do a Windows build, and bash is still on 3.1.23, I cannot configure it there.

@edenhill
Copy link
Owner Author

edenhill commented Sep 2, 2020

Is it possible to upgrade bash in your mingw install?
Have to draw the legacy support line somewhere

@EugenDueck
Copy link

Sure. But unfortunately that is the latest version of bash, according to the MinGW Installation Manager

@EugenDueck
Copy link

EugenDueck commented Sep 2, 2020

I think I will just give up at this point and have some Windows user build it with Visual Studio - I am not using Windows myself.

@edenhill
Copy link
Owner Author

edenhill commented Sep 2, 2020

If you're building librdkafka you could try its CMake builder instead.

@EugenDueck
Copy link

EugenDueck commented Sep 2, 2020

Is it possible to cross-compile from Windows to Linux? I have never done it, but configure --help has all cross-compile options marked "(no-op)", and /configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32/ leads to the usual ELF binary, so I guess the answer is no?

Cross-compilation options:
   --host=HOST                          Configure to build programs to run on HOST (no-op)
   --build=BUILD                        Configure for building on BUILD (no-op)
   --target=TARGET                      Configure for building cross-toolkits for platform TARGET (no-op)

@edenhill
Copy link
Owner Author

edenhill commented Sep 3, 2020

The cross-compilation options are for command line argument compat only, they won't really work, but I guess it is possible by setting up CC, CXX, CPPFLAGS, et.al, accordingly, but this outside of my knowledge.
I'd just fire up a docker container to do the build.

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

2 participants