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

configure script is not accepting compiler flags #6867

Closed
vicuna opened this issue May 13, 2015 · 2 comments
Closed

configure script is not accepting compiler flags #6867

vicuna opened this issue May 13, 2015 · 2 comments

Comments

@vicuna
Copy link

vicuna commented May 13, 2015

Original bug ID: 6867
Reporter: eugenk
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:49:19Z)
Resolution: duplicate
Priority: normal
Severity: major
Platform: x68-64
OS: ArchLinux
OS Version: 4.0.1-1-ARCH
Version: 4.02.1
Fixed in version: 4.02.2+dev / +rc1
Category: configure and build/install
Duplicate of: #6628

Bug description

The configure script exits if the compiler flags contain (valid!) strings of the form "-march=core2". Thus, people can't compile it properly on their systems.

Steps to reproduce

Run

./configure --prefix /home/eugen/.linuxbrew --mandir /home/eugen/.linuxbrew/Cellar/objective-caml/4.02.1_2/share/man -with-debug-runtime -cc /usr/bin/gcc -Os -w -pipe -march=core2 -aspp /usr/bin/gcc -Os -w -pipe -march=core2 -c -no-graph

and you get

[ERROR!]Arguments to this script look like '-prefix /foo/bar', not '-prefix=/foo/bar' (note the '=').

Additional information

Removing lines 88-90 from the configure script fixes this issue:

if echo "$configure_options" | grep -q -e '--\?[a-zA-Z0-9-]\+='; then
  err "Arguments to this script look like '-prefix /foo/bar', not '-prefix=/foo/bar' (note the '=')."
fi
@vicuna
Copy link
Author

vicuna commented May 13, 2015

Comment author: @gasche

This is already fixed in the development version, to be part of the next minor release.

@vicuna
Copy link
Author

vicuna commented May 13, 2015

Comment author: eugenk

Oh, then sorry for not looking into the trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants