#3799: undefined symbols and undefined references possibly related to template
haskell
--------------------------------------------------------------+-------------
Reporter: JeremyShaw | Owner:
Type: bug | Status:
new
Priority: normal | Milestone:
6.12.2
Component: Compiler | Version:
6.13
Keywords: undefined symbols references template haskell | Difficulty:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure:
Compile-time crash
--------------------------------------------------------------+-------------
Comment(by AntoineLatter):
I did a "cabal configure && cabal build" for syb-with-class, and then
checked the timestamps on all of my .hi and .o files.
I then did a "cabal haddock", and again checked the timestamps.
It turns out that running "cabal haddock" rebuilds all of the .hi and .o
files except HSsyb-with-class-0.6.1.o
So now the .o file that we make our package out of is out of synch with
the .hi files left over in dist/buid. This is probably almost always okay,
except for when TH-generated names would end-up in the symbol table. (or
if I edited the sources in between "cabal build" and "cabal haddock".
Does that make this a bug with Cabal?
Following is the dump from my terminal.
>>>>>
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ find . | grep \\.o$
| xargs ls -l
-rw-r--r-- 1 alatter staff 121496 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Basics.o
-rw-r--r-- 1 alatter staff 5888 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Context.o
-rw-r--r-- 1 alatter staff 157220 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Derive.o
-rw-r--r-- 1 alatter staff 403216 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Instances.o
-rw-r--r-- 1 alatter staff 602752 Jan 16 20:04 ./dist/build/HSsyb-with-
class-0.6.1.o
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ find . | grep
\\.hi$ | xargs ls -l
-rw-r--r-- 1 alatter staff 33600 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Basics.hi
-rw-r--r-- 1 alatter staff 2367 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Context.hi
-rw-r--r-- 1 alatter staff 13960 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Derive.hi
-rw-r--r-- 1 alatter staff 166039 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Instances.hi
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ cabal haddock
Running Haddock for syb-with-class-0.6.1...
Preprocessing library syb-with-class-0.6.1...
Warning: The documentation for the following packages are not installed.
No
links will be generated to these packages: ffi-1.0, rts-1.0
Documentation created: dist/doc/html/syb-with-class/index.html
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ find . | grep \\.o$
| xargs ls -l
-rw-r--r-- 1 alatter staff 121496 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Basics.o
-rw-r--r-- 1 alatter staff 5896 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Context.o
-rw-r--r-- 1 alatter staff 157220 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Derive.o
-rw-r--r-- 1 alatter staff 403216 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Instances.o
-rw-r--r-- 1 alatter staff 602752 Jan 16 20:04 ./dist/build/HSsyb-with-
class-0.6.1.o
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ find . | grep
\\.hi$ | xargs ls -l
-rw-r--r-- 1 alatter staff 33600 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Basics.hi
-rw-r--r-- 1 alatter staff 2367 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Context.hi
-rw-r--r-- 1 alatter staff 13960 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Derive.hi
-rw-r--r-- 1 alatter staff 166039 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Instances.hi
<<<<<
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3799#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs