Author Topic: pgf90-Error-Unknown switch: -Wall  (Read 3552 times)

Offline simonchang

  • Single posting newcomer
  • *
  • Posts: 3
pgf90-Error-Unknown switch: -Wall
« on: January 30, 2018, 06:06:29 am »
Debug in tem3dfdtd (compiler: PGI Fortran ACC)---------------

pgf90.exe -Wall  -g  -acc -Minfo -Mcuda=cuda8.0 -Minline,reshape    -c F:\WorkSpace\tem3d\tem3dfdtd\lib\allocatememory.f90 -o obj\Debug\lib\allocatememory.o
pgf90-Error-Unknown switch: -Wall
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

None of the programs (even very simple ones) can be debugged
 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: pgf90-Error-Unknown switch: -Wall
« Reply #1 on: January 30, 2018, 06:19:00 am »
Remove the option not supported by your toolchain.

Remember to look in the compiler other/extra setting area.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline simonchang

  • Single posting newcomer
  • *
  • Posts: 3
Re: pgf90-Error-Unknown switch: -Wall
« Reply #2 on: January 30, 2018, 06:40:41 am »
Remove the option not supported by your toolchain.

Remember to look in the compiler other/extra setting area.

Tim S.

Sorry, I have already tried this. And -wall always appears, and if i select it, there will be two -Wall s in the command lime.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: pgf90-Error-Unknown switch: -Wall
« Reply #3 on: January 30, 2018, 12:09:09 pm »
Possible locations for this flag:
1) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the topl->Compiler settings->Compiler flags
2) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the top->Compiler settings->Other compiler options
3) Global project settings:   Project->Build options->Select the project name on the left tree control->Compiler settings->Compiler flags
4) Global project settings:   Project->Build options->Select the project name on the left tree control->Compiler settings->Other compiler options
5) Build Target settingss:   Project->Build options->Select the target name on the left tree control->Compiler settings->Compiler flags
6) Build Target settings:   Project->Build options->Select the target name on the left tree control->Compiler settings->Other compiler options

How is the command line generated:
1) Global compiler settings + Project compiler settings + Target compiler settings

If you still get the error: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
And probably post the project file too

Offline simonchang

  • Single posting newcomer
  • *
  • Posts: 3
Re: pgf90-Error-Unknown switch: -Wall
« Reply #4 on: January 30, 2018, 05:12:54 pm »
Possible locations for this flag:
1) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the topl->Compiler settings->Compiler flags
2) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the top->Compiler settings->Other compiler options
3) Global project settings:   Project->Build options->Select the project name on the left tree control->Compiler settings->Compiler flags
4) Global project settings:   Project->Build options->Select the project name on the left tree control->Compiler settings->Other compiler options
5) Build Target settingss:   Project->Build options->Select the target name on the left tree control->Compiler settings->Compiler flags
6) Build Target settings:   Project->Build options->Select the target name on the left tree control->Compiler settings->Other compiler options

How is the command line generated:
1) Global compiler settings + Project compiler settings + Target compiler settings

If you still get the error: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
And probably post the project file too

Problem solved!
Thank you~