[Fwd: Re: Problem building hdbc-sqlite3 with ghc 6.8.2]

Hi, can someone explain the linking error below? (on Intel-Mac (Tiger?)) Preprocessing library HDBC-sqlite3-1.1.3.0... Building HDBC-sqlite3-1.1.3.0... [1 of 7] Compiling Database.HDBC.Sqlite3.Consts ( dist/build/Database/ HDBC/Sqlite3/Consts.hs, dist/build/Database/HDBC/Sqlite3/Consts.o ) [2 of 7] Compiling Database.HDBC.Sqlite3.Types ( Database/HDBC/Sqlite3/ Types.hs, dist/build/Database/HDBC/Sqlite3/Types.o ) [3 of 7] Compiling Database.HDBC.Sqlite3.Utils ( dist/build/Database/ HDBC/Sqlite3/Utils.hs, dist/build/Database/HDBC/Sqlite3/Utils.o ) [4 of 7] Compiling Database.HDBC.Sqlite3.Statement ( dist/build/ Database/HDBC/Sqlite3/Statement.hs, dist/build/Database/HDBC/Sqlite3/ Statement.o ) [5 of 7] Compiling Database.HDBC.Sqlite3.ConnectionImpl ( Database/ HDBC/Sqlite3/ConnectionImpl.hs, dist/build/Database/HDBC/Sqlite3/ ConnectionImpl.o ) [6 of 7] Compiling Database.HDBC.Sqlite3.Connection ( Database/HDBC/ Sqlite3/Connection.hs, dist/build/Database/HDBC/Sqlite3/Connection.o ) [7 of 7] Compiling Database.HDBC.Sqlite3 ( Database/HDBC/Sqlite3.hs, dist/build/Database/HDBC/Sqlite3.o ) ar: creating archive dist/build/libHSHDBC-sqlite3-1.1.3.0.a ld: atom sorting error for _HDBCzmsqlite3zm1zi1zi3zi0_DatabaseziHDBCziSqlite3ziTypes_CSqlite3_closure_tbl and _HDBCzmsqlite3zm1zi1zi3zi0_DatabaseziHDBCziSqlite3ziTypes_CStmt_closure_tbl in dist/build/Database/HDBC/Sqlite3/Types.o ld: atom sorting error for _HDBCzmsqlite3zm1zi1zi3zi0_DatabaseziHDBCziSqlite3ziTypes_CSqlite3_closure_tbl and _HDBCzmsqlite3zm1zi1zi3zi0_DatabaseziHDBCziSqlite3ziTypes_CStmt_closure_tbl in dist/build/Database/HDBC/Sqlite3/Types.o

On 3-Jan-08, at 4:47 PM, Christian Maeder wrote:
Hi,
can someone explain the linking error below? (on Intel-Mac (Tiger?))
Preprocessing library HDBC-sqlite3-1.1.3.0... Building HDBC-sqlite3-1.1.3.0... [1 of 7] Compiling Database.HDBC.Sqlite3.Consts ( dist/build/Database/ HDBC/Sqlite3/Consts.hs, dist/build/Database/HDBC/Sqlite3/Consts.o ) [...] ar: creating archive dist/build/libHSHDBC-sqlite3-1.1.3.0.a ld: atom sorting error for _HDBCzmsqlite3zm1zi1zi3zi0_DatabaseziHDBCziSqlite3ziTypes_CSqlite3_closure_tbl [...]
To the best of my knowledge, this is harmless and can be ignored. Linking continues after this message is printed, and I haven't yet found any adverse side-effects. The message is triggered (in Apple's recently-rewritten linker) when there are two or more labels pointing to the very end of a section in an object file. This sometimes happens when empty _closure_tbls are emitted by GHC; it's probably not too hard to prevent this from happening. Cheers, Wolfgang

Did a final "runhaskell Setup.lhs install" work for you, Emmanuel? Thanks, Wolfgang Cheers Christian Wolfgang Thaller wrote:
On 3-Jan-08, at 4:47 PM, Christian Maeder wrote:
Hi,
can someone explain the linking error below? (on Intel-Mac (Tiger?))
Preprocessing library HDBC-sqlite3-1.1.3.0... Building HDBC-sqlite3-1.1.3.0... [1 of 7] Compiling Database.HDBC.Sqlite3.Consts ( dist/build/Database/ HDBC/Sqlite3/Consts.hs, dist/build/Database/HDBC/Sqlite3/Consts.o ) [...] ar: creating archive dist/build/libHSHDBC-sqlite3-1.1.3.0.a ld: atom sorting error for _HDBCzmsqlite3zm1zi1zi3zi0_DatabaseziHDBCziSqlite3ziTypes_CSqlite3_closure_tbl
[...]
To the best of my knowledge, this is harmless and can be ignored. Linking continues after this message is printed, and I haven't yet found any adverse side-effects.
The message is triggered (in Apple's recently-rewritten linker) when there are two or more labels pointing to the very end of a section in an object file. This sometimes happens when empty _closure_tbls are emitted by GHC; it's probably not too hard to prevent this from happening.
Cheers,
Wolfgang
participants (2)
-
Christian Maeder
-
Wolfgang Thaller