Comments (9)
It looks like -iquote was added in GCC 4.0.0, so one would have to assume that no-one is using GCC 3.x.x before changing this. Does anybody know if GCC 3.x.x is being used? Also, -iquote doesn't look like a direct swap as -I- is a separator, whereas -iquote takes only a single argument, so the nmake rules in lib/make/Makerules.mk would need some reworking.
from ast.
Yes that is the issue -iquote is not really a replacement for -I-. Not sure if there is a better place to report an nmake issue.
from ast.
tl;dr: it's not an nmake issue; it's a GCC issue.
This is actually a problem with GCC -- when They (GCC developers) first eliminated the -I- option (sometime back in the mid 90s?), They had no idea what the option actually did (and erroneously thought that the "-iquote" fully implemented "-I-"). My recollection is that They forced the change through and it broke lots (and lots and lots) of nmake builds in AT&T/Bell Labs. So They reluctantly agreed to restore the functionality -- but not without extracting Their pound of flesh (They added the "note: obsolete option -I- used, please use -iquote instead" message that we nmake users have had to live with for 20+ years).
from ast.
Thanks jhfrontz.
from ast.
FYI. I just ran a small test using gcc 4.9.2 and even using -Wno-deprecated didn't suppress it.
from ast.
This says that it happened in mid-2000s, but I swear that we had the same problem back in the mid-90s. So maybe the 21st-century attempt was a repeat?
http://nmake.alcatel-lucent.com/newsletters/issue021.html#gcc
from ast.
Note that the use of -I-
makes it impossible to use clang
(the LLVM frontend) since it treats the flag as an error. I hacked the ppcc
script to strip that flag from the args which allows using clang to build this project. There's no point changing Nmake at this juncture since it would be more productive to switch to Cmake or Meson as the build system. See issue #42.
from ast.
Is there anything in clang that implements the functionality of -I-
(which I think is used to tell the compiler to forget about using the stock #include search path)?
from ast.
This clang CLI document implies the flag is still legal. So apparently the implementation was changed recently and the online documentation hasn't caught up. Replacing -I-
with the long form --incude-barrier
results in the same error (not surprisingly). But note that at least on Linux and macOS the flag isn't even needed when compiling with clang. I hacked the ppcc.sh
script to simply remove that flag from the list of arguments and can successfully build everything.
from ast.
Related Issues (20)
- Ctrl-B and Ctrl-F produces unexpected results in Emacs mode HOT 5
- Function scoped variable should retain its last value in while-loop body HOT 3
- printf %q broken with size specifier HOT 7
- 2020.0.0: test suite is failing HOT 8
- ksh: command substitution doesn't include the output of non-waited-for child processes HOT 1
- write package as an rpm (/bin/pacakge make) HOT 6
- Please fix invalid use of memccpy() on master HOT 5
- MacOS compiling libast
- ${$} throwing syntax error when use in cat << EOF on ksh93 93u+ . HOT 1
- Use of >/dev/null 2>&1 in called function causes "Abort(coredump)" HOT 4
- The subshell does not recognize the path path.
- Process substitution includes extraneous spaces in file descriptor HOT 1
- `a=()` should make `a` an empty array but doesn't HOT 2
- $EDITOR
- man page uses incorrect pipe character, "⎪" xE28EAA instead of "|" x7C HOT 1
- Please consider relicensing AST under the EPL-2.0 with the GPL compatibility clause
- ksh93u+ dumps core when fds >32 HOT 1
- building with Cygwin instead of NMAKE HOT 2
- The release page for the latest version of ksh boggles HOT 1
- undefined reference to `__dso_handle' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ast.