Bug 25622 - undefined reference to `_gfortran_st_set_nml_var_dim'
Summary: undefined reference to `_gfortran_st_set_nml_var_dim'
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.0.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 25627 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-01 16:34 UTC by John David Anglin
Modified: 2012-01-10 15:53 UTC (History)
1 user (show)

See Also:
Host: hppa-unknown-linux-gnu
Target: hppa-unknown-linux-gnu
Build: hppa-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2006-01-01 16:34:34 UTC
A number of new fails have arisen on this target:

WARNING: gfortran.dg/namelist_11.f  -O0  compilation failed to produce executabl
e
WARNING: gfortran.dg/namelist_11.f  -O1  compilation failed to produce executabl
e
WARNING: gfortran.dg/namelist_11.f  -O2  compilation failed to produce executabl
e
WARNING: gfortran.dg/namelist_11.f  -O3 -fomit-frame-pointer  compilation failed
 to produce executable
...

Executing on host: /home/dave/gnu/gcc-4.0/objdir/gcc/testsuite/../gfortran -B/ho
me/dave/gnu/gcc-4.0/objdir/gcc/testsuite/../ /home/dave/gnu/gcc-4.0/gcc/gcc/test
suite/gfortran.dg/namelist_11.f   -O3 -g   -pedantic-errors  -L/home/dave/gnu/gc
c-4.0/objdir/hppa-linux/./libgfortran/.libs -L/home/dave/gnu/gcc-4.0/objdir/hppa
-linux/./libiberty  -lm   -o ./namelist_11.exe    (timeout = 300)
/tmp/cc6CVY2t.o: In function `MAIN__':/home/dave/gnu/gcc-4.0/gcc/gcc/testsuite/g
fortran.dg/namelist_11.f:33: undefined reference to `_gfortran_st_set_nml_var'
:/home/dave/gnu/gcc-4.0/gcc/gcc/testsuite/gfortran.dg/namelist_11.f:33: undefine
d reference to `_gfortran_st_set_nml_var_dim'
:/home/dave/gnu/gcc-4.0/gcc/gcc/testsuite/gfortran.dg/namelist_11.f:33: undefine
d reference to `_gfortran_st_set_nml_var'
:/home/dave/gnu/gcc-4.0/gcc/gcc/testsuite/gfortran.dg/namelist_11.f:42: undefine
d reference to `_gfortran_st_set_nml_var'
:/home/dave/gnu/gcc-4.0/gcc/gcc/testsuite/gfortran.dg/namelist_11.f:42: undefine
d reference to `_gfortran_st_set_nml_var_dim'
:/home/dave/gnu/gcc-4.0/gcc/gcc/testsuite/gfortran.dg/namelist_11.f:42: undefine
d reference to `_gfortran_st_set_nml_var'
:/home/dave/gnu/gcc-4.0/gcc/gcc/testsuite/gfortran.dg/namelist_11.f:46: undefine
d reference to `_gfortran_st_set_nml_var'
:/home/dave/gnu/gcc-4.0/gcc/gcc/testsuite/gfortran.dg/namelist_11.f:46: undefine
d reference to `_gfortran_st_set_nml_var_dim'
:/home/dave/gnu/gcc-4.0/gcc/gcc/testsuite/gfortran.dg/namelist_11.f:46: undefine
d reference to `_gfortran_st_set_nml_var'
collect2: ld returned 1 exit status
compiler exited with status 1

Previous build <http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg01637.html>
didn't exhibit this failure.
Comment 1 Andrew Pinski 2006-01-01 17:08:52 UTC
Hmm, there really has not been any change in libgfortran which could have caused this.
Comment 2 dave 2006-01-01 17:39:04 UTC
Subject: Re:  undefined reference to `_gfortran_st_set_nml_var_dim'

> Hmm, there really has not been any change in libgfortran which could have
> caused this.

Agreed.  Looking at transfer.o, we seem to somehow have lost the
"_gfortran_" prefix:

00003a48 T st_set_nml_var
00003c0c T st_set_nml_var_dim

Dave
Comment 3 dave 2006-01-01 17:44:42 UTC
Subject: Re:  undefined reference to `_gfortran_st_set_nml_var_dim'

> Agreed.  Looking at transfer.o, we seem to somehow have lost the
> "_gfortran_" prefix:
> 
> 00003a48 T st_set_nml_var
> 00003c0c T st_set_nml_var_dim

I see this in the build log:

/home/dave/gnu/gcc-4.0/objdir/gcc/xgcc -B/home/dave/gnu/gcc-4.0/objdir/gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.0.3/hppa-linux/bin/ -B/home/dave/opt/gnu/gcc/gcc-4.0.3/hppa-linux/lib/ -isystem /home/dave/opt/gnu/gcc/gcc-4.0.3/hppa-linux/include -isystem /home/dave/opt/gnu/gcc/gcc-4.0.3/hppa-linux/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libgfortran -I. -iquote../../../gcc/libgfortran/io -std=gnu99 -Wall -O2 -g -O0 -c ../../../gcc/libgfortran/io/transfer.c  -fPIC -DPIC -o .libs/transfer.o
../../../gcc/libgfortran/io/transfer.c:1796: warning: asm declaration ignored due to conflict with previous rename
../../../gcc/libgfortran/io/transfer.c:1800: warning: asm declaration ignored due to conflict with previous rename

Dave
Comment 4 John David Anglin 2006-01-01 18:44:31 UTC
*** Bug 25627 has been marked as a duplicate of this bug. ***
Comment 5 dave 2006-01-01 18:54:30 UTC
Subject: Re:  undefined reference to `_gfortran_st_set_nml_var_dim'

> > Hmm, there really has not been any change in libgfortran which could have
> > caused this.
> 
> Agreed.  Looking at transfer.o, we seem to somehow have lost the
> "_gfortran_" prefix:
> 
> 00003a48 T st_set_nml_var
> 00003c0c T st_set_nml_var_dim

Ok, I see what happened.  I had CFLAGS set to "-g -O0" when I did
the build.  This exposed a bug in transfer.c.  At -O0, the assembler
output for st_set_nml_var and st_set_nml_var_dim has already been
output before the renames are attempted causing the renames to fail.

Dave
Comment 6 Steven Bosscher 2009-02-22 16:37:33 UTC
Three years, no progress...  Is this still an issue?
Comment 7 Richard Biener 2012-01-10 15:53:19 UTC
Assuming fixed.