Re: cpp behavior?

2017-05-20 Thread Steve Kargl
On Sat, May 20, 2017 at 11:39:14AM -0600, Ian Lepore wrote:
> On Fri, 2017-05-19 at 17:07 -0700, Steve Kargl wrote:
> > % which cpp
> > /usr/bin/cpp
> > troutmask:kargl[408] cpp --version
> > FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on
> > LLVM 4.0.0)
> > Target: x86_64-unknown-freebsd12.0
> > Thread model: posix
> > InstalledDir: /usr/bin
> > troutmask:kargl[409] cpp --help |grep trad
> >   -traditional-cppEnable some traditional CPP emulation
> > troutmask:kargl[410] cpp -traditional-cpp boxmuller.F90 
> > cpp: error: unable to execute command: Executable "gcc" doesn't
> > exist!
> > 
> > OK, so what is the preprocessor for clang?
> > 
> 
> It looks like the problem is that it sees the .F90 and wants to "do the
> right thing" for fortran sources, which is "invoke gcc".  I got a clue
> by adding '-###' (quotes required) to see what cpp was trying to do
> internally.

Thanks.  I did not know about the -### option.

> You might get the effect you want by either adding something like -x
> assembler-with-cpp, or maybe by hiding the filetype from cpp:

I'm checking out the new devel/flang port (a Fortran front-end
for clang).  Although flang recognizes the .F90 extension,
'flang -c boxmuller.F90' dies a horrible death because it assumes
a modern cpp syntax.  AFAIK, the traditional syntax that gcc 
uses with the -traditional-cpp option is required by those who
use C preprocessing directives in their Fortran.  Modern cpp
can corrupt valid Fortran.  Having clang invoke gcc when I tried
cpp caught me off guard.

-- 
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


Re: cpp behavior?

2017-05-20 Thread Ian Lepore
On Fri, 2017-05-19 at 17:07 -0700, Steve Kargl wrote:
> % which cpp
> /usr/bin/cpp
> troutmask:kargl[408] cpp --version
> FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on
> LLVM 4.0.0)
> Target: x86_64-unknown-freebsd12.0
> Thread model: posix
> InstalledDir: /usr/bin
> troutmask:kargl[409] cpp --help |grep trad
>   -traditional-cppEnable some traditional CPP emulation
> troutmask:kargl[410] cpp -traditional-cpp boxmuller.F90 
> cpp: error: unable to execute command: Executable "gcc" doesn't
> exist!
> 
> OK, so what is the preprocessor for clang?
> 

It looks like the problem is that it sees the .F90 and wants to "do the
right thing" for fortran sources, which is "invoke gcc".  I got a clue
by adding '-###' (quotes required) to see what cpp was trying to do
internally.

You might get the effect you want by either adding something like -x
assembler-with-cpp, or maybe by hiding the filetype from cpp:

 cat boxmuller.F90 | cpp -traditional-cpp

-- Ian

___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


[Bug 218808] www/firefox: usr/bin/ld: error: unknown argument: --warn-unresolved-symbols

2017-05-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218808

--- Comment #4 from O. Hartmann  ---
The recent update of www/firefox (at revision 441291) doesn't fix the reported
problem, it still exists on traditional "make"-driven builds as well as in
poudriere!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"