New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13190 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

BUG: g95-0.90 Installation of py-scipy fails because g95 won't compile

Reported by: jmnc@… Owned by: ryandesign@…
Priority: High Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: takeshi@…
Port:

Description

When trying to to install py-scipy on a fresh install of MacOS X 10.5, port fails when working on g95 with the following message:

--->  Configuring g95
Error: Target org.macports.configure returned: shell command "unset CPPFLAGS; unset LDFLAGS;  
           cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_g95/work/gcc-4.0.3/g95;  ../configure --prefix=/opt/local/lib/gcc-lib/powerpc-apple-darwin9.0.0/4.0.3 --enable-languages=c --with-as=/opt/local/bin/odas --with-ld=/opt/local/bin/odld --with-nm=/opt/local/bin/odnm --with-included-gettext;  
           make" returned error 2
Command output: gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/bt-load.c -o bt-load.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/pretty-print.c -o pretty-print.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/ggc-page.c -o ggc-page.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/web.c -o web.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/passes.c -o passes.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/rtl-profile.c -o rtl-profile.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/tree-profile.c -o tree-profile.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/rtlhooks.c -o rtlhooks.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/cfgexpand.c -o cfgexpand.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/lambda-mat.c -o lambda-mat.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/lambda-trans.c -o lambda-trans.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/lambda-code.c -o lambda-code.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     ../../gcc/tree-loop-linear.c -o tree-loop-linear.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     \
		../../gcc/config/rs6000/rs6000.c -o rs6000.o
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include  ../../gcc/config/darwin.c
gcc -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include  \
		../../gcc/config/rs6000/host-darwin.c
../../gcc/config/rs6000/host-darwin.c:38: warning: 'struct sigaltstack' declared inside parameter list
../../gcc/config/rs6000/host-darwin.c:38: warning: its scope is only this definition or declaration, which is probably not what you want
../../gcc/config/rs6000/host-darwin.c:38: error: conflicting types for 'sigaltstack'
/usr/include/signal.h:89: error: previous declaration of 'sigaltstack' was here
../../gcc/config/rs6000/host-darwin.c: In function 'segv_handler':
../../gcc/config/rs6000/host-darwin.c:67: error: 'struct __darwin_mcontext' has no member named 'ss'
../../gcc/config/rs6000/host-darwin.c:116: error: 'struct __darwin_mcontext' has no member named 'es'
../../gcc/config/rs6000/host-darwin.c:116: error: 'struct __darwin_mcontext' has no member named 'ss'
../../gcc/config/rs6000/host-darwin.c: In function 'darwin_rs6000_extra_signals':
../../gcc/config/rs6000/host-darwin.c:130: warning: passing argument 1 of 'sigaltstack' from incompatible pointer type
make[1]: *** [host-darwin.o] Error 1
make: *** [all-gcc] Error 2

Error: The following dependencies failed to build: py-numpy g95
Error: Status 1 encountered during processing.

The computer in question is a PB G4.

Attachments

g95.tgz Download (3.2 KB) - added by takeshi@… 4 years ago.
patch-darwin-fallback.c Download (2.8 KB) - added by takeshi@… 4 years ago.
additional patch 1/2
patch-host-darwin.c Download (1.2 KB) - added by takeshi@… 4 years ago.
additional patch 2/2
Portfile.patch Download (2.3 KB) - added by takeshi@… 4 years ago.

Change History

  Changed 4 years ago by takeshi@…

I was able to compile g95 on PPC/Leopard but still have problems on Intel.

  Changed 4 years ago by carnevale@…

