Opened 4 years ago

Closed 4 years ago

#60639 closed defect (fixed)

gildas @202006b: Error: BOZ literal constant near (1) cannot be assigned to a REAL variable

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: bardeau
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: gildas

Description

gildas does not build, at least not on Yosemite:

/opt/local/bin/gfortran-mp-10 -c  -std=legacy -Os   -I./ -I./built/x86_64-darwin-gfortran -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_gildas/gildas/work/gildas-src-jun20b/integ/x86_64-darwin-gfortran/include  -J./built/x86_64-darwin-gfortran -pipe -fno-backslash -fno-range-check -fno-second-underscore -fPIC -O built/x86_64-darwin-gfortran/r1mach.f -o built/x86_64-darwin-gfortran/r1mach.o
built/x86_64-darwin-gfortran/r1mach.f:271:33:

  271 |       DATA RMACH(5) / Z'3E9A209B' /
      |                                 1
Error: BOZ literal constant near (1) cannot be assigned to a REAL variable [see '-fno-allow-invalid-boz']
built/x86_64-darwin-gfortran/r1mach.f:270:33:

  270 |       DATA RMACH(4) / Z'34000000' /
      |                                 1
Error: BOZ literal constant near (1) cannot be assigned to a REAL variable [see '-fno-allow-invalid-boz']
built/x86_64-darwin-gfortran/r1mach.f:269:33:

  269 |       DATA RMACH(3) / Z'33800000' /
      |                                 1
Error: BOZ literal constant near (1) cannot be assigned to a REAL variable [see '-fno-allow-invalid-boz']
built/x86_64-darwin-gfortran/r1mach.f:268:33:

  268 |       DATA RMACH(2) / Z'7F7FFFFF' /
      |                                 1
Error: BOZ literal constant near (1) cannot be assigned to a REAL variable [see '-fno-allow-invalid-boz']
built/x86_64-darwin-gfortran/r1mach.f:267:33:

  267 |       DATA RMACH(1) / Z'00800000' /
      |                                 1
Error: BOZ literal constant near (1) cannot be assigned to a REAL variable [see '-fno-allow-invalid-boz']
make[2]: *** [built/x86_64-darwin-gfortran/r1mach.o] Error 1

Change History (2)

comment:1 Changed 4 years ago by bardeau

When using gfortran>=10, the option -fallow-invalid-boz should have been added. I suspect the gfortran version is not correctly detected under Yosemite because of this other bug: #60051

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 4 years ago by bardeau

Resolution: fixed
Status: assignedclosed

In 4ac1b00a24652290706e06c3267e09c3ffa79f91/macports-ports (master):

Gildas: fixed support for El Capitan and older.

Closes: #60051
Closes: #60639

Note: See TracTickets for help on using tickets.