Even if I have a PPC/Leopard too, I am not able to compile g95. I tried to install gcc-4.0.4 (please refer to:  http://www.nabble.com/g95-t4786163.html) or gcc-4.1.2 to fix it, but they don't compile on my box.

  Changed 4 years ago by css@…

  • milestone set to Port Bugs

  Changed 4 years ago by takeshi@…

On my Mac mini/PPC, I was able to install g95 with a modified Portfile and a few patches (attachment at 2007-11-18 02:16:52). I have not tested thoroughly but at least it compiles "Hello world". It does not work on Intel. So the modified portfile is not meant for an updated version.

Changed 4 years ago by takeshi@…

  Changed 4 years ago by takeshi@…

I was able to build on Intel Mac as well. However, I still get annoying assembler error. An executable ("Hello, world!") seems to work. I updated Portfile and patches.

g95 -v foo.f95 Driving: g95 -v foo.f95 -lf95 -lm Using built-in specs. Target: Configured with: ../configure --prefix=/opt/local/lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3 --enable-languages=c --with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm --with-included-gettext --with-gmp=/opt/local --with-mpfr=/opt/local Thread model: posix gcc version 4.0.3 (g95 0.90!) Nov 19 2007

/opt/local/bin/../lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3//f951 foo.f95 -fPIC -quiet -dumpbase foo.f95 -auxbase foo -version -o /var/folders/L9/L91vZMe4Eemhuz8HRvzGy++++TI/-Tmp-//ccDzBP9q.s

G95 Fortran 95 version 4.0.3 (g95 0.90!) Nov 19 2007 (i386-apple-darwin9.1.0)

compiled by GNU C version 4.0.1 (Apple Inc. build 5465).

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

/usr/bin/as -arch i386 -force_cpusubtype_ALL -o /var/folders/L9/L91vZMe4Eemhuz8HRvzGy++++TI/-Tmp-//cc0EDCnm.o /var/folders/L9/L91vZMe4Eemhuz8HRvzGy++++TI/-Tmp-//ccDzBP9q.s

/var/folders/L9/L91vZMe4Eemhuz8HRvzGy++++TI/-Tmp-//ccDzBP9q.s:59:indirect jmp without `*' /var/folders/L9/L91vZMe4Eemhuz8HRvzGy++++TI/-Tmp-//ccDzBP9q.s:78:indirect jmp without `*' /var/folders/L9/L91vZMe4Eemhuz8HRvzGy++++TI/-Tmp-//ccDzBP9q.s:97:indirect jmp without `*' /var/folders/L9/L91vZMe4Eemhuz8HRvzGy++++TI/-Tmp-//ccDzBP9q.s:112:indirect jmp without `*'

/usr/bin/ld -dynamic -arch i386 -weak_reference_mismatches non-weak -o a.out -lcrt1.o /opt/local/bin/../lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3//crt2.o -L/opt/local/bin/../lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3/ -L/opt/local/bin/../lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3 -L/opt/local/lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3/ -L/usr/lib/gcc// -L/opt/local/bin/../lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3/// -L/opt/local/bin/../lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3/ -L/opt/local/lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3/// -L/opt/local/lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3/ -L/usr/lib// /var/folders/L9/L91vZMe4Eemhuz8HRvzGy++++TI/-Tmp-//cc0EDCnm.o -lf95 -lm -lgcc -lgcc_eh -lSystemStubs -lmx -lSystem

Changed 4 years ago by takeshi@…

additional patch 1/2

Changed 4 years ago by takeshi@…

additional patch 2/2

  Changed 4 years ago by takeshi@…

Now g95 compiles sources without complaining :-)

  Changed 4 years ago by takeshi@…

gmp and mpfr packages are not necessary for g95. I did not have to add these to Portfile depends_lib.

I tried to update Portfile.patch but I was unable to attach the file.

in reply to: ↑ description   Changed 4 years ago by mjhsieh@…

Replying to jmnc@spray.se:

When trying to to install py-scipy on a fresh install of MacOS X 10.5, port fails when working on g95 ...

[deleted]

Can any admin please clarify this to a g95 bug (lang/g95) ?

Changed 4 years ago by takeshi@…

  Changed 4 years ago by takeshi@…

Could anyone who can commit take a look at this? I replaced Portfile.patch to the one w/o gmp and mpfr.

  Changed 4 years ago by ryandesign@…

  • owner changed from macports-tickets@… to ryandesign@…

  Changed 4 years ago by ryandesign@…

  • status changed from new to closed
  • resolution set to fixed

I committed your patch in r32219, except that I removed the lines you had commented out, I fixed the whitespace to match the rest of the portfile (no tabs), and I fixed the names of the patchfiles to match port lint recommendations.

I tested it on Tiger and it still built ok. Don't have Leopard to test with, but I trust you did sufficient testing there.

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.